{"version":3,"file":"DentavisChips.D8OlTzLI.mjs","names":[],"sources":["https:/framerusercontent.com/modules/RQdGBOFDlVgYWWqR5Wxe/yc3DRRwfvO0fUix4Qn9C/DentavisChips.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Splittet einen ·-separierten Text in einzelne Chip-Badges.\n * Funktioniert mit plain text und formattedText (HTML) aus Framer CMS.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 260\n * @framerIntrinsicHeight 80\n */export default function DentavisChips(props){const{text=\"\",chipBg=\"rgb(231,236,247)\",chipColor=\"rgb(16,43,120)\"}=props;// Strip HTML, decode entities, normalize whitespace\nconst clean=(text||\"\").replace(/<[^>]*>/g,\" \").replace(/&middot;/gi,\"\\xb7\").replace(/&amp;/gi,\"&\").replace(/&nbsp;/gi,\" \").replace(/\\u00b7/g,\"\\xb7\")// Unicode middle dot\n.replace(/\\s+/g,\" \").trim();const chips=clean?clean.split(/\\s*·\\s*/).map(c=>c.trim()).filter(Boolean):[];if(!text||chips.length===0)return null;return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"row\",flexWrap:\"wrap\",gap:6,width:\"100%\"},children:chips.map((chip,i)=>/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",padding:\"4px 12px\",height:26,borderRadius:999,backgroundColor:chipBg,color:chipColor,fontSize:11,fontWeight:600,letterSpacing:\"0.1em\",textTransform:\"uppercase\",fontFamily:\"'Satoshi', 'Inter', -apple-system, sans-serif\",whiteSpace:\"nowrap\",boxSizing:\"border-box\"},children:chip},i))});}addPropertyControls(DentavisChips,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Implantologie \\xb7 PRGF \\xb7 Regeneration \\xb7 Chirurgie\",displayTextArea:true},chipBg:{type:ControlType.Color,title:\"Badge BG\",defaultValue:\"rgb(231,236,247)\"},chipColor:{type:ControlType.Color,title:\"Badge Text\",defaultValue:\"rgb(16,43,120)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DentavisChips\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"80\",\"framerIntrinsicWidth\":\"260\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DentavisChips.map"],"mappings":"4JAQG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,GAAG,SAAO,mBAAmB,YAAU,kBAAkB,EAC9G,GAAO,GAAM,IAAI,QAAQ,WAAW,IAAI,CAAC,QAAQ,aAAa,IAAO,CAAC,QAAQ,UAAU,IAAI,CAAC,QAAQ,WAAW,IAAI,CAAC,QAAQ,UAAU,IAAO,CACnJ,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAO,EAAM,EAAM,EAAM,MAAM,UAAU,CAAC,IAAI,GAAG,EAAE,MAAM,CAAC,CAAC,OAAO,QAAQ,CAAC,EAAE,CAAwC,MAApC,CAAC,GAAM,EAAM,SAAS,EAAS,KAAyB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,MAAM,SAAS,OAAO,IAAI,EAAE,MAAM,OAAO,CAAC,SAAS,EAAM,KAAK,EAAK,IAAiB,EAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,cAAc,WAAW,SAAS,QAAQ,WAAW,OAAO,GAAG,aAAa,IAAI,gBAAgB,EAAO,MAAM,EAAU,SAAS,GAAG,WAAW,IAAI,cAAc,QAAQ,cAAc,YAAY,WAAW,gDAAgD,WAAW,SAAS,UAAU,aAAa,CAAC,SAAS,EAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAVtlB,IAAoD,CAUoiB,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,kDAA2D,gBAAgB,GAAK,CAAC,OAAO,CAAC,KAAK,EAAY,MAAM,MAAM,WAAW,aAAa,mBAAmB,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,iBAAiB,CAAC,CAAC"}