{"version":3,"file":"DrawLineDivider.DX25_fcX.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/ePKABNTkmbZiipiySJZe/6UgcYkl9h9tefcYgTjr2/DrawLineDivider.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * DRAW LINE DIVIDER\n *\n * A 1px rule that draws itself in once when it enters the viewport.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 1\n */export default function DrawLineDivider(props){const{color=\"#000000\",thickness=1,duration=.9,orientation=\"horizontal\"}=props;const ref=useRef(null);const[drawn,setDrawn]=useState(false);const isStatic=useIsStaticRenderer();const[reduced,setReduced]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");setReduced(mq.matches);const el=ref.current;if(!el)return;const io=new IntersectionObserver(entries=>{for(const e of entries)if(e.isIntersecting)setDrawn(true);},{threshold:.5});io.observe(el);return()=>io.disconnect();},[]);const horizontal=orientation===\"horizontal\";const show=drawn||isStatic||reduced;return /*#__PURE__*/_jsx(\"div\",{ref:ref,\"aria-hidden\":\"true\",style:{...props.style,position:\"relative\",overflow:\"hidden\",width:horizontal?\"100%\":thickness,height:horizontal?thickness:\"100%\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",background:color,transformOrigin:horizontal?\"left center\":\"center top\",transform:show?\"scale(1, 1)\":horizontal?\"scale(0, 1)\":\"scale(1, 0)\",transition:isStatic||reduced?\"none\":`transform ${duration}s cubic-bezier(0.22, 1, 0.36, 1)`}})});}addPropertyControls(DrawLineDivider,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},thickness:{type:ControlType.Number,title:\"Thickness\",defaultValue:1,min:1,max:8,step:1,unit:\"px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.9,min:.3,max:2,step:.1,unit:\"s\"},orientation:{type:ControlType.Enum,title:\"Orientation\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal\",\"Vertical\"],displaySegmentedControl:true,defaultValue:\"horizontal\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DrawLineDivider\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"1\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DrawLineDivider.map"],"mappings":"8MASG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,UAAU,YAAU,EAAE,WAAS,GAAG,cAAY,cAAc,EAAY,EAAIA,EAAO,IAAI,EAAO,CAAC,EAAM,GAAUC,EAAS,EAAK,EAAQ,EAAS,EAAoB,EAAO,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAE,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAG,EAAO,WAAW,kCAAkC,EAAE,EAAW,EAAG,OAAO,EAAE,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,EAAG,IAAI,qBAAqB,GAAS,CAAC,IAAI,IAAM,KAAK,EAAW,EAAE,gBAAe,EAAS,EAAI,CAAE,EAAE,CAAC,UAAU,EAAE,CAAC,EAAiB,OAAf,EAAG,QAAQ,CAAE,MAAY,EAAG,WAAW,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAW,IAAc,aAAmB,EAAK,GAAO,GAAU,EAAQ,OAAoB,EAAK,MAAM,CAAK,MAAI,cAAc,OAAO,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,SAAS,SAAS,MAAM,EAAW,OA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