{"version":3,"file":"P25Backdrop.CsTURSgv.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_Bf4_tcb2","ControlType","P25Backdrop","props","colorTop","hold","colorMid","midAt","colorBottom","style","grain","grainAmount","NOISE","grainSize","init_P25Backdrop","p"],"sources":["https:/framerusercontent.com/modules/MhBiGz9PdzB2R30EkSeB/RWx9oesUYQ3mEirwVGpn/P25Backdrop.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Full-page backdrop: one continuous background for the whole page,\n// black at the top easing into deep cobalt at the bottom, with optional film grain.\n// Place it as the first layer of the page, filling the page.\nconst NOISE=\"url(\\\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>\\\")\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function P25Backdrop(props){const{colorTop=\"#000000\",colorMid=\"#03063a\",colorBottom=\"#020ba6\",hold=45,midAt=80,grain=true,grainAmount=.09,grainSize=220,style}=props;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",background:`linear-gradient(180deg, ${colorTop} 0%, ${colorTop} ${hold}%, ${colorMid} ${midAt}%, ${colorBottom} 100%)`,...style},children:grain&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,opacity:grainAmount,// \"screen\" lifts the grain out of the blacks (overlay would vanish on pure black)\nmixBlendMode:\"screen\",backgroundImage:NOISE,backgroundSize:`${grainSize}px ${grainSize}px`,pointerEvents:\"none\"}})});}addPropertyControls(P25Backdrop,{colorTop:{type:ControlType.Color,title:\"Top\",defaultValue:\"#000000\"},hold:{type:ControlType.Number,title:\"Black until\",defaultValue:45,min:0,max:95,unit:\"%\"},colorMid:{type:ControlType.Color,title:\"Middle\",defaultValue:\"#03063a\"},midAt:{type:ControlType.Number,title:\"Middle at\",defaultValue:80,min:5,max:99,unit:\"%\"},colorBottom:{type:ControlType.Color,title:\"Bottom\",defaultValue:\"#020ba6\"},grain:{type:ControlType.Boolean,title:\"Film grain\",defaultValue:true},grainAmount:{type:ControlType.Number,title:\"Grain amount\",defaultValue:.09,min:0,max:.4,step:.01,hidden:p=>!p.grain},grainSize:{type:ControlType.Number,title:\"Grain size\",defaultValue:220,min:80,max:600,step:10,unit:\"px\",hidden:p=>!p.grain}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"P25Backdrop\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./P25Backdrop.map"],"mappings":"A,4JAMG,SAAwBM,EAAY,EAAM,CAAC,GAAK,CAAC,WAAS,UAAU,WAAS,UAAU,cAAY,UAAU,OAAK,GAAG,QAAM,GAAG,QAAM,GAAK,cAAY,IAAI,YAAU,IAAI,SAAOC,EAAM,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,WAAW,2BAA2BC,EAAS,OAAOA,EAAS,GAAGC,EAAK,KAAKC,EAAS,GAAGC,EAAM,KAAKC,EAAY,QAAQ,GAAGC,CAAK,EAAE,SAASC,GAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,QAAQC,EACle,aAAa,SAAS,gBAAgBC,EAAM,eAAe,GAAGC,EAAU,KAAKA,EAAU,IAAI,cAAc,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,C,4CAJ/G,EAAM,4TAI0Gd,EAAoBG,EAAY,CAAC,SAAS,CAAC,KAAKD,EAAY,MAAM,MAAM,MAAM,aAAa,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