{"version":3,"file":"AsanohaGrid.KHwf-RXc.mjs","names":["useId","useState"],"sources":["https:/framerusercontent.com/modules/DT0yWGw4wh7gEshav0qd/89gSvwQNCYrslyYVTMBe/AsanohaGrid.js"],"sourcesContent":["// Asanoha Grid - Traditional Japanese hemp leaf pattern\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useId,useState,useEffect,startTransition}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AsanohaGrid(props){const{color=\"rgba(0, 123, 67, 0.1)\",activeColor=\"rgba(167, 243, 208, 0.6)\",disableAnimationOnMobile=true,style}=props;const idPrefix=useId();const basePatternId=`${idPrefix}-asanoha-base`;const activePatternId=`${idPrefix}-asanoha-active`;const glowFilterId=`${idPrefix}-glow`;const[isMobile,setIsMobile]=useState(false);useEffect(()=>{if(typeof window!==\"undefined\"){const checkMobile=()=>{startTransition(()=>{setIsMobile(window.innerWidth<768);});};checkMobile();window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);}},[]);const shouldAnimate=!disableAnimationOnMobile||!isMobile;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:/*#__PURE__*/_jsxs(\"svg\",{className:\"absolute w-full h-full\",width:\"100%\",height:\"100%\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsxs(\"defs\",{children:[/*#__PURE__*/_jsxs(\"filter\",{id:glowFilterId,x:\"-20%\",y:\"-20%\",width:\"140%\",height:\"140%\",children:[/*#__PURE__*/_jsx(\"feGaussianBlur\",{stdDeviation:\"1\",result:\"blur\"}),/*#__PURE__*/_jsx(\"feComposite\",{in:\"SourceGraphic\",in2:\"blur\",operator:\"over\"})]}),/*#__PURE__*/_jsx(\"pattern\",{id:basePatternId,x:\"0\",y:\"0\",width:\"40\",height:\"69.282\",patternUnits:\"userSpaceOnUse\",children:/*#__PURE__*/_jsxs(\"g\",{fill:\"none\",stroke:color,strokeWidth:\"0.5\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M0 0 V69.282 M20 0 V69.282\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M0 0 L40 69.282 M40 0 L0 69.282\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M0 34.641 L40 34.641\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M0 0 L20 11.547 L40 0\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M0 69.282 L20 57.735 L40 69.282\"})]})}),/*#__PURE__*/_jsx(\"pattern\",{id:activePatternId,x:\"0\",y:\"0\",width:\"400\",height:\"692.82\",patternUnits:\"userSpaceOnUse\",children:/*#__PURE__*/_jsxs(\"g\",{fill:\"none\",stroke:activeColor,strokeWidth:\"0.25\",strokeLinecap:\"round\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M20 0 V692.82\",strokeDasharray:\"30 1500\",children:shouldAnimate&&/*#__PURE__*/_jsx(\"animate\",{attributeName:\"stroke-dashoffset\",from:\"1530\",to:\"0\",dur:\"4.3s\",repeatCount:\"indefinite\"})}),/*#__PURE__*/_jsx(\"path\",{d:\"M220 0 V692.82\",strokeDasharray:\"50 2000\",children:shouldAnimate&&/*#__PURE__*/_jsx(\"animate\",{attributeName:\"stroke-dashoffset\",from:\"2050\",to:\"0\",dur:\"7.1s\",repeatCount:\"indefinite\"})}),/*#__PURE__*/_jsx(\"path\",{d:\"M0 0 L400 692.82\",strokeDasharray:\"80 2500\",children:shouldAnimate&&/*#__PURE__*/_jsx(\"animate\",{attributeName:\"stroke-dashoffset\",from:\"2580\",to:\"0\",dur:\"6.7s\",repeatCount:\"indefinite\"})}),/*#__PURE__*/_jsx(\"path\",{d:\"M0 692.82 L400 0\",strokeDasharray:\"20 800\",children:shouldAnimate&&/*#__PURE__*/_jsx(\"animate\",{attributeName:\"stroke-dashoffset\",from:\"0\",to:\"820\",dur:\"3.1s\",repeatCount:\"indefinite\"})}),/*#__PURE__*/_jsx(\"path\",{d:\"M340 0 V692.82\",strokeDasharray:\"40 1200\",opacity:\"0.7\",children:shouldAnimate&&/*#__PURE__*/_jsx(\"animate\",{attributeName:\"stroke-dashoffset\",from:\"1240\",to:\"0\",dur:\"5.9s\",begin:\"2s\",repeatCount:\"indefinite\"})}),/*#__PURE__*/_jsx(\"path\",{d:\"M200 0 L400 346.41\",strokeDasharray:\"40 1000\",children:shouldAnimate&&/*#__PURE__*/_jsx(\"animate\",{attributeName:\"stroke-dashoffset\",from:\"1040\",to:\"0\",dur:\"5.3s\",begin:\"1.5s\",repeatCount:\"indefinite\"})}),/*#__PURE__*/_jsx(\"path\",{d:\"M400 346.41 L0 692.82\",strokeDasharray:\"60 1800\",opacity:\"0.6\",children:shouldAnimate&&/*#__PURE__*/_jsx(\"animate\",{attributeName:\"stroke-dashoffset\",from:\"1860\",to:\"0\",dur:\"8.3s\",begin:\"0.5s\",repeatCount:\"indefinite\"})})]})})]}),/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",fill:`url(#${basePatternId})`}),shouldAnimate&&/*#__PURE__*/_jsx(\"rect\",{width:\"100%\",height:\"100%\",fill:`url(#${activePatternId})`,filter:`url(#${glowFilterId})`})]})});}addPropertyControls(AsanohaGrid,{color:{type:ControlType.Color,title:\"Base Color\",defaultValue:\"rgba(0, 123, 67, 0.1)\"},activeColor:{type:ControlType.Color,title:\"Active Color\",defaultValue:\"rgba(167, 243, 208, 0.6)\"},disableAnimationOnMobile:{type:ControlType.Boolean,title:\"Disable on Mobile\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AsanohaGrid\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"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