{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The finder of FaqSplit: a search field, the topics as a row of buttons, and the first three questions as popular links.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{* Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/faq-finder.json\n    The finder of FaqSplit: a search field, the topics as a row of buttons, and the first three questions as popular links.\n    Props (p): items, labels, topics. *}\n{var $v_items = ($p['items'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_topics = ($p['topics'] ?? null)}\n{capture $c_8}\n  {=og_include('blocks/search-field.latte', ['p' => ['label' => og_get($v_labels, ['search']), 'placeholder' => og_get($v_labels, ['search']), 'value' => og_coalesce([og_get($v_labels, ['query']), ''])]])|noescape}\n  {capture $c_2}\n    {foreach og_l($v_topics) as $v_t}\n      {capture $c_1}\n        {=og_text(og_get($v_t, ['title']))}\n      {/capture}\n      {=og_include('compose/Button.latte', ['variant' => 'outline', 'size' => 'sm', 'attrs' => og_attrs(['data-value', og_get($v_t, ['value'])]), 'children' => (string) $c_1])|noescape}\n    {/foreach}\n  {/capture}\n  {=og_include('compose/Group.latte', ['gap' => '2', 'class' => 'flex-wrap', 'children' => (string) $c_2])|noescape}\n  {capture $c_7}\n    {capture $c_3}\n      {=og_text(og_get($v_labels, ['popular']))}\n    {/capture}\n    {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_3])|noescape}\n    {capture $c_6}\n      {foreach og_l($v_items) as $v_q}\n        {var $v_i = $iterator->counter0}\n        {if og_t(og_lt($v_i, 3))}\n          {capture $c_5}\n            {capture $c_4}\n              {=og_text(og_get($v_q, ['question']))}\n            {/capture}\n            {=og_include('blocks/menu-entry.latte', ['p' => ['href' => og_get($v_q, ['href']), 'className' => og_cnv(['text-sm font-medium']), 'size' => 'sm'], 'children' => og_markup($c_4)])|noescape}\n          {/capture}\n          {=og_include('compose/ListItem.latte', ['attrs' => og_attrs(['data-slot', 'faq-popular']), 'children' => (string) $c_5])|noescape}\n        {/if}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/List.latte', ['class' => 'm-0 flex list-none flex-col gap-2 p-0', 'children' => (string) $c_6])|noescape}\n  {/capture}\n  {=og_include('compose/Stack.latte', ['gap' => '2', 'children' => (string) $c_7])|noescape}\n{/capture}\n{=og_include('compose/Stack.latte', ['gap' => '6', 'align' => 'stretch', 'attrs' => og_attrs(['data-slot', 'faq-finder']), 'children' => (string) $c_8])|noescape}\n",
      "path": "blocks/faq-finder.latte",
      "target": "blocks/faq-finder.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "faq-finder",
  "registryDependencies": [
    "button",
    "group",
    "list",
    "list-item",
    "menu-entry",
    "search-field",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Faq Finder",
  "type": "registry:component"
}
