{"version":3,"file":"ChipRow.D-CPEmGj.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_Bf4_tcb2","addPropertyControls","ControlType","ChipRow","props","raw","chips","items","s","i","chipStyle","pill","chipBg","chipColor","chipBorder","uppercase","style","it","init_ChipRow"],"sources":["https:/framerusercontent.com/modules/tsvUpT8QsYeqbBcx3ZjY/cuTzgZAyu6veVQY4QYiU/ChipRow.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Renders chips from a delimited string. Supports:\n *  - \"a, b, c\" (comma) or \"a~~b~~c\" (tilde) delimiters\n *  - \"Label|/path\" entries render as links\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ChipRow(props){const{chips=\"\",chipBg=\"rgba(0, 75, 135, 0.06)\",chipColor=\"#001F3F\",chipBorder=\"rgba(0, 31, 63, 0.12)\",fontSize=10,gap=8,uppercase=true,pill=false,style}=props;const raw=String(chips);const parts=raw.includes(\"~~\")?raw.split(\"~~\"):raw.split(\",\");const items=parts.map(s=>s.trim()).filter(Boolean).map(s=>{const i=s.indexOf(\"|\");return i>0?{label:s.slice(0,i).trim(),href:s.slice(i+1).trim()}:{label:s,href:null};});if(items.length===0)return null;const chipStyle={display:\"inline-block\",padding:pill?\"6px 14px\":\"5px 10px\",backgroundColor:chipBg,color:chipColor,border:`1px solid ${chipBorder}`,borderRadius:pill?999:4,fontFamily:'\"Open Sans\", sans-serif',fontSize,fontWeight:600,letterSpacing:\"0.06em\",textTransform:uppercase?\"uppercase\":\"none\",whiteSpace:\"nowrap\",lineHeight:1.4,textDecoration:\"none\"};return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap,justifyContent:\"flex-start\",alignItems:\"center\",alignContent:\"center\",...style},children:items.map((it,i)=>it.href?/*#__PURE__*/_jsx(\"a\",{href:it.href,style:chipStyle,children:it.label},i):/*#__PURE__*/_jsx(\"span\",{style:chipStyle,children:it.label},i))});}addPropertyControls(ChipRow,{chips:{type:ControlType.String,title:\"Chips (a, b, c)\",defaultValue:\"\"},chipBg:{type:ControlType.Color,title:\"Chip BG\",defaultValue:\"rgba(0, 75, 135, 0.06)\"},chipColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#001F3F\"},chipBorder:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgba(0, 31, 63, 0.12)\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:10,min:8,max:16},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:24},uppercase:{type:ControlType.Boolean,title:\"Uppercase\",defaultValue:true},pill:{type:ControlType.Boolean,title:\"Pill\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ChipRow\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ChipRow.map"],"mappings":"A,4JAMG,SAAwBM,EAAQ,EAAM,CAAC,GAAK,CAAC,QAAM,GAAG,SAAO,yBAAyB,YAAU,UAAU,aAAW,wBAAwB,WAAS,GAAG,MAAI,EAAE,YAAU,GAAK,OAAK,GAAM,SAAOC,EAAYC,EAAI,OAAOC,CAAK,EAAsEC,GAAxDF,EAAI,SAAS,IAAI,EAAEA,EAAI,MAAM,IAAI,EAAEA,EAAI,MAAM,GAAG,EAAA,CAAoB,IAAI,GAAGG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,IAAI,GAAG,CAAC,IAAMC,EAAED,EAAE,QAAQ,GAAG,EAAE,OAAOC,EAAE,EAAE,CAAC,MAAMD,EAAE,MAAM,EAAEC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAKD,EAAE,MAAMC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,C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