{"version":3,"file":"Smooth_Gradient.DPRnZYVz.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","ControlType","init_framer_Dt_XqoQa","SmoothGradient","props","gradient","direction","color","opacity","smoothness","noise","init_Smooth_Gradient"],"sources":["https:/framerusercontent.com/modules/pwgHyrM10MpDuDDkba7T/C4R81hKH6ik5i0uPo6R8/Smooth_Gradient.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function SmoothGradient(props){const{color,opacity,smoothness,direction,noise}=props;// Smooth gradient using color-mix (token-safe)\nconst gradient=`\n        linear-gradient(\n            ${direction},\n            color-mix(in srgb, ${color} ${opacity*100}%, transparent) 0%,\n            color-mix(in srgb, ${color} ${opacity*60}%, transparent) ${smoothness*40}%,\n            color-mix(in srgb, ${color} ${opacity*30}%, transparent) ${smoothness*70}%,\n            transparent 100%\n        )\n    `;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,pointerEvents:\"none\",background:gradient},children:noise&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundImage:\"url('https://grainy-gradients.vercel.app/noise.svg')\",opacity:.06,mixBlendMode:\"overlay\",pointerEvents:\"none\"}})});}addPropertyControls(SmoothGradient,{color:{type:ControlType.Color,defaultValue:\"#000000\"},opacity:{type:ControlType.Number,defaultValue:.8,min:0,max:1,step:.05},smoothness:{type:ControlType.Number,defaultValue:1,min:.5,max:2,step:.1},direction:{type:ControlType.Enum,options:[\"to bottom\",\"to top\",\"to right\",\"to left\"],defaultValue:\"to bottom\"},noise:{type:ControlType.Boolean,defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmoothGradient\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Smooth_Gradient.map"],"mappings":"A,4JAA+F,SAAwBM,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,aAAW,YAAU,SAAOC,EACvLC,EAAS;;cAEDC,EAAU;iCACSC,EAAM,GAAGC,EAAQ,IAAI;iCACrBD,EAAM,GAAGC,EAAQ,GAAG,kBAAkBC,EAAW,GAAG;iCACpDF,EAAM,GAAGC,EAAQ,GAAG,kBAAkBC,EAAW,GAAG;;;MAG/E,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,cAAc,OAAO,WAAWJ,CAAQ,EAAE,SAASK,GAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,gBAAgB,uDAAuD,QAAQ,IAAI,aAAa,UAAU,cAAc,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAACV,EAAoBG,EAAe,CAAC,MAAM,CAAC,KAAKF,EAAY,MAAM,aAAa,SAAS,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,aAAa,GAAG,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,aAAa,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,QAAQ,CAAC,YAAY,SAAS,WAAW,SAAS,EAAE,aAAa,WAAW,EAAE,MAAM,CAAC,KAAKA,EAAY,QAAQ,aAAa,EAAI,CAAC,CAAC,C"}