{"version":3,"file":"ImageLoader.DdpMDFSo.mjs","names":[],"sources":["https:/framerusercontent.com/modules/e0vhzbL5Qm8TtWuY8sMl/7ogg89pX3FNAJeS1eYBh/ImageLoader.js"],"sourcesContent":["// External Image Loader\n// Loads an image from a user-provided URL via property control\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * External Image Loader\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ImageLoader(props){const{imageUrl,alt,children,style,objectFit,objectPosition,radius=8,borderWidth=0,borderColor=\"#EEEEEE\"}=props;// If children is a string (from CMS), use as imageUrl\nconst url=typeof children===\"string\"&&children?children:imageUrl;// Scroll all children horizontally in a continuous loop\nreturn /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",...style,overflow:\"hidden\",borderRadius:radius,border:borderWidth>0?`${borderWidth}px solid ${borderColor}`:\"none\"},children:[url?/*#__PURE__*/_jsx(\"img\",{src:url,alt:alt,style:{width:\"100%\",height:\"100%\",objectFit:objectFit,objectPosition:objectPosition,display:\"block\",borderRadius:radius}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#ccc\",background:\"#f5f5f5\"},children:\"No image URL\"}),Array.isArray(children)&&children.length>0&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",width:\"max-content\",animation:\"scroll-x-loop 20s linear infinite\"},children:children.concat(children).map((child,i)=>/*#__PURE__*/_jsx(\"div\",{style:{flex:\"none\"},children:child},i))}),/*#__PURE__*/_jsx(\"style\",{children:`\n                        @keyframes scroll-x-loop {\n                            0% { transform: translateX(0); }\n                            100% { transform: translateX(-50%); }\n                        }\n                    `})]})]});}addPropertyControls(ImageLoader,{imageUrl:{type:ControlType.String,title:\"Image URL\",placeholder:\"https://...\",defaultValue:\"\",hidden:props=>!!props.children},children:{type:ControlType.Slot,title:\"Image URL (CMS)\",maxCount:1},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"External image\"},objectFit:{type:ControlType.Enum,title:\"Image Fit\",options:[\"cover\",\"contain\",\"fill\",\"none\",\"scale-down\",\"fit\"],optionTitles:[\"Cover\",\"Contain\",\"Fill\",\"None\",\"Scale Down\",\"Fit\"],defaultValue:\"cover\"},objectPosition:{type:ControlType.Enum,title:\"Focal Point\",options:[\"center\",\"top\",\"bottom\",\"left\",\"right\",\"top left\",\"top right\",\"bottom left\",\"bottom right\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\",\"Top Left\",\"Top Right\",\"Bottom Left\",\"Bottom Right\"],defaultValue:\"center\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:64,unit:\"px\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:20,step:1,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\",hidden:props=>!props.borderWidth}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageLoader\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageLoader.map"],"mappings":"mKAUG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,WAAS,MAAI,WAAS,QAAM,YAAU,iBAAe,SAAO,EAAE,cAAY,EAAE,cAAY,WAAW,EACjJ,E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