{"version":3,"file":"HexagonImage.CS3DMudn.mjs","names":[],"sources":["https:/framerusercontent.com/modules/kCpDnewBqndzKeYbmHt1/lZi9ACOvpeUICCic35Kg/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,oBAAoB,CAAC,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,EAAM,CAAC,SAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,WAAW,IAAI,E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