{"version":3,"file":"patternBackground.CSLfi3Ky.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Xg61elT8Fu27aH11h5k4/8DNMFDu7sxNU47N5VLSO/patternBackground.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function patternBackground(props){// Generate the CSS for the background image\nconst backgroundImageStyle={position:\"absolute\",top:\"-50%\",left:\"-50%\",width:\"200%\",height:\"200%\",backgroundImage:`url(${props.image})`,backgroundSize:\"auto 20px\",backgroundRepeat:\"repeat\",transform:`rotate(${props.rotation}deg)`,transformOrigin:\"center center\"};// Generate the CSS for the gradient overlay\nconst gradientOverlayStyle={position:\"absolute\",top:0,left:0,right:0,bottom:0,background:`linear-gradient(${props.gradientRotation}deg, #FFF 8.33%, rgba(255, 255, 255, 0.08) 48.95%, #FFF 92.18%)`,zIndex:1};// Generate the CSS for the container\nconst containerStyle={height:\"100%\",width:\"100%\",position:\"relative\",overflow:\"hidden\"};// Return a div with the container, background image, and gradient overlay\nreturn /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:backgroundImageStyle}),/*#__PURE__*/_jsx(\"div\",{style:gradientOverlayStyle})]});}// Add property controls to show in the props panel\naddPropertyControls(patternBackground,{image:{type:ControlType.Image,title:\"Image\"},rotation:{type:ControlType.Number,defaultValue:16,min:-360,max:360,unit:\"\\xb0\",step:1,displayStepper:true},gradientRotation:{type:ControlType.Number,defaultValue:185,min:-360,max:360,unit:\"\\xb0\",step:1,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"patternBackground\":{\"type\":\"reactComponent\",\"name\":\"patternBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./patternBackground.map"],"mappings":"mKAA6G,SAAgB,EAAkB,EAAM,CACrJ,IAAM,EAAqB,CAAC,SAAS,WAAW,IAAI,OAAO,KAAK,OAAO,MAAM,OAAO,OAAO,OAAO,gBAAgB,OAAO,EAAM,MAAM,GAAG,eAAe,YAAY,iBAAiB,SAAS,UAAU,UAAU,EAAM,SAAS,MAAM,gBAAgB,gBAAgB,CAChQ,EAAqB,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,mBAAmB,EAAM,iBAAiB,iEAAiE,OAAO,EAAE,CAE7M,OAAoB,EAAM,MAAM,CAAC,MADZ,CAAC,OAAO,OAAO,MAAM,OAAO,SAAS,WAAW,SAAS,SAAS,CACjC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,EAAqB,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,EAAqB,CAAC,CAAC,CAAC,CAAC,kBAJrH,IAAoD,CAK7G,EAAoB,EAAkB,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,KAAK,IAAI,IAAI,KAAK,IAAO,KAAK,EAAE,eAAe,GAAK,CAAC,iBAAiB,CAAC,KAAK,EAAY,OAAO,aAAa,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAO,KAAK,EAAE,eAAe,GAAK,CAAC,CAAC"}