{"version":3,"file":"Aboutus.DOI6bPlu.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/83771DOWFJnYRvsHGaMc/2enaBXL3QK92U0OLxKqc/Aboutus.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Blinds\n *\n * A solid block slides in from the right, then opens like venetian blinds\n * to reveal horizontal lines of varying weight.\n *\n * Sizes itself to fill whatever frame you place it in — no manual\n * width/height needed. Just drop it into your header and stretch it to fit.\n */const LINE_HEIGHTS=[3,8,4,14,3,18,6,10,3,8,14,5,20,4,10,3];const N=LINE_HEIGHTS.length;const SLIDE_DUR=.7;const OPEN_DUR=.75;const OPEN_START=.85;const STAGGER=.055;export default function Blinds({lineColor=\"#c2c4f0\",width,height,style}){const containerRef=useRef(null);const[slotH,setSlotH]=useState(0);// Measure the actual rendered container height so slot sizes are exact\nuseEffect(()=>{const el=containerRef.current;if(!el)return;setSlotH(el.offsetHeight/N);},[height])// re-measure if Framer resizes the frame\n;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:width??\"100%\",height:height??\"100%\",overflow:\"hidden\",...style},children:slotH>0&&// Phase 1 — whole block slides in from the right\n/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:0},initial:{x:\"100%\"},animate:{x:0},transition:{duration:SLIDE_DUR,ease:[.4,0,.2,1]},children:LINE_HEIGHTS.map((lineH,i)=>// Phase 2 — each slat opens to its final line thickness\n    /*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:i*slotH,left:0,width:\"100%\",height:slotH,backgroundColor:lineColor,transformOrigin:\"center center\"},initial:{scaleY:1},animate:{scaleY:lineH/slotH},transition:{duration:OPEN_DUR,delay:OPEN_START+i*STAGGER,ease:[.4,0,.2,1]}},i))})});}addPropertyControls(Blinds,{lineColor:{type:ControlType.Color,title:\"Line Color\",defaultValue:\"#c2c4f0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Blinds\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Aboutus.map"],"mappings":"yOAQwK,SAAwB,EAAO,CAAC,YAAU,UAAU,QAAM,SAAO,SAAO,CAAC,IAAM,EAAaA,EAAO,KAAK,CAAM,CAAC,EAAM,GAAUC,EAAS,EAAE,CAEjT,OADD,MAAc,CAAC,IAAM,EAAG,EAAa,QAAY,GAAU,EAAS,EAAG,aAAa,EAAE,EAAG,CAAC,EAAO,CAAC,CAC7E,EAAK,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,SAAS,WAAW,MAAM,GAAO,OAAO,OAAO,GAAQ,OAAO,SAAS,SAAS,GAAG,EAAM,CAAC,SAAS,EAAM,GACrJ,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,EAAU,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,EAAa,KAAK,EAAM,IACpK,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,EAAM,KAAK,EAAE,MAAM,OAAO,OAAO,EAAM,gBAAgB,EAAU,gBAAgB,gBAAgB,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAM,EAAM,CAAC,WAAW,CAAC,SAAS,EAAS,MAAM,EAAW,EAAE,EAAQ,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,8BAZ7P,IAAkC,IAA6C,IAAoD,CAQrK,EAAa,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAO,EAAE,EAAa,OAAa,EAAU,GAAS,EAAS,IAAU,EAAW,IAAU,EAAQ,KAIuI,EAAoB,EAAO,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,CAAC"}