{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Two sides of the same points: how it was and how it is, as two cards or as rows.",
  "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/before-after.json\n    Two columns that set life without the product against life with it, point by point. Axes: layout (cards: two cards, rows: one row per point), icons (show, hide), tone, density.\n    Props (p): id, title, points, empty, labels, layout, icons, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_points = (p.points ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'cards') -%}\n{%- set v_icons = (p.icons ?? 'show') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_21 -%}\n  {%- if og_t(og_eq(og_len(v_points), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'git-compare', 'title': v_empty}}, with_context = false) }}\n  {%- elseif og_t(og_eq(v_layout, 'cards')) %}\n    {%- set c_13 -%}\n      {%- set c_6 -%}\n        {%- set c_5 -%}\n          {%- set c_1 -%}\n            {{ og_text(og_get(v_labels, ['before'])) }}\n          {%- endset -%}\n          {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_1}, with_context = false) }}\n          {%- set c_4 -%}\n            {%- for v_p in og_l(v_points) %}\n              {%- set c_3 -%}\n                {%- if og_t(og_eq(v_icons, 'show')) %}\n                  {{ include('icons/LucideIcon.html.twig', {'name': 'x', 'size': 16, 'class': 'h-lh shrink-0 text-sm'}, with_context = false) }}\n                {%- endif %}\n                {%- set c_2 -%}\n                  {{ og_text(og_get(v_p, ['before'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'children': c_2}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/ListItem.html.twig', {'class': 'flex items-start gap-4', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_3}, with_context = false) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-4 p-0', 'children': c_4}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/CardContent.html.twig', {'class': 'flex flex-col gap-4', 'children': c_5}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Card.html.twig', {'variant': 'muted', 'class': og_s(og_cnv(['h-full', (og_t(og_eq(v_density, 'compact')) ? 'gap-4 p-4' : '')])), 'attrs': og_attrs(['data-side', 'before']), 'children': c_6}, with_context = false) }}\n      {%- set c_12 -%}\n        {%- set c_11 -%}\n          {%- set c_7 -%}\n            {{ og_text(og_get(v_labels, ['after'])) }}\n          {%- endset -%}\n          {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_7}, with_context = false) }}\n          {%- set c_10 -%}\n            {%- for v_p in og_l(v_points) %}\n              {%- set c_9 -%}\n                {%- if og_t(og_eq(v_icons, 'show')) %}\n                  {{ include('icons/LucideIcon.html.twig', {'name': 'check', 'size': 16, 'class': 'h-lh shrink-0 text-sm'}, with_context = false) }}\n                {%- endif %}\n                {%- set c_8 -%}\n                  {{ og_text(og_get(v_p, ['after'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'children': c_8}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/ListItem.html.twig', {'class': 'flex items-start gap-4', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_9}, with_context = false) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-4 p-0', 'children': c_10}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/CardContent.html.twig', {'class': 'flex flex-col gap-4', 'children': c_11}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Card.html.twig', {'variant': 'default', 'class': og_s(og_cnv(['h-full', (og_t(og_eq(v_density, 'compact')) ? 'gap-4 p-4' : '')])), 'attrs': og_attrs(['data-side', 'after']), 'children': c_12}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': '1-2', 'class': 'items-stretch gap-4', 'attrs': og_attrs(['data-slot', 'sides']), 'children': c_13}, with_context = false) }}\n  {%- else %}\n    {%- set c_20 -%}\n      {%- for v_p in og_l(v_points) %}\n        {%- set c_19 -%}\n          {%- set c_14 -%}\n            {{ og_text(og_get(v_p, ['title'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'semibold', 'children': c_14}, with_context = false) }}\n          {%- set c_16 -%}\n            {%- if og_t(og_eq(v_icons, 'show')) %}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'x', 'size': 16, 'class': 'h-lh shrink-0 text-sm text-muted-foreground'}, with_context = false) }}\n            {%- endif %}\n            {%- set c_15 -%}\n              {{ og_text(og_get(v_p, ['before'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_15}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'start', 'children': c_16}, with_context = false) }}\n          {%- set c_18 -%}\n            {%- if og_t(og_eq(v_icons, 'show')) %}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'check', 'size': 16, 'class': 'h-lh shrink-0 text-sm text-primary'}, with_context = false) }}\n            {%- endif %}\n            {%- set c_17 -%}\n              {{ og_text(og_get(v_p, ['after'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_17}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'start', 'children': c_18}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Grid.html.twig', {'cols': '1-3', 'class': og_s(og_cnv(['items-center gap-4', 'rounded bg-card inset-ring inset-ring-border p-4'])), 'attrs': og_attrs(['data-slot', 'item']), 'children': c_19}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'rows']), 'children': c_20}, 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, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_21)}, with_context = false) }}\n",
      "path": "blocks/before-after.html.twig",
      "target": "blocks/before-after.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "before-after",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "grid",
    "group",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Before After",
  "type": "registry:block"
}
