{"version":3,"file":"DrawDivider.zn0YEl2L.mjs","names":["useRef","__esmMin","de","c","init_jsx_runtime","init_npm_react_18_3_1","useInView","motion","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_DDfsYcI0","RenderTarget","ControlType","DrawDivider","props","ref","inView","threshold","end","endOpacity","color","init_DrawDivider"],"sources":["https:/framerusercontent.com/modules/tOtAai8VKAAYpsLZyYzN/tbYZKJCUon9YaLtSp49E/DrawDivider.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,useInView}from\"framer-motion\";/**\n * Draw Divider — port of the reference \"Divider\" component (variant appear):\n * Start = line 1px wide, opacity 1 → End = line fills the row, opacity `endOpacity`.\n * Variant appear on in-view (threshold 0.5, once), tween 1s ease [0.83,-0.03,0.26,1.01].\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function DrawDivider(props){const{color=\"#FFFFFF\",endOpacity=.15,threshold=.5}=props;const ref=useRef(null);const inView=useInView(ref,{once:true,amount:threshold});const onCanvas=RenderTarget.current()===RenderTarget.canvas;const end=onCanvas||inView;return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{...props.style,width:\"100%\",height:\"100%\",minHeight:1,display:\"flex\",alignItems:\"center\",justifyContent:\"flex-start\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.div,{initial:false,animate:end?{width:\"100%\",opacity:endOpacity}:{width:\"1px\",opacity:1},transition:{type:\"tween\",duration:1,ease:[.83,-.03,.26,1.01]},style:{height:1,background:color,flex:\"none\"}})});}addPropertyControls(DrawDivider,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFFFFF\"},endOpacity:{type:ControlType.Number,title:\"End Opacity\",defaultValue:.15,min:0,max:1,step:.01},threshold:{type:ControlType.Number,title:\"Threshold\",defaultValue:.5,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DrawDivider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DrawDivider.map"],"mappings":"A,0OAOG,SAAwBa,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,UAAU,aAAW,IAAI,YAAU,IAAIC,EAAYC,EAAIf,EAAO,IAAI,EAAQgB,EAAOV,EAAUS,EAAI,CAAC,KAAK,GAAK,OAAOE,CAAS,CAAC,EAAoEC,EAAnDP,EAAa,QAAQ,IAAIA,EAAa,QAA2BK,EAAO,MAAoB,gBAAK,MAAM,CAAK,MAAI,MAAM,CAAC,GAAGF,EAAM,MAAM,MAAM,OAAO,OAAO,OAAO,UAAU,EAAE,QAAQ,OAAO,WAAW,SAAS,eAAe,aAAa,SAAS,QAAQ,EAAE,SAAsB,gBAAKP,EAAO,IAAI,CAAC,QAAQ,GAAM,QAAQW,EAAI,CAAC,MAAM,OAAO,QAAQC,CAAU,EAAE,CAAC,MAAM,MAAM,QAAQ,CAAC,EAAE,WAAW,CAAC,KAAK,QAAQ,SAAS,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,WAAWC,EAAM,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,C,8CAACX,EAAoBI,EAAY,CAAC,MAAM,CAAC,KAAKD,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,aAAa,IAAI,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,C"}