{"version":3,"file":"ImageURL.lji5_C6m.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Mk85nDdEsJ2h0fk1kNkR/j4BVqP6zEI4RppqCqtMk/ImageURL.js"],"sourcesContent":["// User request: verify whether this component applies grain/noise and expose grain as optional controls defaulting to off/0.\n// Image component with URL input and native Framer image controls\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ImageURL(props){const{imageURL=\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt=\"\",fit=\"fill\",positionX=\"50%\",positionY=\"50%\",radius=0,grain=false,grainOpacity=0,style}=props;const objectFitMap={fill:\"cover\",fit:\"contain\",stretch:\"fill\"};return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",height:\"100%\",overflow:\"hidden\",borderRadius:radius,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"img\",{src:imageURL,alt:alt,style:{width:\"100%\",height:\"100%\",objectFit:objectFitMap[fit],objectPosition:`${positionX} ${positionY}`}}),grain&&grainOpacity>0?/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{position:\"absolute\",inset:0,pointerEvents:\"none\",opacity:grainOpacity,mixBlendMode:\"soft-light\",backgroundImage:\"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E\\\")\",backgroundRepeat:\"repeat\",backgroundSize:\"120px 120px\"}}):null]});}addPropertyControls(ImageURL,{imageURL:{type:ControlType.String,title:\"Image URL\",defaultValue:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",placeholder:\"https://example.com/image.jpg\"},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"\",placeholder:\"Image description\"},fit:{type:ControlType.Enum,title:\"Fit\",options:[\"fill\",\"fit\",\"stretch\"],optionTitles:[\"Fill\",\"Fit\",\"Stretch\"],defaultValue:\"fill\"},positionX:{type:ControlType.Enum,title:\"Position X\",options:[\"0%\",\"25%\",\"50%\",\"75%\",\"100%\"],optionTitles:[\"Left\",\"25%\",\"Center\",\"75%\",\"Right\"],defaultValue:\"50%\"},positionY:{type:ControlType.Enum,title:\"Position Y\",options:[\"0%\",\"25%\",\"50%\",\"75%\",\"100%\"],optionTitles:[\"Top\",\"25%\",\"Center\",\"75%\",\"Bottom\"],defaultValue:\"50%\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:0,min:0,max:200,step:1,unit:\"px\"},grain:{type:ControlType.Boolean,title:\"Grain\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},grainOpacity:{type:ControlType.Number,title:\"Grain Opacity\",defaultValue:0,min:0,max:1,step:.01,hidden:props=>!props.grain}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageURL\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageURL.map"],"mappings":"oKAKG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,WAAS,sEAAsE,MAAI,GAAG,MAAI,OAAO,YAAU,MAAM,YAAU,MAAM,SAAO,EAAE,QAAM,GAAM,eAAa,EAAE,SAAO,EAAY,EAAa,CAAC,KAAK,QAAQ,IAAI,UAAU,QAAQ,MAAM,EAAE,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,aAAa,EAAO,SAAS,U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