{"version":3,"file":"Onlygrain_legacy.BAE40EPa.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/hrWC37WKMEtgCdbgkZoM/Ci0UWAbdKNb0s24uVMgZ/Onlygrain_legacy.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function OnlyGrain_legacy(props){// Generate unique filter ID to avoid conflicts with multiple instances\nconst filterId=useMemo(()=>`noiseFilter_${Math.random().toString(36).substr(2,9)}`,[]);// Early return if opacity is 0 to skip rendering\nif(props.opacity===0)return null;return /*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",style:{position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",pointerEvents:\"none\",opacity:props.opacity/100},children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"filter\",{id:filterId,colorInterpolationFilters:\"sRGB\",children:[/*#__PURE__*/_jsx(\"feTurbulence\",{type:\"fractalNoise\",baseFrequency:props.baseFrequency,stitchTiles:props.stitchTiles?\"stitch\":\"noStitch\"}),/*#__PURE__*/_jsx(\"feColorMatrix\",{type:\"saturate\",values:\"0\"})]})}),/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",fill:\"#FFFFFF\",filter:`url(#${filterId}) contrast(${props.contrast})`})]});}addPropertyControls(OnlyGrain_legacy,{opacity:{title:\"Grain Opacity\",type:ControlType.Number,defaultValue:25,min:0,max:100,unit:\"%\",step:1},baseFrequency:{title:\"Grain Size\",type:ControlType.Number,defaultValue:.8,min:.1,max:3,step:.1,displayStepper:true},contrast:{title:\"Grain Intensity\",type:ControlType.Number,defaultValue:150,min:50,max:300,step:10,displayStepper:true},stitchTiles:{title:\"Seamless Tiling\",type:ControlType.Boolean,defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OnlyGrain_legacy\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Onlygrain_legacy.map"],"mappings":"yQAMG,SAAwB,EAAiB,EAAM,CAClD,IAAM,EAASA,MAAY,eAAe,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,CACrD,OAA9B,EAAM,UAAU,EAAS,KAAyB,EAAM,MAAM,CAAC,MAAM,6BAA6B,MAAM,CAAC,SAAS,QAAQ,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,OAAO,QAAQ,cAAc,OAAO,QAAQ,EAAM,QAAQ,IAAI,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,SAAsB,EAAM,SAAS,CAAC,GAAG,EAAS,0BAA0B,OAAO,SAAS,CAAc,EAAK,eAAe,CAAC,KAAK,eAAe,cAAc,EAAM,cAAc,YAAY,EAAM,YAAY,SAAS,WAAW,CAAC,CAAc,EAAK,gBAAgB,CAAC,KAAK,WAAW,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAc,EAAK,OAAO,CAAC,MAAM,OAAO,OAAO,OAAO,KAAK,UAAU,OAAO,QAAQ,EAAS,aAAa,EAAM,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,kBAR/mB,IAAoD,IAA2B,CAQkiB,EAAoB,EAAiB,CAAC,QAAQ,CAAC,MAAM,gBAAgB,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC,cAAc,CAAC,MAAM,aAAa,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,KAAK,GAAG,eAAe,GAAK,CAAC,SAAS,CAAC,MAAM,kBAAkB,KAAK,EAAY,OAAO,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG,eAAe,GAAK,CAAC,YAAY,CAAC,MAAM,kBAAkB,KAAK,EAAY,QAAQ,aAAa,GAAK,CAAC,CAAC"}