{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The orders as a table (the table layout of OrderTable): number, date, items, total and a status pill.",
  "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/order-rows.json\n    The orders as a table (the table layout of OrderTable): number, date, items, total and a status pill.\n    Props (p): orders, statuses, labels, density. -#}\n{%- set v_orders = (p.orders ?? null) -%}\n{%- set v_statuses = (p.statuses ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set c_18 -%}\n  {%- set c_17 -%}\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_8 -%}\n      {%- set c_7 -%}\n        {%- set c_2 -%}\n          {{ og_text(og_get(v_labels, ['number'])) }}\n        {%- endset -%}\n        {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_2}, with_context = false) }}\n        {%- set c_3 -%}\n          {{ og_text(og_get(v_labels, ['date'])) }}\n        {%- endset -%}\n        {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_3}, with_context = false) }}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_labels, ['items'])) }}\n        {%- endset -%}\n        {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_4}, with_context = false) }}\n        {%- set c_5 -%}\n          {{ og_text(og_get(v_labels, ['total'])) }}\n        {%- endset -%}\n        {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_5}, with_context = false) }}\n        {%- set c_6 -%}\n          {{ og_text(og_get(v_labels, ['status'])) }}\n        {%- endset -%}\n        {{ include('compose/TableHeadCell.html.twig', {'class': 'py-2', 'attrs': og_attrs(['scope', 'col']), 'children': c_6}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/TableRow.html.twig', {'children': c_7}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/TableHead.html.twig', {'children': c_8}, with_context = false) }}\n    {%- set c_16 -%}\n      {%- for v_o in og_l(v_orders) %}\n        {%- set c_15 -%}\n          {%- set c_9 -%}\n            {{ og_text(og_get(v_o, ['number'])) }}\n          {%- endset -%}\n          {{ include('compose/TableCell.html.twig', {'class': og_s(og_cnv(['font-semibold', (og_t(og_eq(v_density, 'compact')) ? 'py-2' : 'py-4')])), 'children': c_9}, with_context = false) }}\n          {%- set c_10 -%}\n            {{ og_text(og_get(v_o, ['date'])) }}\n          {%- endset -%}\n          {{ include('compose/TableCell.html.twig', {'children': c_10}, with_context = false) }}\n          {%- set c_11 -%}\n            {{ og_text(og_tpl(og_get(v_labels, ['itemsCount']), [og_get(v_o, ['items'])])) }}\n          {%- endset -%}\n          {{ include('compose/TableCell.html.twig', {'children': c_11}, with_context = false) }}\n          {%- set c_12 -%}\n            {{ og_text(og_money(og_get(v_o, ['total']), og_get(v_o, ['currency']))) }}\n          {%- endset -%}\n          {{ include('compose/TableCell.html.twig', {'children': c_12}, with_context = false) }}\n          {%- set c_14 -%}\n            {%- set c_13 -%}\n              {{ og_text(og_at(v_statuses, og_get(v_o, ['status']))) }}\n            {%- endset -%}\n            {{ include('blocks/pill.html.twig', {'p': {'tone': (og_t(og_eq(og_get(v_o, ['status']), 'paid')) ? 'green' : (og_t(og_eq(og_get(v_o, ['status']), 'shipped')) ? 'blue' : (og_t(og_eq(og_get(v_o, ['status']), 'pending')) ? 'amber' : 'gray')))}, 'children': og_markup(c_13)}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/TableCell.html.twig', {'children': c_14}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/TableRow.html.twig', {'class': 'border-t border-border', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_15}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/TableBody.html.twig', {'children': c_16}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Table.html.twig', {'class': 'w-full text-left text-sm', 'attrs': og_attrs(['data-slot', 'order-table']), 'children': c_17}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': 'w-full overflow-x-auto', 'attrs': og_attrs(['data-slot', 'order-rows']), 'children': c_18}, with_context = false) }}\n",
      "path": "blocks/order-rows.html.twig",
      "target": "blocks/order-rows.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "order-rows",
  "registryDependencies": [
    "box",
    "pill",
    "table",
    "table-body",
    "table-caption",
    "table-cell",
    "table-head",
    "table-head-cell",
    "table-row",
    "utils"
  ],
  "runtime": "twig",
  "title": "Order Rows",
  "type": "registry:component"
}
