{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_points = og_def(p['points'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'cards') -%}\n{%- set v_icons = og_def(p['icons'], 'show') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_21 -%}\n  {%- if og_t(og_eq(og_len(v_points), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'git-compare', 'title': v_empty}}) }}\n  {%- elif 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          {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'xl', 'Weight': 'bold'}, 'children': c_1}) }}\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                  {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm'}}) }}\n                {%- endif %}\n                {%- set c_2 -%}\n                  {{ og_text(og_get(v_p, ['before'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_2}) }}\n              {%- endset -%}\n              {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-start gap-4', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_3}) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0'}, 'children': c_4}) }}\n        {%- endset -%}\n        {{ og_include('compose/card-content.html.j2', {'p': {'Class': 'flex flex-col gap-4'}, 'children': c_5}) }}\n      {%- endset -%}\n      {{ og_include('compose/card.html.j2', {'p': {'Variant': 'muted', 'Class': og_s(og_cnv(['h-full', ('gap-4 p-4' if og_t(og_eq(v_density, 'compact')) else '')])), 'Attrs': og_attrs(['data-side', 'before'])}, 'children': c_6}) }}\n      {%- set c_12 -%}\n        {%- set c_11 -%}\n          {%- set c_7 -%}\n            {{ og_text(og_get(v_labels, ['after'])) }}\n          {%- endset -%}\n          {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'xl', 'Weight': 'bold'}, 'children': c_7}) }}\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                  {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'check', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm'}}) }}\n                {%- endif %}\n                {%- set c_8 -%}\n                  {{ og_text(og_get(v_p, ['after'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm'}, 'children': c_8}) }}\n              {%- endset -%}\n              {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-start gap-4', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_9}) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0'}, 'children': c_10}) }}\n        {%- endset -%}\n        {{ og_include('compose/card-content.html.j2', {'p': {'Class': 'flex flex-col gap-4'}, 'children': c_11}) }}\n      {%- endset -%}\n      {{ og_include('compose/card.html.j2', {'p': {'Variant': 'default', 'Class': og_s(og_cnv(['h-full', ('gap-4 p-4' if og_t(og_eq(v_density, 'compact')) else '')])), 'Attrs': og_attrs(['data-side', 'after'])}, 'children': c_12}) }}\n    {%- endset -%}\n    {{ og_include('compose/grid.html.j2', {'p': {'Cols': '1-2', 'Class': 'items-stretch gap-4', 'Attrs': og_attrs(['data-slot', 'sides'])}, 'children': c_13}) }}\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          {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_14}) }}\n          {%- set c_16 -%}\n            {%- if og_t(og_eq(v_icons, 'show')) %}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm text-muted-foreground'}}) }}\n            {%- endif %}\n            {%- set c_15 -%}\n              {{ og_text(og_get(v_p, ['before'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_15}) }}\n          {%- endset -%}\n          {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'start'}, 'children': c_16}) }}\n          {%- set c_18 -%}\n            {%- if og_t(og_eq(v_icons, 'show')) %}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'check', 'Size': 16, 'Class': 'h-lh shrink-0 text-sm text-primary'}}) }}\n            {%- endif %}\n            {%- set c_17 -%}\n              {{ og_text(og_get(v_p, ['after'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_17}) }}\n          {%- endset -%}\n          {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'start'}, 'children': c_18}) }}\n        {%- endset -%}\n        {{ og_include('compose/grid.html.j2', {'p': {'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}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'rows'])}, 'children': c_20}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_21)}) }}\n",
      "path": "blocks/before-after.html.j2",
      "target": "blocks/before-after.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "before-after",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "grid",
    "group",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Before After",
  "type": "registry:block"
}
