{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_lead = og_def(p['lead'], '') -%}\n{%- set v_stores = og_def(p['stores'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_kinds = og_def(p['kinds'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'cards') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_18 -%}\n  {%- if og_t(og_eq(og_len(v_stores), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'store', 'title': v_empty}}) }}\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              {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'outline', 'Size': 'default', 'Class': 'w-fit'}, 'children': c_1}) }}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_s, ['name'])) }}\n              {%- endset -%}\n              {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'lg', 'Weight': 'bold'}, 'children': c_2}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_3}) }}\n            {%- set c_10 -%}\n              {%- set c_5 -%}\n                {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'map-pin', 'Size': 16}}) }}\n                {%- set c_4 -%}\n                  {{ og_text(og_get(v_s, ['address'])) }}\n                {%- endset -%}\n                {{ og_include('compose/inline.html.j2', {'p': {}, 'children': c_4}) }}\n              {%- endset -%}\n              {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center gap-2'}, 'children': c_5}) }}\n              {%- set c_7 -%}\n                {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'clock', 'Size': 16}}) }}\n                {%- set c_6 -%}\n                  {{ og_text(og_get(v_s, ['hours'])) }}\n                {%- endset -%}\n                {{ og_include('compose/inline.html.j2', {'p': {}, 'children': c_6}) }}\n              {%- endset -%}\n              {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center gap-2'}, 'children': c_7}) }}\n              {%- set c_9 -%}\n                {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'phone', 'Size': 16}}) }}\n                {%- set c_8 -%}\n                  {{ og_text(og_nbsp(og_get(v_s, ['phone']))) }}\n                {%- endset -%}\n                {{ og_include('compose/link.html.j2', {'p': {'Href': og_url(og_s(og_tpl('tel:{0}', [og_get(v_s, ['phone'])]))), 'Variant': 'default'}, 'children': c_8}) }}\n              {%- endset -%}\n              {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center gap-2'}, 'children': c_9}) }}\n            {%- endset -%}\n            {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': og_s(('flex flex-wrap gap-x-8 gap-y-2 text-sm' if og_t(og_eq(v_layout, 'list')) else 'flex flex-col gap-2 text-sm'))}, 'children': c_10}) }}\n            {%- if og_t(og_eq(v_layout, 'cards')) %}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_s, ['note'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_11}) }}\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                  {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'secondary', 'Size': 'default'}, 'children': c_12}) }}\n                {%- endfor %}\n              {%- endset -%}\n              {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Class': 'flex-wrap'}, 'children': c_13}) }}\n            {%- endif %}\n          {%- endset -%}\n          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Class': og_s(('border-b border-border pb-4' if og_t(og_eq(v_layout, 'list')) else 'rounded bg-card inset-ring inset-ring-border p-6')), 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_14}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('grid grid-cols-1 gap-4 md:grid-cols-2' if og_t(og_eq(v_layout, 'cards')) else 'flex flex-col gap-4')), 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_15}) }}\n      {%- if og_t(og_eq(v_layout, 'map')) %}\n        {%- set c_16 -%}\n          {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_labels, ['map']), 'ratio': '1/1'}}) }}\n        {%- endset -%}\n        {{ og_include('compose/box.html.j2', {'p': {'Class': 'md:sticky md:top-8'}, 'children': c_16}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['grid grid-cols-1 gap-8', ('items-start md:grid-cols-2' if og_t(og_eq(v_layout, 'map')) else '')]))}, 'children': c_17}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_18)}) }}\n",
      "path": "blocks/store-locations.html.j2",
      "target": "blocks/store-locations.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "delivery",
    "kind": "block",
    "tags": [
      "jinja2",
      "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": "jinja2",
  "title": "Store Locations",
  "type": "registry:block"
}
