{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One quote beside a picture, a rating panel or over logo tiles; stacked quotes beside a picture; four compact quotes; figures over a featured quote and a stack.",
  "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/quote-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/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// QuoteSplitProps are the props of QuoteSplit; the values are the JSON shapes of the TypeScript props.\ntype QuoteSplitProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tBadge any `json:\"badge\"`\n\tQuotes any `json:\"quotes\"`\n\tLabels any `json:\"labels\"`\n\tExtras any `json:\"extras\"`\n\tActions any `json:\"actions\"`\n\tLayout any `json:\"layout\"`\n\tMediaSide any `json:\"mediaSide\"`\n\tTone any `json:\"tone\"`\n\tEmpty any `json:\"empty\"`\n\tImage any `json:\"image\"`\n\tImageAlt any `json:\"imageAlt\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Testimonials in a split or with figures. Axes: layout (media: one quote card and an action beside a picture, logos: one quote over four logo tiles beside a picture, rating: one quote beside a rating panel, stack: three stacked quote cards beside a picture, compact: four short quote cards in a row, bento: figures over a featured quote beside a stack), mediaSide, tone.\ntempl QuoteSplit(p QuoteSplitProps) {\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{{ vQuotes := p.Quotes }}\n\t{{ vLabels := p.Labels }}\n\t{{ vExtras := p.Extras }}\n\t{{ vActions := p.Actions }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"media\") }}\n\t{{ vMediaSide := uiutils.Def(p.MediaSide, \"end\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vImage := p.Image }}\n\t{{ vImageAlt := p.ImageAlt }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\tif uiutils.Eq(uiutils.Len(vQuotes), float64(0)) {\n\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"quote\", Title: vEmpty})\n\t\t}\n\t} else if uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"compact\"), uiutils.Eq(vLayout, \"bento\"))) {\n\t\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, LandmarkLabel: vLandmarkLabel}) {\n\t\t\tif uiutils.Eq(vLayout, \"bento\") {\n\t\t\t\t@QuoteFigures(QuoteFiguresProps{Extras: vExtras})\n\t\t\t}\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"bento\")), \"grid grid-cols-1 gap-4 lg:grid-cols-2\", \"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\"))}}) {\n\t\t\t\tfor vI, vQ := range uiutils.L(vQuotes) {\n\t\t\t\t\t@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Layout: uiutils.Cond(uiutils.T(uiutils.And(uiutils.Eq(vLayout, \"bento\"), uiutils.Eq(float64(vI), float64(0)))), \"single\", \"grid\"), Class: uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.And(uiutils.Eq(vLayout, \"bento\"), uiutils.Eq(float64(vI), float64(0)))), \"lg:row-span-3\", \"\"))})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else {\n\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: quoteSplitFill1(p, vTitle, vLabels, vExtras, vLayout, vImage, vImageAlt)}) {\n\t\t\tif uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"media\"), uiutils.Eq(vLayout, \"logos\"), uiutils.Eq(vLayout, \"rating\"))) {\n\t\t\t\tfor vI, vQ := range uiutils.L(vQuotes) {\n\t\t\t\t\tif uiutils.Lt(float64(vI), float64(1)) {\n\t\t\t\t\t\t@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Kind: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"media\")), \"card\", \"plain\"), Layout: \"single\", Class: uiutils.Cnv(\"\")})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif uiutils.Eq(vLayout, \"logos\") {\n\t\t\t\t@QuoteLogoTiles(QuoteLogoTilesProps{Extras: vExtras})\n\t\t\t}\n\t\t\tif uiutils.Eq(vLayout, \"stack\") {\n\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\tfor vI, vQ := range uiutils.L(vQuotes) {\n\t\t\t\t\t\tif uiutils.Lt(float64(vI), float64(3)) {\n\t\t\t\t\t\t\t@QuoteSlot(QuoteSlotProps{Q: vQ, Labels: vLabels, Layout: \"stack\", Class: uiutils.Cnv(\"\")})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"media\"), uiutils.Eq(vLayout, \"logos\"), uiutils.Eq(vLayout, \"rating\"))) {\n\t\t\t\t@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, \"cta\"), PrimaryHref: uiutils.Get(vActions, \"href\"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, \"mode\"), \"two\")), uiutils.Get(vActions, \"secondary\"), nil), SecondaryHref: uiutils.Get(vActions, \"secondaryHref\")})\n\t\t\t}\n\t\t}\n\t}\n}\n\ntempl quoteSplitFill1(p QuoteSplitProps, vTitle any, vLabels any, vExtras any, vLayout any, vImage any, vImageAlt any) {\n\tif uiutils.Eq(vLayout, \"rating\") {\n\t\t@QuoteRatingPanel(QuoteRatingPanelProps{Extras: vExtras, Labels: vLabels})\n\t} else {\n\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: \"4/3\"})\n\t}\n}\n",
      "path": "blocks/quote-split.templ",
      "target": "blocks/quote-split.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "quote-split",
  "registryDependencies": [
    "action-group",
    "box",
    "empty-state",
    "kit-box",
    "media-frame",
    "quote-figures",
    "quote-logo-tiles",
    "quote-rating-panel",
    "quote-slot",
    "section-frame",
    "stack",
    "utils"
  ],
  "runtime": "templ",
  "title": "Quote Split",
  "type": "registry:block"
}
