{"version":3,"file":"GridBackground.C5LBnJSv.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","useIsStaticRenderer","init_framer_BL70qLPA","ControlType","GridBackground","props","isStatic","grid","line","thickness","cell","fullscreen","bg","style","init_GridBackground"],"sources":["https:/framerusercontent.com/modules/GayCxPxZVAm1uNyqWiKM/EvsnbbchH5NtMgKfC3Dk/GridBackground.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Graph-paper grid background.\n *\n * Fullscreen mode paints a viewport-fixed layer (always square cells,\n * covers any page size); bounded mode fills the instance box.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GridBackground(props){const{bg=\"#F3EAD6\",line=\"rgba(245, 52, 12, 0.28)\",cell=40,thickness=1,fullscreen=false,style}=props;const isStatic=useIsStaticRenderer();const grid=`repeating-linear-gradient(0deg, ${line} 0, ${line} ${thickness}px, transparent ${thickness}px, transparent ${cell}px),`+`repeating-linear-gradient(90deg, ${line} 0, ${line} ${thickness}px, transparent ${thickness}px, transparent ${cell}px)`;if(fullscreen&&!isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,zIndex:0,pointerEvents:\"none\",backgroundColor:bg,backgroundImage:grid}});}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:bg,backgroundImage:grid,...style}});}addPropertyControls(GridBackground,{bg:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F3EAD6\"},line:{type:ControlType.Color,title:\"Line\",defaultValue:\"rgba(245, 52, 12, 0.28)\"},cell:{type:ControlType.Number,title:\"Cell\",defaultValue:40,min:10,max:160,unit:\"px\"},thickness:{type:ControlType.Number,title:\"Thickness\",defaultValue:1,min:1,max:5,unit:\"px\"},fullscreen:{type:ControlType.Boolean,title:\"Fullscreen\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GridBackground\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GridBackground.map"],"mappings":"A,qKAQG,SAAwBO,EAAe,EAAM,CAAC,GAAK,CAAC,KAAG,UAAU,OAAK,0BAA0B,OAAK,GAAG,YAAU,EAAE,aAAW,GAAM,SAAOC,EAAYC,EAASL,EAAoB,EAAQM,EAAK,mCAAmCC,EAAK,MAAMA,EAAK,GAAGC,EAAU,kBAAkBA,EAAU,kBAAkBC,EAAK,uCAA0CF,EAAK,MAAMA,EAAK,GAAGC,EAAU,kBAAkBA,EAAU,kBAAkBC,EAAK,KAA+L,OAAvLC,GAAY,CAACL,EAA8B,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,OAAO,gBAAgBM,EAAG,gBAAgBL,CAAI,CAAC,CAAC,EAAuB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,gBAAgBK,EAAG,gBAAgBL,EAAK,GAAGM,CAAK,CAAC,CAAC,CAAE,C,sCAACb,EAAoBI,EAAe,CAAC,GAAG,CAAC,KAAKD,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,KAAK,CAAC,KAAKA,EAAY,MAAM,MAAM,OAAO,aAAa,yBAAyB,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,IAAI,KAAK,IAAI,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,WAAW,CAAC,KAAKA,EAAY,QAAQ,MAAM,aAAa,aAAa,EAAK,CAAC,CAAC,C"}