{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_lead = ($p['lead'] ?? '')}\n{var $v_stores = ($p['stores'] ?? null)}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_kinds = ($p['kinds'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'cards')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_18}\n  {if og_t(og_eq(og_len($v_stores), 0))}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'store', 'title' => $v_empty]])|noescape}\n  {else}\n    {capture $c_17}\n      {capture $c_15}\n        {foreach og_l($v_stores) as $v_s}\n          {capture $c_14}\n            {capture $c_3}\n              {capture $c_1}\n                {=og_text(og_at($v_kinds, og_get($v_s, ['kind'])))}\n              {/capture}\n              {=og_include('compose/Badge.latte', ['variant' => 'outline', 'size' => 'default', 'class' => 'w-fit', 'children' => (string) $c_1])|noescape}\n              {capture $c_2}\n                {=og_text(og_get($v_s, ['name']))}\n              {/capture}\n              {=og_include('compose/Title.latte', ['as' => 3, 'size' => 'lg', 'weight' => 'bold', 'children' => (string) $c_2])|noescape}\n            {/capture}\n            {=og_include('compose/Stack.latte', ['gap' => '2', 'children' => (string) $c_3])|noescape}\n            {capture $c_10}\n              {capture $c_5}\n                {=og_include('icons/LucideIcon.latte', ['name' => 'map-pin', 'size' => 16])|noescape}\n                {capture $c_4}\n                  {=og_text(og_get($v_s, ['address']))}\n                {/capture}\n                {=og_include('compose/Inline.latte', ['children' => (string) $c_4])|noescape}\n              {/capture}\n              {=og_include('compose/ListItem.latte', ['class' => 'flex items-center gap-2', 'children' => (string) $c_5])|noescape}\n              {capture $c_7}\n                {=og_include('icons/LucideIcon.latte', ['name' => 'clock', 'size' => 16])|noescape}\n                {capture $c_6}\n                  {=og_text(og_get($v_s, ['hours']))}\n                {/capture}\n                {=og_include('compose/Inline.latte', ['children' => (string) $c_6])|noescape}\n              {/capture}\n              {=og_include('compose/ListItem.latte', ['class' => 'flex items-center gap-2', 'children' => (string) $c_7])|noescape}\n              {capture $c_9}\n                {=og_include('icons/LucideIcon.latte', ['name' => 'phone', 'size' => 16])|noescape}\n                {capture $c_8}\n                  {=og_text(og_nbsp(og_get($v_s, ['phone'])))}\n                {/capture}\n                {=og_include('compose/Link.latte', ['href' => og_url(og_s(og_tpl('tel:{0}', [og_get($v_s, ['phone'])]))), 'variant' => 'default', 'children' => (string) $c_8])|noescape}\n              {/capture}\n              {=og_include('compose/ListItem.latte', ['class' => 'flex items-center gap-2', 'children' => (string) $c_9])|noescape}\n            {/capture}\n            {=og_include('compose/List.latte', ['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' => (string) $c_10])|noescape}\n            {if og_t(og_eq($v_layout, 'cards'))}\n              {capture $c_11}\n                {=og_text(og_get($v_s, ['note']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_11])|noescape}\n              {capture $c_13}\n                {foreach og_l(og_get($v_s, ['services'])) as $v_v}\n                  {capture $c_12}\n                    {=og_text($v_v)}\n                  {/capture}\n                  {=og_include('compose/Badge.latte', ['variant' => 'secondary', 'size' => 'default', 'children' => (string) $c_12])|noescape}\n                {/foreach}\n              {/capture}\n              {=og_include('compose/Group.latte', ['gap' => '2', 'class' => 'flex-wrap', 'children' => (string) $c_13])|noescape}\n            {/if}\n          {/capture}\n          {=og_include('compose/Stack.latte', ['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' => (string) $c_14])|noescape}\n        {/foreach}\n      {/capture}\n      {=og_include('compose/Box.latte', ['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' => (string) $c_15])|noescape}\n      {if og_t(og_eq($v_layout, 'map'))}\n        {capture $c_16}\n          {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_labels, ['map']), 'ratio' => '1/1']])|noescape}\n        {/capture}\n        {=og_include('compose/Box.latte', ['class' => 'md:sticky md:top-8', 'children' => (string) $c_16])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Box.latte', ['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' => (string) $c_17])|noescape}\n  {/if}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'lead' => $v_lead, 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_18)])|noescape}\n",
      "path": "blocks/store-locations.latte",
      "target": "blocks/store-locations.latte"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "delivery",
    "kind": "block",
    "tags": [
      "latte",
      "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": "latte",
  "title": "Store Locations",
  "type": "registry:block"
}
