{
  "$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 = og_def(p['items'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_topics = og_def(p['topics'], none) -%}\n{%- set c_8 -%}\n  {{ og_include('blocks/search-field.html.j2', {'p': {'label': og_get(v_labels, ['search']), 'placeholder': og_get(v_labels, ['search']), 'value': og_coalesce([og_get(v_labels, ['query']), ''])}}) }}\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      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm', 'Attrs': og_attrs(['data-value', og_get(v_t, ['value'])])}, 'children': c_1}) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Class': 'flex-wrap'}, 'children': c_2}) }}\n  {%- set c_7 -%}\n    {%- set c_3 -%}\n      {{ og_text(og_get(v_labels, ['popular'])) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_3}) }}\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            {{ og_include('blocks/menu-entry.html.j2', {'p': {'href': og_get(v_q, ['href']), 'className': og_cnv(['text-sm font-medium']), 'size': 'sm'}, 'children': og_markup(c_4)}) }}\n          {%- endset -%}\n          {{ og_include('compose/list-item.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'faq-popular'])}, 'children': c_5}) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-0'}, 'children': c_6}) }}\n  {%- endset -%}\n  {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_7}) }}\n{%- endset -%}\n{{ og_include('compose/stack.html.j2', {'p': {'Gap': '6', 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'faq-finder'])}, 'children': c_8}) }}\n",
      "path": "blocks/faq-finder.html.j2",
      "target": "blocks/faq-finder.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "faq-finder",
  "registryDependencies": [
    "button",
    "group",
    "list",
    "list-item",
    "menu-entry",
    "search-field",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Faq Finder",
  "type": "registry:component"
}
