{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/x3SWXeJ10LZtVa6LrNGw/aTy1d4MlU1kBFp36NRjH/Gradient.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as shadergradient from\"https://esm-shadergradient.onrender.com/with-store.mjs\";import{addPropertyControls,Color,ControlType,RenderTarget}from\"framer\";const isCanvas=RenderTarget.current()!==RenderTarget.preview;/**\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 250\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export const Gradient=({color1,color2,color3,noise,cameraAngle,position,rotation,pointerEvents,...props})=>{return(// <GradientDebugWrap>\n/*#__PURE__*/ _jsx(shadergradient.StoreGradientCanvas,{resize:{offsetSize:true},pointerEvents:pointerEvents,children:/*#__PURE__*/ _jsx(shadergradient.StoreGradient,{color1:Color.toHex(Color(parseToken(color1))),color2:Color.toHex(Color(parseToken(color2))),color3:Color.toHex(Color(parseToken(color3))),isFigmaPlugin:true,...noise,...position,...cameraAngle,...rotation,...props})}));};export function AddControls(Comp){Comp.defaultProps={control:\"props\",animate:\"on\",brightness:1.2,cDistance:3.6,cameraZoom:1,color1:\"#ff5005\",color2:\"#dbba95\",color3:\"#d0bce1\",embedMode:\"off\",envPreset:\"city\",gizmoHelper:\"hide\",grain:\"on\",lightType:\"3d\",pixelDensity:1,reflection:.1,shader:\"defaults\",type:\"plane\",uSpeed:.4,uTime:0,wireframe:\"false\",zoomOut:false,toggleAxis:false,pointerEvents:\"none\"};addPropertyControls(Comp,{control:{type:ControlType.Enum,options:[\"props\",\"query\"],optionTitles:[\"Props\",\"Query\"],displaySegmentedControl:true},activeTab:{title:\"Settings Group\",type:ControlType.Enum,options:[\"Shape\",\"Colors\",\"Effects\",\"View\"],hidden:props=>props.control===\"query\"},// Shape\ntype:{type:ControlType.Enum,options:[\"plane\",\"sphere\",\"waterPlane\"],optionTitles:[\"Plane\",\"Sphere\",\"Water\"],displaySegmentedControl:true,hidden:props=>props.control===\"query\"||props.activeTab!==\"Shape\"},shader:{type:ControlType.Enum,options:[\"defaults\",\"positionMix\"],optionTitles:[\"Type A\",\"Type B\"],displaySegmentedControl:true,hidden:props=>props.control===\"query\"||props.activeTab!==\"Shape\"},animate:{type:ControlType.Enum,options:[\"on\",\"off\"],optionTitles:[\"On\",\"Off\"],displaySegmentedControl:true,hidden:props=>props.control===\"query\"||props.activeTab!==\"Shape\"&&props.activeTab!==\"URL\"},uTime:{title:\"Movements\",type:ControlType.Number,step:.1,displayStepper:true,hidden:props=>props.animate===\"on\"||props.control===\"query\"||props.activeTab!==\"Shape\"},uSpeed:{title:\"Speed\",type:ControlType.Number,step:.1,min:.1,displayStepper:true,hidden:props=>props.animate===\"off\"||props.control===\"query\"||props.activeTab!==\"Shape\"},noise:{type:ControlType.Object,controls:{uStrength:{type:ControlType.Number,title:\"Strength\",step:.1,min:.1,displayStepper:true,defaultValue:4},uDensity:{type:ControlType.Number,title:\"Density\",step:.1,min:.1,displayStepper:true,defaultValue:1.3}},hidden:props=>props.control===\"query\"||props.activeTab!==\"Shape\"},uAmplitude:{type:ControlType.Number,title:\"Spiral\",step:.1,min:.1,displayStepper:true,hidden:props=>props.type!==\"sphere\"||props.control===\"query\"||props.activeTab!==\"Shape\"},pixelDensity:{type:ControlType.Number,step:.1,min:0,max:3,displayStepper:true,hidden:props=>props.control===\"query\"||props.activeTab!==\"Shape\"},// Effects\ngrain:{type:ControlType.Enum,options:[\"on\",\"off\"],optionTitles:[\"On\",\"Off\"],displaySegmentedControl:true,hidden:props=>props.control===\"query\"||props.activeTab!==\"Effects\"},lightType:{type:ControlType.Enum,options:[\"env\",\"3d\"],optionTitles:[\"Env\",\"Light\"],displaySegmentedControl:true,hidden:props=>props.control===\"query\"||props.activeTab!==\"Effects\"},envPreset:{type:ControlType.Enum,options:[\"city\",\"dawn\",\"lobby\"],optionTitles:[\"City\",\"Dawn\",\"Lobby\"],displaySegmentedControl:true,hidden:props=>props.lightType===\"3d\"||props.control===\"query\"||props.activeTab!==\"Effects\"},brightness:{type:ControlType.Number,step:.1,min:.1,max:3,hidden:props=>props.lightType===\"env\"||props.control===\"query\"||props.activeTab!==\"Effects\"||props.url},reflection:{type:ControlType.Number,step:.1,min:0,max:1,hidden:props=>props.lightType===\"3d\"||props.control===\"query\"||props.activeTab!==\"Effects\"||props.url},// Colors\ncolor1:{type:ControlType.Color,hidden:props=>props.control===\"query\"||props.activeTab!==\"Colors\"},color2:{type:ControlType.Color,hidden:props=>props.control===\"query\"||props.activeTab!==\"Colors\"},color3:{type:ControlType.Color,hidden:props=>props.control===\"query\"||props.activeTab!==\"Colors\"},// View\ncDistance:{title:\"Distance\",type:ControlType.Number,displayStepper:true,min:0,max:20,hidden:props=>props.type===\"sphere\"||props.control===\"query\"||props.activeTab!==\"View\"},cameraZoom:{type:ControlType.Number,displayStepper:true,step:.1,min:.1,max:30,hidden:props=>props.type!==\"sphere\"||props.control===\"query\"||props.activeTab!==\"View\"},cameraAngle:{type:ControlType.Object,controls:{cAzimuthAngle:{title:\"Azimuth\",type:ControlType.Number,displayStepper:true,step:10,min:0,max:360,defaultValue:180},cPolarAngle:{title:\"Polar\",type:ControlType.Number,displayStepper:true,step:10,min:0,max:180,defaultValue:90}},hidden:props=>props.control===\"query\"||props.activeTab!==\"View\"},position:{type:ControlType.Object,controls:{positionX:{type:ControlType.Number,step:.1,displayStepper:true,defaultValue:-1.4},positionY:{type:ControlType.Number,step:.1,displayStepper:true},positionZ:{type:ControlType.Number,step:.1,displayStepper:true}},hidden:props=>props.control===\"query\"||props.activeTab!==\"View\"},rotation:{type:ControlType.Object,controls:{rotationX:{type:ControlType.Number,step:10,min:-360,max:360,displayStepper:true,defaultValue:0},rotationY:{type:ControlType.Number,step:10,min:-360,max:360,displayStepper:true,defaultValue:10},rotationZ:{type:ControlType.Number,step:10,min:-360,max:360,displayStepper:true,defaultValue:50}},hidden:props=>props.control===\"query\"||props.activeTab!==\"View\"},// urlString\nurlString:{type:ControlType.String,placeholder:\"URL from shadergradient.co\",hidden:props=>props.control===\"props\"},// Tools (\uD83E\uDDF0)\nzoomOut:{type:ControlType.Boolean,title:\"View\",enabledTitle:\"Wide\",disabledTitle:\"-\",hidden:props=>props.control===\"query\"},toggleAxis:{type:ControlType.Boolean,title:\"Axis\",enabledTitle:\"Guide\",disabledTitle:\"-\",hidden:props=>props.control===\"query\"},pointerEvents:{type:ControlType.Enum,title:\"Touch Control\",options:[\"none\",\"auto\"],optionTitles:[\"Disable\",\"Enable\"],displaySegmentedControl:true,hidden:props=>props.control===\"query\"}});}AddControls(Gradient);/**\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export const Background=props=>/*#__PURE__*/ _jsx(shadergradient.Background,{...props});// add it to suppress warnings\nexport const TestControl=props=>{return /*#__PURE__*/ _jsx(shadergradient.TestControl,{});};function parseToken(colorString){if(colorString.startsWith(\"var(\")){const regex=/(rgba?)\\((\\d+),\\s*(\\d+),\\s*(\\d+)(,\\s*([\\d.]+))?\\)/;const matches=colorString.match(regex);if(matches){const isRgba=matches[1]===\"rgba\";const red=parseInt(matches[2]);const green=parseInt(matches[3]);const blue=parseInt(matches[4]);const alpha=isRgba?parseFloat(matches[6]):1;return`rgba(${red}, ${green}, ${blue}, ${alpha})`;}}else return colorString;}export default Gradient;\nexport const __FramerMetadata__ = {\"exports\":{\"Gradient\":{\"type\":\"reactComponent\",\"name\":\"Gradient\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"300\",\"framerIntrinsicHeight\":\"250\"}},\"TestControl\":{\"type\":\"reactComponent\",\"name\":\"TestControl\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"AddControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Gradient\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"250\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"Background\":{\"type\":\"reactComponent\",\"name\":\"Background\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"300\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Gradient.map"],
  "mappings": "yHAAwM,IAAMA,EAASC,EAAa,QAAQ,IAAIA,EAAa,QAM5OC,EAAS,CAAC,CAAC,OAAAC,EAAO,OAAAC,EAAO,OAAAC,EAAO,MAAAC,EAAM,YAAAC,EAAY,SAAAC,EAAS,SAAAC,EAAS,cAAAC,EAAc,GAAGC,CAAK,IAC7F,EAAoBC,EAAoB,CAAC,OAAO,CAAC,WAAW,EAAI,EAAE,cAAcF,EAAc,SAAuB,EAAoBG,EAAc,CAAC,OAAOC,EAAM,MAAMA,EAAMC,EAAWZ,CAAM,CAAC,CAAC,EAAE,OAAOW,EAAM,MAAMA,EAAMC,EAAWX,CAAM,CAAC,CAAC,EAAE,OAAOU,EAAM,MAAMA,EAAMC,EAAWV,CAAM,CAAC,CAAC,EAAE,cAAc,GAAK,GAAGC,EAAM,GAAGE,EAAS,GAAGD,EAAY,GAAGE,EAAS,GAAGE,CAAK,CAAC,CAAC,CAAC,EAAY,SAASK,EAAYC,EAAK,CAACA,EAAK,aAAa,CAAC,QAAQ,QAAQ,QAAQ,KAAK,WAAW,IAAI,UAAU,IAAI,WAAW,EAAE,OAAO,UAAU,OAAO,UAAU,OAAO,UAAU,UAAU,MAAM,UAAU,OAAO,YAAY,OAAO,MAAM,KAAK,UAAU,KAAK,aAAa,EA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,EAAOD,EAAQ,CAAC,IAAI,OAAaE,EAAI,SAASF,EAAQ,CAAC,CAAC,EAAQG,EAAM,SAASH,EAAQ,CAAC,CAAC,EAAQI,EAAK,SAASJ,EAAQ,CAAC,CAAC,EAAQK,EAAMJ,EAAO,WAAWD,EAAQ,CAAC,CAAC,EAAE,EAAE,MAAM,QAAQE,CAAG,KAAKC,CAAK,KAAKC,CAAI,KAAKC,CAAK,GAAI,CAAC,KAAM,QAAOP,CAAY,CAAC,IAAOQ,EAAQC",
  "names": ["isCanvas", "RenderTarget", "Gradient", "color1", "color2", "color3", "noise", "cameraAngle", "position", "rotation", "pointerEvents", "props", "tv", "lT", "Color", "parseToken", "AddControls", "Comp", "addPropertyControls", "ControlType", "parseToken", "colorString", "regex", "matches", "isRgba", "red", "green", "blue", "alpha", "Gradient_default", "Gradient"]
}
