{"version":3,"file":"Hybrid.CyZOutuN.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/ofM4GJ3aMIu3YQFb347b/gM1DPmt3kzWlE6PdMthh/Hybrid.js"],"sourcesContent":["// User request: Rewrite FinanzierungsModell as a static hybrid financing donut chart with centered overlay text, fixed two item legend, full property controls, no animations, and auto height sizing for width fill usage.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FinanzierungsModell(props){const{elternColor,kommuneColor,textColor,dimColor,quietColor,centerValue,centerCaption,legendOneLabel,legendOneValue,legendOneDescription,legendTwoLabel,legendTwoValue,legendTwoDescription,centerValueFont,centerCaptionFont,legendLabelFont,legendValueFont,legendDescriptionFont}=props;const legendEntries=useMemo(()=>[{dotColor:elternColor,label:legendOneLabel,value:legendOneValue,description:legendOneDescription},{dotColor:kommuneColor,label:legendTwoLabel,value:legendTwoValue,description:legendTwoDescription}],[elternColor,kommuneColor,legendOneDescription,legendOneLabel,legendOneValue,legendTwoDescription,legendTwoLabel,legendTwoValue]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"auto\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"flex-start\",fontFamily:\"Inter, sans-serif\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",maxWidth:384,aspectRatio:\"1 / 1\"},children:[/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 200 200\",role:\"img\",\"aria-label\":\"Finanzierungsanteile: 50 Prozent Eltern \\xfcber Privatkauf, 50 Prozent Kommune \\xfcber DigitalPakt 2.0\",width:\"100%\",height:\"100%\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"100\",cy:\"100\",r:\"80\",fill:\"none\",stroke:kommuneColor,strokeWidth:\"22\",strokeLinecap:\"round\",strokeDasharray:\"243 259.65\",transform:\"rotate(-88 100 100)\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"100\",cy:\"100\",r:\"80\",fill:\"none\",stroke:elternColor,strokeWidth:\"22\",strokeLinecap:\"round\",strokeDasharray:\"243 259.65\",transform:\"rotate(92 100 100)\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:centerValueFont.fontSize,fontWeight:centerValueFont.fontWeight,fontFamily:centerValueFont.fontFamily,fontStyle:centerValueFont.fontStyle,letterSpacing:centerValueFont.letterSpacing,lineHeight:centerValueFont.lineHeight,textAlign:centerValueFont.textAlign,color:textColor},children:centerValue}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:4,fontSize:centerCaptionFont.fontSize,fontWeight:centerCaptionFont.fontWeight,fontFamily:centerCaptionFont.fontFamily,fontStyle:centerCaptionFont.fontStyle,letterSpacing:centerCaptionFont.letterSpacing,lineHeight:centerCaptionFont.lineHeight,textAlign:centerCaptionFont.textAlign,color:dimColor,maxWidth:\"16ch\"},children:centerCaption})]})]}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:40,width:\"100%\",maxWidth:448,display:\"grid\",gridTemplateColumns:\"repeat(2, minmax(0, 1fr))\",gap:32},children:legendEntries.map((entry,index)=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:10},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:10,height:10,borderRadius:\"50%\",background:entry.dotColor,marginTop:5,flexShrink:0}}),/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:legendLabelFont.fontSize,fontWeight:legendLabelFont.fontWeight,fontFamily:legendLabelFont.fontFamily,fontStyle:legendLabelFont.fontStyle,letterSpacing:legendLabelFont.letterSpacing,textAlign:legendLabelFont.textAlign,lineHeight:legendLabelFont.lineHeight,color:quietColor},children:entry.label}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:legendValueFont.fontSize,fontWeight:legendValueFont.fontWeight,fontFamily:legendValueFont.fontFamily,fontStyle:legendValueFont.fontStyle,letterSpacing:legendValueFont.letterSpacing,lineHeight:legendValueFont.lineHeight,textAlign:legendValueFont.textAlign,color:textColor,marginTop:2},children:entry.value}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:4,fontSize:legendDescriptionFont.fontSize,fontWeight:legendDescriptionFont.fontWeight,fontFamily:legendDescriptionFont.fontFamily,fontStyle:legendDescriptionFont.fontStyle,letterSpacing:legendDescriptionFont.letterSpacing,lineHeight:legendDescriptionFont.lineHeight,textAlign:legendDescriptionFont.textAlign,color:dimColor},children:entry.description})]})]},`${entry.label}-${index}`))})]});}addPropertyControls(FinanzierungsModell,{elternColor:{type:ControlType.Color,title:\"Eltern\",defaultValue:\"#B0345A\"},kommuneColor:{type:ControlType.Color,title:\"Kommune\",defaultValue:\"#23A96A\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#18181B\"},dimColor:{type:ControlType.Color,title:\"Gedimmt\",defaultValue:\"#52525B\"},quietColor:{type:ControlType.Color,title:\"Leise\",defaultValue:\"#71717A\"},centerValue:{type:ControlType.String,title:\"Mitte Wert\",defaultValue:\"100 %\"},centerCaption:{type:ControlType.String,title:\"Mitte Text\",defaultValue:\"Ausstattung f\\xfcr alle Sch\\xfclerinnen und Sch\\xfcler\"},legendOneLabel:{type:ControlType.String,title:\"Label 1\",defaultValue:\"Eltern\"},legendOneValue:{type:ControlType.String,title:\"Wert 1\",defaultValue:\"50 %\"},legendOneDescription:{type:ControlType.String,title:\"Text 1\",defaultValue:\"Privatkauf, andere Verteilung m\\xf6glich\"},legendTwoLabel:{type:ControlType.String,title:\"Label 2\",defaultValue:\"Kommune\"},legendTwoValue:{type:ControlType.String,title:\"Wert 2\",defaultValue:\"50 %\"},legendTwoDescription:{type:ControlType.String,title:\"Text 2\",defaultValue:\"DigitalPakt 2.0, andere Verteilung m\\xf6glich\"},centerValueFont:{type:ControlType.Font,title:\"Mitte Wert Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:46,variant:\"Semibold\",letterSpacing:\"-0.02em\",lineHeight:\"1em\",textAlign:\"center\"}},centerCaptionFont:{type:ControlType.Font,title:\"Mitte Text Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\",textAlign:\"center\"}},legendLabelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\",textAlign:\"left\"}},legendValueFont:{type:ControlType.Font,title:\"Wert Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:24,variant:\"Semibold\",letterSpacing:\"-0.02em\",lineHeight:\"1.1em\",textAlign:\"left\"}},legendDescriptionFont:{type:ControlType.Font,title:\"Beschreibung Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\",textAlign:\"left\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FinanzierungsModell\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hybrid.map"],"mappings":"iLAIG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,cAAY,eAAa,YAAU,WAAS,aAAW,cAAY,gBAAc,iBAAe,iBAAe,uBAAqB,iBAAe,iBAAe,uBAAqB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