{"version":3,"file":"BackgroundGrid.OZ2fPxoi.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/jUW3u4U35umU7TCjmzPu/UlZZf8nQKa1D6tBMMtgm/BackgroundGrid.js"],"sourcesContent":["// Grid component with scalable grid pattern, customizable color and stroke weight, with vertical/horizontal cutting options\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackgroundGrid(props){const{gridSize=50,strokeColor=\"#E0E0E0\",strokeWeight=1,cutVertical=false,cutHorizontal=false,style}=props;const svgPattern=useMemo(()=>{return /*#__PURE__*/_jsxs(\"svg\",{width:\"100%\",height:\"100%\",style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"pattern\",{id:\"grid\",width:gridSize,height:gridSize,patternUnits:\"userSpaceOnUse\",children:/*#__PURE__*/_jsx(\"path\",{d:`M ${gridSize} 0 L 0 0 0 ${gridSize}`,fill:\"none\",stroke:strokeColor,strokeWidth:strokeWeight})})}),/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",fill:\"url(#grid)\"}),cutVertical&&/*#__PURE__*/_jsx(\"line\",{x1:\"50%\",y1:\"0\",x2:\"50%\",y2:\"100%\",stroke:strokeColor,strokeWidth:strokeWeight*2}),cutHorizontal&&/*#__PURE__*/_jsx(\"line\",{x1:\"0\",y1:\"50%\",x2:\"100%\",y2:\"50%\",stroke:strokeColor,strokeWidth:strokeWeight*2})]});},[gridSize,strokeColor,strokeWeight,cutVertical,cutHorizontal]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",...style},children:svgPattern});}addPropertyControls(BackgroundGrid,{gridSize:{type:ControlType.Number,title:\"Grid Size\",defaultValue:50,min:10,max:200,step:5,unit:\"px\"},strokeColor:{type:ControlType.Color,title:\"Stroke Color\",defaultValue:\"#E0E0E0\"},strokeWeight:{type:ControlType.Number,title:\"Stroke Weight\",defaultValue:1,min:.5,max:10,step:.5,unit:\"px\"},cutVertical:{type:ControlType.Boolean,title:\"Cut Vertical\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},cutHorizontal:{type:ControlType.Boolean,title:\"Cut Horizontal\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackgroundGrid\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackgroundGrid.map"],"mappings":"yQAIG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,WAAS,GAAG,cAAY,UAAU,eAAa,EAAE,cAAY,GAAM,gBAAc,GAAM,QAAM,CAAC,EAAY,EAAWA,MAAiC,EAAM,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,cAAc,OAAO,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,SAAsB,EAAK,UAAU,CAAC,GAAG,OAAO,MAAM,EAAS,OAAO,EAAS,aAAa,iBAAiB,SAAsB,EAAK,OAAO,CAAC,EAAE,KAAK,EAAS,aAAa,IAAW,KAAK,OAAO,OAAO,EAAY,YAAY,EAAa,EAAE,EAAE,EAAe,EAAK,OAAO,CAAC,MAAM,OAAO,OAAO,OAAO,KAAK,aAAa,EAAE,GAA0B,EAAK,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,OAAO,EAAY,YAAY,EAAa,EAAE,EAAE,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