{"version":3,"file":"TexturedBackground.tp_6jXMh.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8c36dNUhqRXxIMrip0Vg/aQTCphw2RGz7uaYjSuDL/TexturedBackground.js"],"sourcesContent":["// Create the same background component to use as background\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Textured Background\n * \n * A versatile background component that tiles a texture image.\n * Perfect for creating subtle noise, paper, or leather effects.\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 400\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TexturedBackground(props){const{texture,secondaryTexture,useSecondaryTexture,backgroundColor,opacity,tint,tintOpacity,backgroundImage,textureScale}=props;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",minWidth:5,minHeight:5,backgroundColor:backgroundColor,position:\"relative\",overflow:\"hidden\",backgroundImage:backgroundImage?`url(${backgroundImage})`:undefined,backgroundRepeat:backgroundImage?\"no-repeat\":undefined,backgroundSize:backgroundImage?\"cover\":undefined,backgroundPosition:backgroundImage?\"center\":undefined},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,backgroundImage:`url(${useSecondaryTexture&&secondaryTexture?secondaryTexture:texture})`,backgroundRepeat:\"repeat\",backgroundSize:textureScale?`${textureScale}% auto`:\"auto\",opacity:opacity,pointerEvents:\"none\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,backgroundColor:tint,opacity:tintOpacity,pointerEvents:\"none\"}})]});}addPropertyControls(TexturedBackground,{texture:{type:ControlType.Image,title:\"Texture\",defaultValue:\"https://framerusercontent.com/images/Kn5p6gMjjhV0FiG7EniCF8B4rOc.png\"},secondaryTexture:{type:ControlType.Image,title:\"Alt Texture\",defaultValue:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\"},useSecondaryTexture:{type:ControlType.Boolean,title:\"Texture Source\",enabledTitle:\"Alt\",disabledTitle:\"Main\",defaultValue:false},backgroundImage:{type:ControlType.Image,title:\"Background Image\",defaultValue:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#050505\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:0,max:1,step:.05},textureScale:{type:ControlType.Number,title:\"Texture Scale %\",defaultValue:100,min:10,max:400,step:10},tint:{type:ControlType.Color,title:\"Tint Color\",defaultValue:\"#000000\"},tintOpacity:{type:ControlType.Number,title:\"Tint Opacity\",defaultValue:0,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TexturedBackground\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TexturedBackground.map"],"mappings":"mKAWG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,UAAQ,mBAAiB,sBAAoB,kBAAgB,UAAQ,OAAK,cAAY,kBAAgB,gBAAc,EAAM,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,EAAE,UAAU,EAAkB,kBAAgB,SAAS,WAAW,SAAS,SAAS,gBAAgB,EAAgB,OAAO,EAAgB,GAAG,IAAA,GAAU,iBAAiB,EAAgB,YAAY,IAAA,GAAU,eAAe,EAAgB,QAAQ,IAAA,GAAU,mBAAmB,EAAgB,SAAS,IAAA,GAAU,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAA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