{"version":3,"file":"shared-lib.B52CGGuK.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/rkaxXQyniIsWKVwGdClj/aa52hX6YyPhiPAdSYuiG/LiquidGlass.js","https:/framerusercontent.com/modules/qaini5cPB8wWReqEiOEr/aBCqp2HTywVb6pxPLQ3q/siteMetadata.js"],"sourcesContent":["// LiquidGlass with font and Phosphor icon option\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef}from\"react\";import{motion}from\"framer-motion\";function hexToRGB(hex){const r=parseInt(hex.slice(1,3),16);const g=parseInt(hex.slice(3,5),16);const b=parseInt(hex.slice(5,7),16);return`${r},${g},${b}`;}/**\n * LiquidGlass with font and Phosphor icon option\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 60\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LiquidGlass(props){const{text,backgroundColor,textColor,blurOpacity,blurAmount,wrapStrength,borderRadius,font,fontSize,iconName,iconWeight,iconColor,outerBorderColor,outerBorderOpacity,innerBorderColor,innerBorderOpacity,shadow,onClick,style}=props;const buttonRef=useRef(null);return /*#__PURE__*/_jsxs(motion.div,{ref:buttonRef,onClick:onClick,style:{position:\"relative\",overflow:\"hidden\",cursor:\"pointer\",borderRadius,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:shadow?\"0 2px 8px rgba(0,0,0,0.08)\":\"none\",border:`1px solid ${outerBorderColor}`,opacity:outerBorderOpacity,...style},whileHover:{scale:1.05},transition:{type:\"spring\",stiffness:400,damping:10},children:[/*#__PURE__*/_jsx(\"svg\",{style:{display:\"none\"},children:/*#__PURE__*/_jsxs(\"filter\",{id:\"liquid-wrap-filter\",children:[/*#__PURE__*/_jsx(\"feTurbulence\",{type:\"fractalNoise\",baseFrequency:\"0.02\",numOctaves:\"2\",seed:\"3\",result:\"turbulence\"}),/*#__PURE__*/_jsxs(\"feComponentTransfer\",{in:\"turbulence\",result:\"tweak\",children:[/*#__PURE__*/_jsx(\"feFuncR\",{type:\"linear\",slope:\"2\",intercept:\"-0.5\"}),/*#__PURE__*/_jsx(\"feFuncG\",{type:\"linear\",slope:\"2\",intercept:\"-0.5\"}),/*#__PURE__*/_jsx(\"feFuncB\",{type:\"linear\",slope:\"0\",intercept:\"0\"})]}),/*#__PURE__*/_jsx(\"feGaussianBlur\",{in:\"tweak\",stdDeviation:blurAmount,result:\"blurredMap\"}),/*#__PURE__*/_jsx(\"feDisplacementMap\",{in:\"SourceGraphic\",in2:\"blurredMap\",scale:wrapStrength,xChannelSelector:\"R\",yChannelSelector:\"G\"})]})}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backdropFilter:`blur(${blurAmount}px)`,filter:\"url(#liquid-wrap-filter)\",isolation:\"isolate\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:backgroundColor,opacity:blurOpacity}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,borderRadius,border:`1px inset ${innerBorderColor}`,opacity:innerBorderOpacity,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",zIndex:2,color:textColor,...font,fontSize,fontWeight:600,textAlign:\"center\",whiteSpace:\"nowrap\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:0},children:text})]});}addPropertyControls(LiquidGlass,{text:{type:ControlType.String,title:\"Label\",defaultValue:\"Click Me\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:18,variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},blurOpacity:{type:ControlType.Number,title:\"Blur Opacity\",defaultValue:.3,min:0,max:1,step:.01},backgroundColor:{type:ControlType.Color,title:\"Fill Color\",defaultValue:\"rgba(240,240,255,0.25)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#1a1a1a\"},wrapStrength:{type:ControlType.Number,title:\"Wrap Strength\",defaultValue:140,min:0,max:300,step:1},blurAmount:{type:ControlType.Number,title:\"Blur\",defaultValue:4,min:0,max:20,step:.5},borderRadius:{type:ControlType.Number,title:\"Roundness\",defaultValue:28,min:0,max:100,step:1},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:18,min:8,max:72,step:1},outerBorderColor:{type:ControlType.Color,title:\"Outer Border\",defaultValue:\"#ffffff\"},outerBorderOpacity:{type:ControlType.Number,title:\"Outer Opacity\",defaultValue:1,min:0,max:1,step:.05},innerBorderColor:{type:ControlType.Color,title:\"Inner Border\",defaultValue:\"rgba(255,255,255,0.5)\"},innerBorderOpacity:{type:ControlType.Number,title:\"Inner Opacity\",defaultValue:1,min:0,max:1,step:.05},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LiquidGlass\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"60\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LiquidGlass.map","// Generated by Framer (0dfceb4)\nexport default function metadata(params,activeLocale){return{customHTMLBodyStart:'<script>\\n    const CELL_SIZE=20,COLOR_R=65,COLOR_G=190,COLOR_B=235,STARTING_ALPHA=50,BACKGROUND_COLOR=0,PROB_OF_NEIGHBOR=.5,AMT_FADE_PER_FRAME=5;let colorWithAlpha,numRows,numCols,currentRow=-1,currentCol=-1,allNeighbors=[];function setup(){let o=createCanvas(windowWidth,windowHeight);o.style(\"z-index\",1e3),o.style(\"pointer-events\",\"none\"),fill(colorWithAlpha=color(65,190,235,50)),stroke(color(65,190,235,.1)),strokeWeight(1),numRows=Math.ceil(windowHeight/20),numCols=Math.ceil(windowWidth/20)}function draw(){clear();let o=floor(mouseY/20),l=floor(mouseX/20);for(let e of((o!==currentRow||l!==currentCol)&&(currentRow=o,currentCol=l,allNeighbors.push(...getRandomNeighbors(o,l))),stroke(colorWithAlpha),rect(20*l,20*o,20,20),allNeighbors)){let t=20*e.col,$=20*e.row;e.opacity=max(0,e.opacity-5),stroke(65,190,235,e.opacity),rect(t,$,20,20)}allNeighbors=allNeighbors.filter(o=>o.opacity>0)}function getRandomNeighbors(o,l){let e=[];for(let t=-1;t<=1;t++)for(let $=-1;$<=1;$++){let n=o+t,r=l+$,i=n>=0&&n<numRows&&r>=0&&r<numCols;!(0===t&&0===$)&&i&&.5>Math.random()&&e.push({row:n,col:r,opacity:100})}return e}function windowResized(){resizeCanvas(windowWidth,windowHeight),numRows=Math.ceil(windowHeight/20),numCols=Math.ceil(windowWidth/20)}\\n</script>\\n<style>\\n    canvas {\\n        position: fixed;\\n        top: 0;\\n        left: 0;\\n        width: 100vw;\\n        height: 100vh;\\n        z-index: 1;\\n        pointer-events: none;\\n    }\\n</style>',customHTMLHeadEnd:'<script src=\"https://files.digistalter.net/digits.js\"></script>',description:\"Wir unterst\\xfctzen unsere Kunden mit Strategien, effizienten Prozessen und innovativen L\\xf6sungen, die Kosten senken, Kunden begeistern und Wachstum sichern.\",favicon:\"https://framerusercontent.com/assets/5KPaU76wnCbxG1xOdlwCfOdRJI.png\",robots:\"max-image-preview:large\",title:\"Digitale L\\xf6sungen, die Unternehmen voranbringen\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"yVAQG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,OAAK,kBAAgB,YAAU,cAAY,aAAW,eAA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