{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Open jobs as cards, grouped by department, or as a table.",
  "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/job-board.json\n    Open jobs as cards in two columns, grouped by department, or as a table: the title, the department, the place, the type, an optional salary and an apply link. Axes: layout (grid, grouped, table), salary (show, hide), tone.\n    Props (p): id, title, lead, jobs, departments, labels, layout, salary, tone, empty, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_jobs = (p.jobs ?? null) -%}\n{%- set v_departments = (p.departments ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'grid') -%}\n{%- set v_salary = (p.salary ?? 'hide') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_len(v_jobs), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'briefcase', 'title': v_empty}}, with_context = false) }}\n  {%- elseif og_t(og_eq(v_layout, 'grouped')) %}\n    {%- set c_11 -%}\n      {%- for v_d in og_l(v_departments) %}\n        {%- set c_10 -%}\n          {%- set c_3 -%}\n            {%- set c_1 -%}\n              {{ og_text(og_get(v_d, ['name'])) }}\n            {%- endset -%}\n            {{ include('compose/Title.html.twig', {'as': 3, 'size': 'lg', 'weight': 'bold', 'children': c_1}, with_context = false) }}\n            {%- set c_2 -%}\n              {{ og_text(og_tpl(og_get(v_labels, ['count']), [og_len(og_where(v_jobs, 'dept', og_get(v_d, ['id'])))])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'baseline', 'justify': 'between', 'children': c_3}, with_context = false) }}\n          {%- set c_9 -%}\n            {%- for v_j in og_l(og_where(v_jobs, 'dept', og_get(v_d, ['id']))) %}\n              {%- set c_8 -%}\n                {%- set c_6 -%}\n                  {%- set c_4 -%}\n                    {{ og_text(og_get(v_j, ['title'])) }}\n                  {%- endset -%}\n                  {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_j, ['href']), 'className': og_cnv(['font-medium'])}, 'children': og_markup(c_4)}, with_context = false) }}\n                  {%- set c_5 -%}\n                    {{ og_text(og_tpl('{0}, {1}', [og_get(v_j, ['location']), og_get(v_j, ['type'])])) }}\n                  {%- endset -%}\n                  {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n                {%- endset -%}\n                {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_6}, with_context = false) }}\n                {%- set c_7 -%}\n                  {{ og_text(og_get(v_j, ['type'])) }}\n                {%- endset -%}\n                {{ include('compose/Badge.html.twig', {'variant': 'outline', 'size': 'default', 'children': c_7}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/ListItem.html.twig', {'class': 'flex flex-wrap items-center justify-between gap-4 border-b border-border py-4', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_8}, with_context = false) }}\n            {%- endfor %}\n          {%- endset -%}\n          {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'flex flex-col', 'children': c_9}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'group']), 'children': c_10}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '8', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'groups']), 'children': c_11}, with_context = false) }}\n  {%- else %}\n    {{ include('blocks/job-cards.html.twig', {'p': {'jobs': v_jobs, 'departments': v_departments, 'labels': v_labels, 'layout': v_layout, 'salary': v_salary}}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'measure': (og_t(og_eq(v_layout, 'grouped')) ? '3xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_12)}, with_context = false) }}\n",
      "path": "blocks/job-board.html.twig",
      "target": "blocks/job-board.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "job-board",
  "registryDependencies": [
    "badge",
    "empty-state",
    "group",
    "job-cards",
    "list",
    "list-item",
    "menu-entry",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Job Board",
  "type": "registry:block"
}
