{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The jobs of JobBoard as cards in two columns (title, department, place, type, optional salary, posted, apply) 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-cards.json\n    The jobs of JobBoard as cards in two columns (title, department, place, type, optional salary, posted, apply) or as a table.\n    Props (p): jobs, departments, labels, layout, salary. -#}\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{%- if og_t(og_eq(v_layout, 'table')) %}\n  {%- set c_21 -%}\n    {%- set c_20 -%}\n      {%- set c_1 -%}\n        {{ og_text(og_get(v_labels, ['caption'])) }}\n      {%- endset -%}\n      {{ include('compose/TableCaption.html.twig', {'class': 'sr-only', 'children': c_1}, with_context = false) }}\n      {%- set c_10 -%}\n        {%- set c_9 -%}\n          {%- set c_2 -%}\n            {{ og_text(og_get(v_labels, ['role'])) }}\n          {%- endset -%}\n          {{ include('compose/TableHeadCell.html.twig', {'class': 'px-4 py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_2}, with_context = false) }}\n          {%- set c_3 -%}\n            {{ og_text(og_get(v_labels, ['team'])) }}\n          {%- endset -%}\n          {{ include('compose/TableHeadCell.html.twig', {'class': 'hidden py-2 md:table-cell', 'attrs': og_attrs(['scope', 'col']), 'children': c_3}, with_context = false) }}\n          {%- set c_4 -%}\n            {{ og_text(og_get(v_labels, ['location'])) }}\n          {%- endset -%}\n          {{ include('compose/TableHeadCell.html.twig', {'class': 'hidden py-2 sm:table-cell', 'attrs': og_attrs(['scope', 'col']), 'children': c_4}, with_context = false) }}\n          {%- set c_5 -%}\n            {{ og_text(og_get(v_labels, ['type'])) }}\n          {%- endset -%}\n          {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_5}, with_context = false) }}\n          {%- if og_t(og_eq(v_salary, 'show')) %}\n            {%- set c_6 -%}\n              {{ og_text(og_get(v_labels, ['salary'])) }}\n            {%- endset -%}\n            {{ include('compose/TableHeadCell.html.twig', {'class': 'hidden py-2 md:table-cell', 'attrs': og_attrs(['scope', 'col']), 'children': c_6}, with_context = false) }}\n          {%- endif %}\n          {%- set c_8 -%}\n            {%- set c_7 -%}\n              {{ og_text(og_get(v_labels, ['apply'])) }}\n            {%- endset -%}\n            {{ include('compose/Inline.html.twig', {'class': 'sr-only', 'children': c_7}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2 pr-4', 'attrs': og_attrs(['scope', 'col']), 'children': c_8}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/TableRow.html.twig', {'children': c_9}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/TableHead.html.twig', {'class': 'bg-muted', 'children': c_10}, with_context = false) }}\n      {%- set c_19 -%}\n        {%- for v_j in og_l(v_jobs) %}\n          {%- set c_18 -%}\n            {%- set c_11 -%}\n              {{ og_text(og_get(v_j, ['title'])) }}\n            {%- endset -%}\n            {{ include('compose/TableCell.html.twig', {'class': 'px-4 py-4 font-medium', 'children': c_11}, with_context = false) }}\n            {%- set c_12 -%}\n              {{ og_text(og_first_of(og_where(v_departments, 'id', og_get(v_j, ['dept'])), 'name')) }}\n            {%- endset -%}\n            {{ include('compose/TableCell.html.twig', {'class': 'hidden md:table-cell', 'children': c_12}, with_context = false) }}\n            {%- set c_13 -%}\n              {{ og_text(og_get(v_j, ['location'])) }}\n            {%- endset -%}\n            {{ include('compose/TableCell.html.twig', {'class': 'hidden sm:table-cell', 'children': c_13}, with_context = false) }}\n            {%- set c_14 -%}\n              {{ og_text(og_get(v_j, ['type'])) }}\n            {%- endset -%}\n            {{ include('compose/TableCell.html.twig', {'children': c_14}, with_context = false) }}\n            {%- if og_t(og_eq(v_salary, 'show')) %}\n              {%- set c_15 -%}\n                {{ og_text(og_get(v_j, ['salary'])) }}\n              {%- endset -%}\n              {{ include('compose/TableCell.html.twig', {'class': 'hidden md:table-cell', 'children': c_15}, with_context = false) }}\n            {%- endif %}\n            {%- set c_17 -%}\n              {%- set c_16 -%}\n                {{ og_text(og_get(v_labels, ['apply'])) }}\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_16)}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/TableCell.html.twig', {'class': 'pr-4 text-right', 'children': c_17}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/TableRow.html.twig', {'class': 'border-t border-border', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_18}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/TableBody.html.twig', {'children': c_19}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Table.html.twig', {'class': 'w-full text-left text-sm', 'attrs': og_attrs(['data-slot', 'job-table']), 'children': c_20}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': 'w-full overflow-x-auto rounded inset-ring inset-ring-border', 'attrs': og_attrs(['data-slot', 'job-cards']), 'children': c_21}, with_context = false) }}\n{%- else %}\n  {%- set c_36 -%}\n    {%- for v_j in og_l(v_jobs) %}\n      {%- set c_35 -%}\n        {%- set c_30 -%}\n          {%- set c_22 -%}\n            {{ og_text(og_get(v_j, ['title'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'lg', 'weight': 'semibold', 'children': c_22}, with_context = false) }}\n          {%- set c_29 -%}\n            {%- set c_24 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'briefcase', 'size': 16}, with_context = false) }}\n              {%- set c_23 -%}\n                {{ og_text(og_get(v_j, ['type'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'children': c_23}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_24}, with_context = false) }}\n            {%- set c_26 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'map-pin', 'size': 16}, with_context = false) }}\n              {%- set c_25 -%}\n                {{ og_text(og_get(v_j, ['location'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'children': c_25}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_26}, with_context = false) }}\n            {%- set c_28 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'calendar', 'size': 16}, with_context = false) }}\n              {%- set c_27 -%}\n                {{ og_text(og_get(v_j, ['posted'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'children': c_27}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'children': c_28}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '4', 'class': 'flex-wrap text-sm text-muted-foreground', 'children': c_29}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_30}, with_context = false) }}\n        {%- if og_t(og_eq(v_salary, 'show')) %}\n          {%- set c_31 -%}\n            {{ og_text(og_get(v_j, ['salary'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'semibold', 'attrs': og_attrs(['data-slot', 'salary']), 'children': c_31}, with_context = false) }}\n        {%- endif %}\n        {%- set c_34 -%}\n          {%- set c_32 -%}\n            {{ og_text(og_first_of(og_where(v_departments, 'id', og_get(v_j, ['dept'])), 'name')) }}\n          {%- endset -%}\n          {{ include('compose/Badge.html.twig', {'variant': 'secondary', 'size': 'default', 'children': c_32}, with_context = false) }}\n          {%- set c_33 -%}\n            {{ og_text(og_get(v_labels, ['apply'])) }}\n            {{ include('icons/LucideIcon.html.twig', {'name': 'arrow-right', 'size': 16}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/menu-entry.html.twig', {'p': {'href': og_get(v_j, ['href']), 'className': og_cnv(['inline-flex items-center gap-2 text-sm font-medium'])}, 'children': og_markup(c_33)}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'class': 'mt-auto', 'children': c_34}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '4', 'class': 'rounded bg-card inset-ring inset-ring-border p-6', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_35}, with_context = false) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/Grid.html.twig', {'cols': '1-2', 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_36}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/job-cards.html.twig",
      "target": "blocks/job-cards.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "job-cards",
  "registryDependencies": [
    "badge",
    "box",
    "grid",
    "group",
    "inline",
    "lucide-icon",
    "menu-entry",
    "stack",
    "table",
    "table-body",
    "table-caption",
    "table-cell",
    "table-head",
    "table-head-cell",
    "table-row",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Job Cards",
  "type": "registry:component"
}
