{"version":3,"file":"TitelSplit.BWedAMEl.mjs","names":["__esmMin","init_jsx_runtime","c","p","init_framer_BWFVvmND","addPropertyControls","TitelSplit","props","Container","headingTag","raw","title","i","separator","header","sub","clamp","lines","headerSize","uppercase","headerColor","headerLines","subSize","subColor","subLines","init_TitelSplit","ControlType"],"sources":["https:/framerusercontent.com/modules/nMvZTjeg1pkfT0B9ZC9R/qIlV2VHJi5P3yt5oHHW3/TitelSplit.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function TitelSplit(props){const{title,headingTag=\"div\",separator,uppercase,headerSize,headerColor,headerLines,subSize,subColor,subLines,gap}=props;const Container=[\"h1\",\"h2\",\"h3\"].includes(headingTag)?headingTag:\"div\";const raw=title||\"\";const i=raw.indexOf(separator);const header=(i>=0?raw.slice(0,i):raw).trim();const sub=i>=0?raw.slice(i+separator.length).trim():\"\";const clamp=lines=>lines>0?{display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:lines,overflow:\"hidden\"}:{};return /*#__PURE__*/_jsxs(Container,{style:{margin:0,fontSize:\"inherit\",fontWeight:400,display:\"flex\",flexDirection:\"column\",gap:gap,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",fontFamily:'\"D-DIN Condensed DINCondensed-Bold\", \"D-DIN Condensed DINCondensed-Bold Placeholder\", sans-serif',fontWeight:400,fontSize:headerSize,lineHeight:1.1,letterSpacing:\"0.01em\",textTransform:uppercase?\"uppercase\":\"none\",color:headerColor,...clamp(headerLines)},children:header}),sub!==\"\"&&/*#__PURE__*/_jsxs(\"span\",{style:{position:\"absolute\",width:1,height:1,overflow:\"hidden\",clipPath:\"inset(50%)\",whiteSpace:\"nowrap\"},children:[separator,\" \"]}),sub!==\"\"&&/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",fontFamily:'\"D-DIN Regular\", \"D-DIN Regular Placeholder\", sans-serif',fontWeight:400,fontSize:subSize,lineHeight:1.35,color:subColor,...clamp(subLines)},children:sub})]});}TitelSplit.defaultProps={headingTag:\"div\",title:\"Letzte Woche vor der Grundausbildung: Was du jetzt noch vorbereiten solltest\",separator:\":\",uppercase:true,headerSize:18,headerColor:\"#2A2F24\",headerLines:2,subSize:14,subColor:\"rgba(42, 47, 36, 0.8)\",subLines:2,gap:4};addPropertyControls(TitelSplit,{headingTag:{type:ControlType.Enum,title:\"HTML-Rolle\",options:[\"div\",\"h1\",\"h2\",\"h3\"],optionTitles:[\"Text\",\"Haupt\\xfcberschrift\",\"Abschnitt\",\"Unterabschnitt\"],defaultValue:\"div\"},title:{type:ControlType.String,title:\"Titel\"},separator:{type:ControlType.String,title:\"Trenner\",defaultValue:\":\"},uppercase:{type:ControlType.Boolean,title:\"Versalien\",defaultValue:true},headerSize:{type:ControlType.Number,title:\"Header Gr\\xf6\\xdfe\",min:10,max:64,defaultValue:18},headerColor:{type:ControlType.Color,title:\"Header Farbe\"},headerLines:{type:ControlType.Number,title:\"Header Zeilen\",min:0,max:5,defaultValue:2},subSize:{type:ControlType.Number,title:\"Sub Gr\\xf6\\xdfe\",min:10,max:40,defaultValue:14},subColor:{type:ControlType.Color,title:\"Sub Farbe\"},subLines:{type:ControlType.Number,title:\"Sub Zeilen\",min:0,max:5,defaultValue:2},gap:{type:ControlType.Number,title:\"Abstand\",min:0,max:24,defaultValue:4}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TitelSplit\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TitelSplit.map"],"mappings":"A,8JAA6G,SAAwBM,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,aAAW,MAAM,YAAU,YAAU,aAAW,cAAY,cAAY,UAAQ,WAAS,WAAS,OAAKC,EAAYC,EAAU,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,SAASC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