{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Questions as native disclosures.",
  "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-list.json\n    A section with a heading and the questions. Axes: layout (accordion: native disclosures that open without script; chat: question and answer as alternating bubbles), columns (1, 2), search mode (none, field: a search field above; the page filters by `search.query`), filter mode (none, categories: tabs above; the page filters by `filter.category`), density, tone.\n    Props (p): id, title, items, search, filter, layout, cols, empty, multiple, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_items = (p.items ?? null) -%}\n{%- set v_search = (p.search ?? null) -%}\n{%- set v_filter = (p.filter ?? null) -%}\n{%- set v_layout = (p.layout ?? 'accordion') -%}\n{%- set v_cols = (p.cols ?? '1') -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_multiple = (p.multiple ?? false) -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set v_inCategory = og_where(v_items, 'category', og_get(v_filter, ['category'])) -%}\n{%- set v_shown = og_match(v_inCategory, 'question', og_get(v_search, ['query'])) -%}\n{%- set c_13 -%}\n  {%- if og_t(og_eq(og_get(v_search, ['mode']), 'field')) %}\n    {{ include('blocks/search-field.html.twig', {'p': {'label': og_coalesce([og_get(v_search, ['label']), '']), 'placeholder': og_get(v_search, ['label']), 'value': og_coalesce([og_get(v_search, ['query']), ''])}}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(og_get(v_filter, ['mode']), 'categories')) %}\n    {%- set c_2 -%}\n      {%- for v_tab in og_l(og_get(v_filter, ['tabs'])) %}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_tab, ['title'])) }}\n        {%- endset -%}\n        {{ include('blocks/switcher-item.html.twig', {'p': {'active': og_eq(og_get(v_tab, ['value']), og_get(v_filter, ['category']))}, 'children': og_markup(c_1)}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('blocks/switcher.html.twig', {'p': {'label': og_get(v_filter, ['label'])}, 'children': og_markup(c_2)}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(og_len(v_shown), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'circle-question-mark', 'title': v_empty}}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(v_layout, 'chat')) %}\n    {%- set c_8 -%}\n      {%- for v_item in og_l(v_shown) %}\n        {%- set c_7 -%}\n          {%- set c_4 -%}\n            {%- set c_3 -%}\n              {{ og_text(og_get(v_item, ['question'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_3}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Box.html.twig', {'class': 'ml-auto max-w-xs sm:max-w-md rounded bg-primary px-4 py-4 text-primary-foreground', 'children': c_4}, with_context = false) }}\n          {%- set c_6 -%}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_item, ['answer'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'children': c_5}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Box.html.twig', {'class': 'mr-auto max-w-xs sm:max-w-md rounded bg-muted px-4 py-4', 'children': c_6}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'faq-item']), 'children': c_7}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'faq']), 'children': c_8}, with_context = false) }}\n  {%- else %}\n    {%- set c_12 -%}\n      {%- for v_item in og_l(v_shown) %}\n        {%- set c_11 -%}\n          {%- set c_9 -%}\n            {{ og_text(og_get(v_item, ['question'])) }}\n          {%- endset -%}\n          {{ include('compose/Summary.html.twig', {'variant': 'item', 'children': c_9}, with_context = false) }}\n          {%- set c_10 -%}\n            {{ og_text(og_get(v_item, ['answer'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'pb-4 text-muted-foreground', 'children': c_10}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Disclosure.html.twig', {'variant': 'item', 'name': og_s((og_t(v_multiple) ? null : og_tpl('{0}-faq', [og_coalesce([v_id, 'faq'])]))), 'attrs': og_attrs(['data-slot', 'faq-item']), 'children': c_11}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_cols, '2')) ? '1-2' : '1')), 'class': 'items-start gap-x-8', 'attrs': og_attrs(['data-slot', 'faq']), 'children': c_12}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'measure': (og_t(og_eq(v_layout, 'chat')) ? '2xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_13)}, with_context = false) }}\n",
      "path": "blocks/faq-list.html.twig",
      "target": "blocks/faq-list.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "faq",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "faq-list",
  "registryDependencies": [
    "box",
    "disclosure",
    "empty-state",
    "grid",
    "search-field",
    "section-frame",
    "stack",
    "summary",
    "switcher",
    "switcher-item",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Faq List",
  "type": "registry:block"
}
