{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The stores with address, hours, phone and services.",
  "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/store-locations.json\n    The stores of a shop: name, a badge of its kind (pickup or store only), address, hours, phone, a note and the services. Axes: layout (cards, list: one row per store, map: compact cards beside a map picture), tone.\n    Props (p): id, title, lead, stores, empty, kinds, labels, layout, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_stores = (p.stores ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_kinds = (p.kinds ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'cards') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_18 -%}\n  {%- if og_t(og_eq(og_len(v_stores), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'store', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_17 -%}\n      {%- set c_15 -%}\n        {%- for v_s in og_l(v_stores) %}\n          {%- set c_14 -%}\n            {%- set c_3 -%}\n              {%- set c_1 -%}\n                {{ og_text(og_at(v_kinds, og_get(v_s, ['kind']))) }}\n              {%- endset -%}\n              {{ include('compose/Badge.html.twig', {'variant': 'outline', 'size': 'default', 'class': 'w-fit', 'children': c_1}, with_context = false) }}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_s, ['name'])) }}\n              {%- endset -%}\n              {{ include('compose/Title.html.twig', {'as': 3, 'size': 'lg', 'weight': 'bold', 'children': c_2}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_3}, with_context = false) }}\n            {%- set c_10 -%}\n              {%- set c_5 -%}\n                {{ include('icons/LucideIcon.html.twig', {'name': 'map-pin', 'size': 16}, with_context = false) }}\n                {%- set c_4 -%}\n                  {{ og_text(og_get(v_s, ['address'])) }}\n                {%- endset -%}\n                {{ include('compose/Inline.html.twig', {'children': c_4}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/ListItem.html.twig', {'class': 'flex items-center gap-2', 'children': c_5}, with_context = false) }}\n              {%- set c_7 -%}\n                {{ include('icons/LucideIcon.html.twig', {'name': 'clock', 'size': 16}, with_context = false) }}\n                {%- set c_6 -%}\n                  {{ og_text(og_get(v_s, ['hours'])) }}\n                {%- endset -%}\n                {{ include('compose/Inline.html.twig', {'children': c_6}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/ListItem.html.twig', {'class': 'flex items-center gap-2', 'children': c_7}, with_context = false) }}\n              {%- set c_9 -%}\n                {{ include('icons/LucideIcon.html.twig', {'name': 'phone', 'size': 16}, with_context = false) }}\n                {%- set c_8 -%}\n                  {{ og_text(og_nbsp(og_get(v_s, ['phone']))) }}\n                {%- endset -%}\n                {{ include('compose/Link.html.twig', {'href': og_url(og_s(og_tpl('tel:{0}', [og_get(v_s, ['phone'])]))), 'variant': 'default', 'children': c_8}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/ListItem.html.twig', {'class': 'flex items-center gap-2', 'children': c_9}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/List.html.twig', {'tag': 'ul', 'class': og_s((og_t(og_eq(v_layout, 'list')) ? 'flex flex-wrap gap-x-8 gap-y-2 text-sm' : 'flex flex-col gap-2 text-sm')), 'children': c_10}, with_context = false) }}\n            {%- if og_t(og_eq(v_layout, 'cards')) %}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_s, ['note'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_11}, with_context = false) }}\n              {%- set c_13 -%}\n                {%- for v_v in og_l(og_get(v_s, ['services'])) %}\n                  {%- set c_12 -%}\n                    {{ og_text(v_v) }}\n                  {%- endset -%}\n                  {{ include('compose/Badge.html.twig', {'variant': 'secondary', 'size': 'default', 'children': c_12}, with_context = false) }}\n                {%- endfor %}\n              {%- endset -%}\n              {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'flex-wrap', 'children': c_13}, with_context = false) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '4', 'class': og_s((og_t(og_eq(v_layout, 'list')) ? 'border-b border-border pb-4' : 'rounded bg-card inset-ring inset-ring-border p-6')), 'attrs': og_attrs(['data-slot', 'item']), 'children': c_14}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'cards')) ? 'grid grid-cols-1 gap-4 md:grid-cols-2' : 'flex flex-col gap-4')), 'attrs': og_attrs(['data-slot', 'items']), 'children': c_15}, with_context = false) }}\n      {%- if og_t(og_eq(v_layout, 'map')) %}\n        {%- set c_16 -%}\n          {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_labels, ['map']), 'ratio': '1/1'}}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Box.html.twig', {'class': 'md:sticky md:top-8', 'children': c_16}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['grid grid-cols-1 gap-8', (og_t(og_eq(v_layout, 'map')) ? 'items-start md:grid-cols-2' : '')])), 'children': c_17}, 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, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_18)}, with_context = false) }}\n",
      "path": "blocks/store-locations.html.twig",
      "target": "blocks/store-locations.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "delivery",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "store-locations",
  "registryDependencies": [
    "badge",
    "box",
    "empty-state",
    "group",
    "inline",
    "link",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Store Locations",
  "type": "registry:block"
}
