{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Account settings: picture, name, email, bio and notifications.",
  "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/profile-form.json\n    An account settings form: a picture with a change button, name, email, bio and two notification switches, with save and cancel. Axes: layout (stacked, split), avatar (show, hide), prefs (show, hide), tone (default, muted).\n    Props (p): id, title, text, labels, layout, avatar, prefs, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_text = (p.text ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'stacked') -%}\n{%- set v_avatar = (p.avatar ?? 'show') -%}\n{%- set v_prefs = (p.prefs ?? 'show') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_20 -%}\n  {%- set c_19 -%}\n    {%- set c_18 -%}\n      {%- set c_17 -%}\n        {%- set c_13 -%}\n          {%- set c_6 -%}\n            {%- if og_t(og_eq(v_avatar, 'show')) %}\n              {%- set c_2 -%}\n                {{ include('blocks/media-frame.html.twig', {'p': {'alt': og_get(v_labels, ['picture']), 'ratio': '1/1', 'className': og_cnv(['size-16 shrink-0 rounded-full'])}}, with_context = false) }}\n                {%- set c_1 -%}\n                  {{ og_text(og_get(v_labels, ['change'])) }}\n                {%- endset -%}\n                {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'type': 'button', 'children': c_1}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'attrs': og_attrs(['data-slot', 'avatar']), 'children': c_2}, with_context = false) }}\n            {%- endif %}\n            {%- set c_3 -%}\n              {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'name', 'attrs': og_attrs(['autocomplete', 'name', 'id', og_tpl('{0}-name', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['name']), 'htmlFor': og_tpl('{0}-name', [v_id])}, 'children': og_markup(c_3)}, with_context = false) }}\n            {%- set c_4 -%}\n              {{ include('compose/Input.html.twig', {'type': 'email', 'name': 'email', 'attrs': og_attrs(['autocomplete', 'email', 'id', og_tpl('{0}-email', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['email']), 'htmlFor': og_tpl('{0}-email', [v_id])}, 'children': og_markup(c_4)}, with_context = false) }}\n            {%- set c_5 -%}\n              {{ include('compose/Textarea.html.twig', {'rows': 4, 'name': 'bio', 'attrs': og_attrs(['id', og_tpl('{0}-bio', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n            {%- endset -%}\n            {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['bio']), 'htmlFor': og_tpl('{0}-bio', [v_id])}, 'children': og_markup(c_5)}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'children': c_6}, with_context = false) }}\n          {%- if og_t(og_eq(v_prefs, 'show')) %}\n            {%- set c_12 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_labels, ['prefs'])) }}\n              {%- endset -%}\n              {{ include('compose/Title.html.twig', {'as': 3, 'size': 'base', 'weight': 'bold', 'children': c_7}, with_context = false) }}\n              {%- set c_9 -%}\n                {%- set c_8 -%}\n                  {{ og_text(og_get(v_labels, ['updates'])) }}\n                {%- endset -%}\n                {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-updates', [v_id])), 'class': 'text-sm', 'attrs': og_attrs(['id', og_tpl('{0}-updates-label', [v_id])]), 'children': c_8}, with_context = false) }}\n                {{ include('compose/Switch.html.twig', {'name': 'updates', 'attrs': og_attrs(['id', og_tpl('{0}-updates', [v_id]), 'aria-labelledby', og_tpl('{0}-updates-label', [v_id])])}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'children': c_9}, with_context = false) }}\n              {%- set c_11 -%}\n                {%- set c_10 -%}\n                  {{ og_text(og_get(v_labels, ['alerts'])) }}\n                {%- endset -%}\n                {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-alerts', [v_id])), 'class': 'text-sm', 'attrs': og_attrs(['id', og_tpl('{0}-alerts-label', [v_id])]), 'children': c_10}, with_context = false) }}\n                {{ include('compose/Switch.html.twig', {'name': 'alerts', 'attrs': og_attrs(['id', og_tpl('{0}-alerts', [v_id]), 'aria-labelledby', og_tpl('{0}-alerts-label', [v_id])])}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'between', 'children': c_11}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'prefs']), 'children': c_12}, with_context = false) }}\n          {%- endif %}\n        {%- endset -%}\n        {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_layout, 'split')) ? '1-2' : '1')), 'class': 'items-start gap-8', 'children': c_13}, with_context = false) }}\n        {%- set c_16 -%}\n          {%- set c_14 -%}\n            {{ og_text(og_get(v_labels, ['save'])) }}\n          {%- endset -%}\n          {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'type': 'submit', 'children': c_14}, with_context = false) }}\n          {%- set c_15 -%}\n            {{ og_text(og_get(v_labels, ['cancel'])) }}\n          {%- endset -%}\n          {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'default', 'type': 'button', 'children': c_15}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'flex-wrap', 'children': c_16}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Form.html.twig', {'method': 'dialog', 'class': 'gap-6', 'attrs': og_attrs(['data-slot', 'profile-form']), 'children': c_17}, with_context = false) }}\n    {%- endset -%}\n    {{ include('blocks/panel.html.twig', {'p': {'title': v_title, 'description': v_text, 'id': v_id, 'className': og_cnv([og_cnv([(og_t(og_eq(v_tone, 'muted')) ? 'bg-muted' : '')])])}, 'children': og_markup(c_18)}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Container.html.twig', {'class': 'mx-auto w-full max-w-6xl px-4 py-8', 'attrs': og_attrs(['data-slot', 'container']), 'children': c_19}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'section', 'attrs': og_attrs(['aria-labelledby', (og_t(v_landmarkLabel) ? null : (og_t(og_and([v_title, v_id])) ? og_tpl('{0}-t', [v_id]) : null)), 'aria-label', v_landmarkLabel, 'data-slot', 'panel-section']), 'children': c_20}, with_context = false) }}\n",
      "path": "blocks/profile-form.html.twig",
      "target": "blocks/profile-form.html.twig"
    }
  ],
  "meta": {
    "category": "account",
    "group": "settings",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "profile-form",
  "registryDependencies": [
    "block",
    "button",
    "container",
    "field",
    "form",
    "grid",
    "group",
    "input",
    "label",
    "media-frame",
    "panel",
    "stack",
    "switch",
    "textarea",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Profile Form",
  "type": "registry:block"
}
