{"version":3,"file":"LinearGraph_1.BL7lM7AM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3Jkk7YiZ0gLDpqWhnCvO/e5Hy62g1KVfVnjhelWC8/LinearGraph_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function KatalogBar(props){const value=parseFloat(props.cmsValue)||0;const factor=props.factor||90;const barWidth=Math.abs(value)*factor;const containerStyle={width:\"100%\",height:\"100%\",position:\"relative\"};const barStyle={position:\"absolute\",height:\"15px\",top:\"50%\",transform:\"translateY(-50%)\",backgroundColor:props.color||\"#005382\",width:`${barWidth}px`,// Logika:\n// Pokud je víc než 0, začni na 50% (střed)\n// Pokud je míň než 0, posuň začátek doleva o celou šířku pruhu\nleft:value>=0?\"50%\":`calc(50% - ${barWidth}px)`};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",width:\"1px\",height:\"100%\",backgroundColor:\"rgba(0,0,0,0.2)\",zIndex:1}}),/*#__PURE__*/_jsx(\"div\",{style:barStyle})]});}addPropertyControls(KatalogBar,{cmsValue:{type:ControlType.String,title:\"Hodnota\",defaultValue:\"1\"},factor:{type:ControlType.Number,title:\"Měř\\xedtko\",defaultValue:90},color:{type:ControlType.Color,title:\"Barva\",defaultValue:\"#005382\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KatalogBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinearGraph_1.map"],"mappings":"8JAA6G,SAAwB,EAAW,EAAM,CAAC,IAAM,EAAM,WAAW,EAAM,SAAS,EAAE,EAAQ,EAAO,EAAM,QAAQ,GAAS,EAAS,KAAK,IAAI,EAAM,CAAC,EAAa,EAAe,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,CAAO,EAAS,CAAC,SAAS,WAAW,OAAO,OAAO,IAAI,MAAM,UAAU,mBAAmB,gBAAgB,EAAM,OAAO,UAAU,MAAM,GAAG,EAAS,IAG7d,KAAK,GAAO,EAAE,MAAM,cAAc,EAAS,KAAK,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,EAAe,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,KAAK,MAAM,MAAM,MAAM,OAAO,OAAO,gBAAgB,kBAAkB,OAAO,EAAE,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,EAAS,CAAC,CAAC,CAAC,CAAC,kBAH3O,IAAoD,CAGyL,EAAoB,EAAW,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,IAAI,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,UAAa,aAAa,GAAG,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,UAAU,CAAC,CAAC"}