{"version":3,"file":"ImageFrame.BgRIRWHn.mjs","names":["useMemo","__esmMin","pe","init_npm_react_18_3_1","p","c","init_jsx_runtime","ce","addPropertyControls","init_framer_CaDWdxiz","ControlType","ImageFrame","defaultImage","props","STYLE_ID","styleEl","SCOPE","TOKENS","gradient","variant","isCorner","layout","resolvedImage","image","styleWithoutHeight","next","style","aspectRatio","init_ImageFrame"],"sources":["https:/framerusercontent.com/modules/y9FSQwCwJEWdfnQcX5cT/cyIphNg3n5y2FyDeVkmW/ImageFrame.js"],"sourcesContent":["// User request: Create reusable Image Frame component with variant/layout controls, token-aware styling, intrinsic aspect-ratio sizing, no text styles, and desktop fine-pointer hover lift with reduced-motion support.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useMemo}from\"react\";const TOKENS={navy:\"var(--token-d033b5c3-0a6a-4496-a676-0e1812a189f0)\",white:\"var(--token-22204b92-b31a-44f1-af00-bcb8af94467d)\",border:\"var(--token-f5a6ce15-bc5a-4f62-b80a-b34ec599c9e5)\"};const STYLE_ID=\"framer-image-frame-style\";const SCOPE=\"framer-image-frame-scope\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ImageFrame(props){const defaultImage={src:\"https://framerusercontent.com/images/g54zKaQgIrSg7f9n24aZ5fuuG18.png\",alt:\"Screenshot\"};const{image=defaultImage,variant,layout,aspectRatio,style}=props;useEffect(()=>{if(typeof document===\"undefined\")return;if(document.getElementById(STYLE_ID))return;const styleEl=document.createElement(\"style\");styleEl.id=STYLE_ID;styleEl.textContent=`\n.${SCOPE} { height: auto !important; }\n.${SCOPE} .image-frame-bezel { transition: transform .3s ease-out, box-shadow .3s ease-out; }\n@media (hover: hover) and (pointer: fine) {\n  .${SCOPE}:hover .image-frame-bezel {\n    transform: translateY(-4px);\n    box-shadow: 0 30px 60px -12px color-mix(in srgb, ${TOKENS.navy} 42%, transparent), 0 8px 20px color-mix(in srgb, ${TOKENS.navy} 14.4%, transparent);\n  }\n}\n@media (prefers-reduced-motion: reduce) {\n  .${SCOPE}, .${SCOPE} .image-frame-bezel { transition: none !important; }\n  .${SCOPE}:hover .image-frame-bezel { transform: none !important; }\n}\n@media (max-width: 1199.98px) {\n  .${SCOPE} {\n    aspect-ratio: auto !important;\n    padding: 16px !important;\n  }\n  .${SCOPE} .image-frame-bezel {\n    position: relative !important;\n    top: auto !important;\n    left: auto !important;\n    right: auto !important;\n    bottom: auto !important;\n    width: 100% !important;\n    transform: none !important;\n  }\n  .${SCOPE} .image-frame-bezel img {\n    width: 100% !important;\n    height: auto !important;\n    object-fit: contain !important;\n  }\n}\n@media (max-width: 809.98px) {\n  .${SCOPE}[data-phone=\"true\"] { border-radius: 16px !important; padding: 12px !important; }\n  .${SCOPE}[data-phone=\"true\"][data-layout=\"Centred\"] .image-frame-bezel { top: auto !important; left: auto !important; width: 100% !important; border-radius: 16px !important; }\n  .${SCOPE}[data-phone=\"true\"][data-layout=\"Corner\"] .image-frame-bezel { top: auto !important; left: auto !important; width: 100% !important; border-radius: 16px !important; }\n}\n`;document.head.appendChild(styleEl);},[]);const gradient=useMemo(()=>{if(variant===\"Sky\")return\"linear-gradient(155deg, #DCE7FF 0%, #9FBBFF 100%)\";if(variant===\"Navy\")return\"linear-gradient(155deg, #6C8CF0 0%, #1E3FA8 50%, #0A2472 100%)\";if(variant===\"Ice\")return\"linear-gradient(155deg, #EEF3FF 0%, #BFD0FF 100%)\";if(variant===\"Steel\")return\"linear-gradient(155deg, #D5E0F5 0%, #7C97D6 100%)\";return`linear-gradient(155deg, #C9D8FF 0%, #5B84F5 45%, ${TOKENS.navy} 100%)`;},[variant]);const isCorner=layout===\"Corner\";const resolvedImage=useMemo(()=>{if(typeof image===\"string\"){return image?{src:image,alt:\"Screenshot\"}:defaultImage;}if(!image?.src)return defaultImage;return image;},[image]);const styleWithoutHeight=useMemo(()=>{const next={...style||{}};delete next.height;return next;},[style]);return /*#__PURE__*/_jsxs(\"div\",{className:SCOPE,\"data-phone\":\"true\",\"data-layout\":layout,style:{position:\"relative\",width:\"100%\",maxWidth:\"100%\",aspectRatio:String(Math.max(.2,aspectRatio||1.6)),height:\"auto\",borderRadius:24,overflow:\"hidden\",border:`1px solid color-mix(in srgb, ${TOKENS.white} 60%, transparent)`,background:gradient,boxSizing:\"border-box\",...styleWithoutHeight},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:240,height:240,top:-60,left:-40,borderRadius:\"50%\",background:`radial-gradient(circle, color-mix(in srgb, ${TOKENS.white} 40%, transparent), transparent 68%)`,filter:\"blur(80px)\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:280,height:280,right:-80,bottom:-90,borderRadius:\"50%\",background:\"radial-gradient(circle, rgba(159,187,255,.35), transparent 70%)\",filter:\"blur(80px)\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"image-frame-bezel\",style:{position:\"absolute\",top:isCorner?28:32,left:isCorner?28:32,width:isCorner?\"125%\":\"calc(100% - 64px)\",padding:10,borderRadius:18,border:`1px solid color-mix(in srgb, ${TOKENS.white} 70%, transparent)`,background:`color-mix(in srgb, ${TOKENS.white} 55%, transparent)`,backdropFilter:\"blur(16px)\",WebkitBackdropFilter:\"blur(16px)\",overflow:\"visible\",boxSizing:\"border-box\",transition:\"transform .3s ease-out, box-shadow .3s ease-out\",boxShadow:`0 30px 60px -12px color-mix(in srgb, ${TOKENS.navy} 35%, transparent), 0 8px 20px color-mix(in srgb, ${TOKENS.navy} 12%, transparent)`},children:/*#__PURE__*/_jsx(\"img\",{src:resolvedImage.src,srcSet:resolvedImage.srcSet,alt:resolvedImage.alt||\"\",style:{width:\"100%\",height:\"auto\",display:\"block\",objectFit:\"cover\",objectPosition:isCorner?\"left top\":\"center center\",borderRadius:10,border:`1px solid ${TOKENS.border}`}})})]});}ImageFrame.displayName=\"Image Frame\";addPropertyControls(ImageFrame,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"Blue\",\"Sky\",\"Navy\",\"Ice\",\"Steel\"],optionTitles:[\"Blue\",\"Sky\",\"Navy\",\"Ice\",\"Steel\"],defaultValue:\"Blue\"},layout:{type:ControlType.Enum,title:\"Layout\",options:[\"Centred\",\"Corner\"],optionTitles:[\"Centred\",\"Corner\"],defaultValue:\"Centred\"},aspectRatio:{type:ControlType.Number,title:\"Aspect\",defaultValue:1.6,min:.5,max:3,step:.01},style:{type:ControlType.Object,title:\"Style\",controls:{},defaultValue:{},hidden:()=>true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ImageFrame\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageFrame.map"],"mappings":"A,wLAIG,SAAwBW,EAAW,EAAM,CAAC,IAAMC,EAAa,CAAC,IAAI,uEAAuE,IAAI,YAAY,EAAO,CAAC,QAAMA,EAAa,UAAQ,SAAO,cAAY,SAAOC,EAAMN,MAAc,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAeO,CAAQ,EAAE,OAAO,IAAMC,EAAQ,SAAS,cAAc,OAAO,EAAE,EAAQ,GAAGD,EAAS,EAAQ,YAAY;GACrZE,EAAM;GACNA,EAAM;;KAEJA,EAAM;;uDAE4CC,EAAO,KAAK,oDAAoDA,EAAO,KAAK;;;;KAI9HD,EAAM,KAAKA,EAAM;KACjBA,EAAM;;;KAGNA,EAAM;;;;KAINA,EAAM;;;;;;;;;KASNA,EAAM;;;;;;;KAONA,EAAM;KACNA,EAAM;KACNA,EAAM;;EAET,SAAS,KAAK,YAAYD,CAAO,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMG,EAASlB,MAAgBm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