{
  "$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{%- set v_items = (p.items ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_topics = (p.topics ?? null) -%}\n{%- set c_8 -%}\n  {{ include('blocks/search-field.html.twig', {'p': {'label': og_get(v_labels, ['search']), 'placeholder': og_get(v_labels, ['search']), 'value': og_coalesce([og_get(v_labels, ['query']), ''])}}, with_context = false) }}\n  {%- set c_2 -%}\n    {%- for v_t in og_l(v_topics) %}\n      {%- set c_1 -%}\n        {{ og_text(og_get(v_t, ['title'])) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'attrs': og_attrs(['data-value', og_get(v_t, ['value'])]), 'children': c_1}, with_context = false) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'flex-wrap', 'children': c_2}, with_context = false) }}\n  {%- set c_7 -%}\n    {%- set c_3 -%}\n      {{ og_text(og_get(v_labels, ['popular'])) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_3}, with_context = false) }}\n    {%- set c_6 -%}\n      {%- for v_q in og_l(v_items) %}\n        {%- set v_i = loop.index0 -%}\n        {%- if og_t(og_lt(v_i, 3)) %}\n          {%- set c_5 -%}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_q, ['question'])) }}\n            {%- endset -%}\n            {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_q, ['href']), 'className': og_cnv(['text-sm font-medium']), 'size': 'sm'}, 'children': og_markup(c_4)}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/ListItem.html.twig', {'attrs': og_attrs(['data-slot', 'faq-popular']), 'children': c_5}, with_context = false) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-2 p-0', 'children': c_6}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_7}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'faq-finder']), 'children': c_8}, with_context = false) }}\n",
      "path": "blocks/faq-finder.html.twig",
      "target": "blocks/faq-finder.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "faq-finder",
  "registryDependencies": [
    "button",
    "group",
    "list",
    "list-item",
    "menu-entry",
    "search-field",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Faq Finder",
  "type": "registry:component"
}
