{"version":3,"file":"HexagonImage.BInrdH09.mjs","names":[],"sources":["https:/framerusercontent.com/modules/GWCd36dRRwOYhutzRy2h/HhXps81bRLUWkat4x540/HexagonImage.js"],"sourcesContent":["// HexagonImage with image fill and hexagon shape (point up)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * HEXAGON IMAGE\n *\n * Displays an image inside a hexagon shape using clip-path.\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function HexagonImage(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},borderColor=\"#28CE89\",borderWidth=6,borderStyle=\"solid\",saturation=100,style}=props;// Hexagon with point up clip-path\nconst hexagonClipPath=\"polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%)\";// Calculate inner hexagon size - needs to be smaller to show border\nconst innerSize=`calc(100% - ${borderWidth*2}px)`;return /*#__PURE__*/_jsx(\"div\",{style:{...containerStyle,...style},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"absolute\",top:0,left:0,clipPath:hexagonClipPath,WebkitClipPath:hexagonClipPath,background:borderColor,zIndex:1}}),/*#__PURE__*/_jsx(\"div\",{style:{width:innerSize,height:innerSize,position:\"absolute\",top:borderWidth,left:borderWidth,clipPath:hexagonClipPath,WebkitClipPath:hexagonClipPath,overflow:\"hidden\",zIndex:2,background:\"#eee\"},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt||\"Hexagon image\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:\"center center\",display:\"block\",background:\"#eee\",filter:`saturate(${saturation}%)`}})})]})});}addPropertyControls(HexagonImage,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#28CE89\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:4,min:1,max:20,step:1,unit:\"px\"},borderStyle:{type:ControlType.Enum,title:\"Border Style\",options:[\"solid\",\"dashed\",\"dotted\"],optionTitles:[\"Solid\",\"Dashed\",\"Dotted\"],defaultValue:\"solid\"},saturation:{type:ControlType.Number,title:\"Saturation\",defaultValue:100,min:0,max:200,step:5,unit:\"%\"}});const containerStyle={width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"transparent\",overflow:\"hidden\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HexagonImage\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"200\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HexagonImage.map"],"mappings":"mKAWG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IAAI,mBAAmB,EAAE,cAAY,UAAU,cAAY,EAAE,cAAY,QAAQ,aAAW,IAAI,SAAO,EACvO,EAAgB,sEAChB,EAAU,eAAe,EAAY,EAAE,KAAK,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAe,GAAG,CAAK,EAAE,SAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,QAAQ,OAAO,WAAW,SAAS,eAAe,QAAQ,EAAE,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,IAAI,EAAE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