{"version":3,"file":"SectionTexture.BppZaFwt.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fmuTVN3mOTEJHrmzi0KR/eZzZHD85ZK4k9PTV4XJO/SectionTexture.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/** Background image value: an image-set when a 1x variant is given, so 1x screens get a\n *  half-size tile and 2x screens the native one. Both must show the same region. */function textureImage(src,src1x){if(!src1x)return`url(${src})`;return`image-set(url(${src1x}) 1x, url(${src}) 2x)`;}/**\n * Tiles a texture image at natural (2x) size with CSS background-repeat,\n * so the texture stays crisp however tall the parent section grows.\n * Framer image fills stretch instead of tiling, which this replaces.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function SectionTexture(props){const{image,image1x,tileWidth}=props;const src=typeof image===\"object\"&&image?image.src:image;const src1x=typeof image1x===\"object\"&&image1x?image1x.src:image1x;if(!src)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundImage:textureImage(src,src1x),backgroundRepeat:\"repeat\",backgroundSize:`${tileWidth}px auto`,pointerEvents:\"none\"}});}SectionTexture.defaultProps={image:\"\",image1x:\"\",tileWidth:1441};addPropertyControls(SectionTexture,{image:{type:ControlType.Image,title:\"Texture\"},image1x:{type:ControlType.Image,title:\"Texture 1x\"},tileWidth:{type:ControlType.Number,title:\"Tile width\",defaultValue:1441,min:100,max:4e3}});/**\n * Full-page variant: tiles the texture over the whole viewport with\n * position fixed, so it needs no parent height. Percentage heights\n * collapse against auto-height page roots in the published runtime,\n * which breaks SectionTexture there; this variant is immune.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export function PageTexture(props){const{image,image1x,tileWidth}=props;const src=typeof image===\"object\"&&image?image.src:image;const src1x=typeof image1x===\"object\"&&image1x?image1x.src:image1x;if(!src)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",inset:0,backgroundImage:textureImage(src,src1x),backgroundRepeat:\"repeat\",backgroundSize:`${tileWidth}px auto`,pointerEvents:\"none\"}});}PageTexture.defaultProps={image:\"\",image1x:\"\",tileWidth:1441};addPropertyControls(PageTexture,{image:{type:ControlType.Image,title:\"Texture\"},image1x:{type:ControlType.Image,title:\"Texture 1x\"},tileWidth:{type:ControlType.Number,title:\"Tile width\",defaultValue:1441,min:100,max:4e3}});\nexport const __FramerMetadata__ = {\"exports\":{\"PageTexture\":{\"type\":\"reactComponent\",\"name\":\"PageTexture\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"SectionTexture\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionTexture.map"],"mappings":"4JACoF,SAAS,EAAa,EAAI,EAAM,CAA+B,OAA1B,EAAgC,iBAAiB,EAAM,YAAY,EAAI,OAA3D,OAAO,EAAI,EAAuD,CAOpM,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,aAAW,EAAY,EAAI,OAAO,GAAQ,UAAU,EAAM,EAAM,IAAI,EAAY,EAAM,OAAO,GAAU,UAAU,EAAQ,EAAQ,IAAI,EAA4B,OAAhB,EAAoC,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,gBAAgB,EAAa,EAAI,CAAK,EAAE,iBAAiB,SAAS,eAAe,GAAG,EAAU,SAAS,cAAc,MAAM,CAAC,CAAC,EAArM,IAAuM,CAQra,SAAgB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,aAAW,EAAY,EAAI,OAAO,GAAQ,UAAU,EAAM,EAAM,IAAI,EAAY,EAAM,OAAO,GAAU,UAAU,EAAQ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