{"version":3,"file":"shared-lib.BVECTk_x.mjs","names":["useMemo","style"],"sources":["https:/framerusercontent.com/modules/6bjBZNXBDfXljhFgowEF/vcdhvcd9Mya25NTzOvDa/FractalGlassEffects.js","https:/framerusercontent.com/modules/idli0oZNF6XfJHl8Uf9d/cvGVScnWmw3SwN19HGQi/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";export default function FractalGlass(props){const{pattern=\"columns\",columnCount=12,rowCount=12,opacity=.8,blur=10,glassColor=\"rgba(10, 30, 80, 0.4)\",blendMode=\"overlay\",isLoading=false,loadingSpeed=2,image,style}=props;// Generate elements for the glass effect\nconst elements=useMemo(()=>{const isRows=pattern===\"rows\";const isGrid=pattern===\"grid\";const cols=Math.max(1,Math.floor(columnCount));const rows=Math.max(1,Math.floor(rowCount));const count=isGrid?cols*rows:isRows?rows:cols;return Array.from({length:count}).map((_,i)=>{const style={flex:1,width:\"100%\",height:\"100%\",backdropFilter:`blur(${blur}px)`,WebkitBackdropFilter:`blur(${blur}px)`};if(isRows){style.background=`linear-gradient(180deg, \n                    rgba(255,255,255,0.1) 0%, \n                    rgba(255,255,255,0.0) 20%, \n                    rgba(0,0,0,0.05) 50%, \n                    rgba(0,0,0,0.1) 80%, \n                    rgba(255,255,255,0.1) 100%)`;style.borderBottom=\"1px solid rgba(255,255,255,0.1)\";style.borderTop=\"1px solid rgba(255,255,255,0.05)\";style.boxShadow=\"inset 0 1px 2px rgba(255,255,255,0.1)\";}else if(isGrid){style.background=`linear-gradient(135deg, \n                    rgba(255,255,255,0.1) 0%, \n                    rgba(255,255,255,0.0) 20%, \n                    rgba(0,0,0,0.05) 50%, \n                    rgba(0,0,0,0.1) 80%, \n                    rgba(255,255,255,0.1) 100%)`;style.border=\"1px solid rgba(255,255,255,0.1)\";style.boxShadow=\"inset 1px 1px 2px rgba(255,255,255,0.1)\";}else{// Columns\nstyle.background=`linear-gradient(90deg, \n                    rgba(255,255,255,0.1) 0%, \n                    rgba(255,255,255,0.0) 20%, \n                    rgba(0,0,0,0.05) 50%, \n                    rgba(0,0,0,0.1) 80%, \n                    rgba(255,255,255,0.1) 100%)`;style.borderRight=\"1px solid rgba(255,255,255,0.1)\";style.borderLeft=\"1px solid rgba(255,255,255,0.05)\";style.boxShadow=\"inset 1px 0 2px rgba(255,255,255,0.1)\";}if(isLoading){style.animation=`fractal-glass-pulse ${loadingSpeed}s ease-in-out infinite`;const delay=isGrid?(Math.floor(i/cols)+i%cols)*.1:i*.1;style.animationDelay=`${delay}s`;}return /*#__PURE__*/_jsx(\"div\",{style:style},i);});},[pattern,columnCount,rowCount,blur,isLoading,loadingSpeed]);const containerStyle={position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:glassColor,opacity:opacity,mixBlendMode:blendMode,zIndex:1,pointerEvents:\"none\",display:pattern===\"grid\"?\"grid\":\"flex\",flexDirection:pattern===\"rows\"?\"column\":\"row\",...pattern===\"grid\"?{gridTemplateColumns:`repeat(${Math.max(1,Math.floor(columnCount))}, 1fr)`,gridTemplateRows:`repeat(${Math.max(1,Math.floor(rowCount))}, 1fr)`}:{}};return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:style?.width||\"500px\",height:style?.height||\"500px\",minWidth:\"500px\",minHeight:\"500px\",position:\"relative\",overflow:\"hidden\",display:\"flex\",flexDirection:\"column\"},children:[image&&/*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,alt:image.alt||\"\",style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",zIndex:0}}),isLoading&&/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes fractal-glass-pulse {\n                        0% { opacity: 0.3; }\n                        50% { opacity: 1; }\n                        100% { opacity: 0.3; }\n                    }\n                    `}),/*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:elements})]});}addPropertyControls(FractalGlass,{image:{type:ControlType.ResponsiveImage,title:\"Image Fill\"},pattern:{type:ControlType.Enum,title:\"Pattern\",options:[\"columns\",\"rows\",\"grid\"],optionTitles:[\"Columns\",\"Rows\",\"Grid\"],defaultValue:\"columns\"},columnCount:{type:ControlType.Number,title:\"Columns\",defaultValue:12,min:2,max:50,step:1,hidden:props=>props.pattern===\"rows\"},rowCount:{type:ControlType.Number,title:\"Rows\",defaultValue:12,min:2,max:50,step:1,hidden:props=>props.pattern===\"columns\"},blur:{type:ControlType.Number,title:\"Blur\",defaultValue:10,min:0,max:50},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.8,min:0,max:1,step:.05},glassColor:{type:ControlType.Color,title:\"Glass Tint\",defaultValue:\"rgba(10, 30, 80, 0.2)\"},blendMode:{type:ControlType.Enum,title:\"Blend Mode\",defaultValue:\"hard-light\",options:[\"normal\",\"multiply\",\"screen\",\"overlay\",\"soft-light\",\"hard-light\"]},isLoading:{type:ControlType.Boolean,title:\"Loading\",defaultValue:false},loadingSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:2,min:.5,max:5,step:.1,hidden:props=>!props.isLoading}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FractalGlass\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FractalGlassEffects.map","// Generated by Framer (37cdf78)\nexport default function metadata(params,activeLocale){return{description:\"Gabinet Medycyny Estetycznej Biogenica w Poznaniu. Botoks, kwas hialuronowy, laser CO2 i więcej. Sprawdź ofertę i zarezerwuj termin!\",favicon:\"https://framerusercontent.com/assets/lqeQOPX20n12pqi6BrQPv94.webp\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/cFXIdP4FWNlFISWc6ANAs7LS2Q.png\",title:\"Gabinet Medycyny Estetycznej Poznań - Biogenica\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iLAAwI,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,UAAU,cAAY,GAAG,WAAS,GAAG,UAAQ,GAAG,OAAK,GAAG,aAAW,wBAAwB,YAAU,UAAU,YAAU,GAAM,eAAa,EAAE,QAAM,SAAO,EACvV,EAASA,MAAY,CAAC,IAAM,EAAO,IAAU,OAAa,EAAO,IAAU,OAAa,EAAK,KAAK,IAAI,EAAE,KAAK,MAAM,EAAY,CAAC,CAAO,EAAK,KAAK,IAAI,EAAE,KAAK,MAAM,EAAS,CAAC,CAAO,EAAM,EAAO,EAAK,EAAK,EAAO,EAAK,EAAK,OAAO,MAAM,KAAK,CAAC,OAAO,EAAM,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,IAAMC,EAAM,CAAC,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,eAAe,QAAQ,EAAK,KAAK,qBAAqB,QAAQ,EAAK,KAAK,CAgBD,OAhBK,GAAQ,EAAM,WAAW;;;;;iDAKlX,EAAM,aAAa,kCAAkC,EAAM,UAAU,mCAAmC,EAAM,UAAU,yCAAiD,GAAQ,EAAM,WAAW;;;;;iDAKlM,EAAM,OAAO,kCAAkC,EAAM,UAAU,4CAChH,EAAM,WAAW;;;;;iDAKgC,EAAM,YAAY,kCAAkC,EAAM,WAAW,mCAAmC,EAAM,UAAU,yCAA4C,IAAW,EAAM,UAAU,uBAAuB,EAAa,wBAA+E,EAAM,eAAe,GAAhE,GAAQ,KAAK,MAAM,EAAE,EAAK,CAAC,EAAE,GAAM,GAAG,EAAE,GAAiC,IAAwB,EAAK,MAAM,CAAC,MAAMA,EAAM,CAAC,EAAE,EAAG,EAAG,CAAC,EAAQ,EAAY,EAAS,EAAK,EAAU,EAAa,CAAC,CAAO,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