{"version":3,"file":"CustomImageURL.CYJ_ChmV.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_BL70qLPA","addPropertyControls","ControlType","CustomURLImage","props","style","bgColor","radius","imageUrl","altText","desaturate","init_CustomImageURL"],"sources":["https:/framerusercontent.com/modules/yNiuorRM0aFHEmKDOcoJ/z5JAn26b2Jm9Gn6dvyiN/CustomImageURL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function CustomURLImage(props){const{imageUrl,altText,desaturate,bgColor,radius,style}=props;return /*#__PURE__*/_jsx(\"div\",{style:{...style,backgroundColor:bgColor,borderRadius:`${radius}px`,overflow:\"hidden\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:imageUrl?/*#__PURE__*/_jsx(\"img\",{src:imageUrl,alt:altText,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",filter:desaturate?\"grayscale(100%)\":\"none\",transition:\"filter 0.3s ease\"}}):// Fallback, ak nie je zadaná žiadna URL\n/*#__PURE__*/_jsx(\"div\",{style:{color:\"#888\",fontFamily:\"sans-serif\",fontSize:14},children:\"No Image URL\"})});}// Nastavenie predvolených hodnôt komponentu\nCustomURLImage.defaultProps={imageUrl:\"https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2400&auto=format&fit=crop\",altText:\"Obr\\xe1zok\",desaturate:false,bgColor:\"#E5E5E5\",radius:12};// Prepojenie ovládacích prvkov s Framer rozhraním\naddPropertyControls(CustomURLImage,{imageUrl:{type:ControlType.String,title:\"Image URL\",placeholder:\"Vložte URL obr\\xe1zka...\"},altText:{type:ControlType.String,title:\"Alt Text\",placeholder:\"Popis obr\\xe1zka...\"},desaturate:{type:ControlType.Boolean,title:\"Desaturate\",defaultValue:false},bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#E5E5E5\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:12,min:0,max:200,step:1,description:\"Component created by [Andrej Borsk\\xfd](https://tinyurl.com/borsky)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomURLImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomImageURL.map"],"mappings":"A,4JAA+F,SAAwBM,EAAe,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,aAAW,UAAQ,SAAO,SAAOC,EAAM,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,gBAAgBC,EAAQ,aAAa,GAAGC,EAAO,IAAI,SAAS,SAAS,QAAQ,OAAO,eAAe,SAAS,WAAW,QAAQ,EAAE,SAASC,EAAsB,gBAAK,MAAM,CAAC,IAAIA,EAAS,IAAIC,EAAQ,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,OAAOC,EAAW,kBAAkB,OAAO,WAAW,kBAAkB,CAAC,CAAC,EACjjB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,WAAW,aAAa,SAAS,EAAE,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,CAAE,C,sCAC9G,EAAe,aAAa,CAAC,SAAS,gGAAgG,QAAQ,UAAa,WAAW,GAAM,QAAQ,UAAU,OAAO,EAAE,EACvMT,EAAoBE,EAAe,CAAC,SAAS,CAAC,KAAKD,EAAY,OAAO,MAAM,YAAY,YAAY,uBAA0B,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,YAAY,kBAAqB,EAAE,WAAW,CAAC,KAAKA,EAAY,QAAQ,MAAM,aAAa,aAAa,EAAK,EAAE,QAAQ,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,YAAY,kEAAqE,CAAC,CAAC,C"}