{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Questions beside the heading, a help card, a picture or a finder, or as cards in three or four columns.",
  "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/faq-split.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// FaqSplitProps are the props of FaqSplit; the values are the JSON shapes of the TypeScript props.\ntype FaqSplitProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tBadge any `json:\"badge\"`\n\tItems any `json:\"items\"`\n\tChannels any `json:\"channels\"`\n\tTopics any `json:\"topics\"`\n\tLabels any `json:\"labels\"`\n\tLayout any `json:\"layout\"`\n\tCards any `json:\"cards\"`\n\tMediaSide any `json:\"mediaSide\"`\n\tTone any `json:\"tone\"`\n\tImage any `json:\"image\"`\n\tImageAlt any `json:\"imageAlt\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Questions in a split or as cards. Axes: layout (head: the heading and an action beside the disclosures, aside: the disclosures beside a help card, media: the disclosures and an action beside a picture, search: a finder beside a picture, cards: the questions as cards), cards (grid3, grid4, icons), mediaSide, tone.\ntempl FaqSplit(p FaqSplitProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vBadge := uiutils.Def(p.Badge, \"\") }}\n\t{{ vItems := p.Items }}\n\t{{ vChannels := p.Channels }}\n\t{{ vTopics := p.Topics }}\n\t{{ vLabels := p.Labels }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"head\") }}\n\t{{ vCards := uiutils.Def(p.Cards, \"grid3\") }}\n\t{{ vMediaSide := uiutils.Def(p.MediaSide, \"end\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vImage := p.Image }}\n\t{{ vImageAlt := p.ImageAlt }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\tif uiutils.Gt(uiutils.Len(vItems), float64(0)) {\n\t\tif uiutils.Eq(vLayout, \"cards\") {\n\t\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {\n\t\t\t\t@FaqCards(FaqCardsProps{Items: vItems, Labels: vLabels, Cards: vCards})\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"head\") {\n\t\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, Layout: \"split\", Media: map[string]any{\"show\": true, \"side\": \"end\", \"align\": \"start\"}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill1(p, vId, vItems)}) {\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"default\", ButtonProps: button.ButtonProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"cta\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"aside\") {\n\t\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, Layout: \"split\", Media: map[string]any{\"show\": true, \"side\": \"end\", \"align\": \"start\"}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill2(p, vChannels, vLabels, vLandmarkLabel)}) {\n\t\t\t\t@FaqDisclosures(FaqDisclosuresProps{Items: vItems, Name: uiutils.Tpl(\"{0}-faq\", vId)})\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"media\") {\n\t\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, Layout: \"split\", Media: map[string]any{\"show\": true, \"side\": vMediaSide, \"align\": \"start\"}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill3(p, vTitle, vImage, vImageAlt)}) {\n\t\t\t\t@FaqDisclosures(FaqDisclosuresProps{Items: vItems, Name: uiutils.Tpl(\"{0}-faq\", vId)})\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"default\", ButtonProps: button.ButtonProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"cta\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"search\") {\n\t\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, Layout: \"split\", Media: map[string]any{\"show\": true, \"side\": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: faqSplitFill4(p, vTitle, vImage, vImageAlt)}) {\n\t\t\t\t@FaqFinder(FaqFinderProps{Items: vItems, Labels: vLabels, Topics: vTopics})\n\t\t\t}\n\t\t}\n\t}\n}\n\ntempl faqSplitFill1(p FaqSplitProps, vId any, vItems any) {\n\t@FaqDisclosures(FaqDisclosuresProps{Items: vItems, Name: uiutils.Tpl(\"{0}-faq\", vId)})\n}\n\ntempl faqSplitFill2(p FaqSplitProps, vChannels any, vLabels any, vLandmarkLabel any) {\n\t@FaqHelp(FaqHelpProps{Labels: vLabels, Channels: vChannels, LandmarkLabel: vLandmarkLabel})\n}\n\ntempl faqSplitFill3(p FaqSplitProps, vTitle any, vImage any, vImageAlt any) {\n\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: \"4/3\"})\n}\n\ntempl faqSplitFill4(p FaqSplitProps, vTitle any, vImage any, vImageAlt any) {\n\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: \"4/3\"})\n}\n",
      "path": "blocks/faq-split.templ",
      "target": "blocks/faq-split.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "faq",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "faq-split",
  "registryDependencies": [
    "box",
    "button",
    "faq-cards",
    "faq-disclosures",
    "faq-finder",
    "faq-help",
    "kit-box",
    "kit-button",
    "media-frame",
    "section-frame",
    "utils"
  ],
  "runtime": "templ",
  "title": "Faq Split",
  "type": "registry:block"
}
