{"version":3,"file":"Wordmark.z4wl-RkJ.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/u6twgoKGeLZgNdRgcWyu/ssVdOwYBN0YUqPiP0nu7/Wordmark.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";import{motion,useInView,useReducedMotion}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// BRAVIQ thin-stroke wordmark. The letters stretch to fill the frame while the\n// stroke keeps one even weight, then draw themselves in when they enter view.\nconst H=40;const LETTERS=[{w:96,d:\"M2 2 V38 M2 2 H82 Q94 2 94 11 Q94 19 82 19 H2 M2 19 H84 Q95 19 95 28.5 Q95 38 84 38 H2\"},{w:96,d:\"M2 38 V2 H82 Q94 2 94 11.5 Q94 21 82 21 H2 M66 21 L94 38\"},{w:112,d:\"M1 38 L52 3.5 Q56 1 60 3.5 L111 38 M24 26 H88\"},{w:112,d:\"M1 2 L52 36.5 Q56 39 60 36.5 L111 2\"},{w:4,d:\"M2 2 V38\"},{w:96,d:\"M14 2 H82 Q94 2 94 14 V26 Q94 38 82 38 H14 Q2 38 2 26 V14 Q2 2 14 2 Z M70 30 L94 44\"}];const GAP=34;/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 120\n */export default function Wordmark(props){const{color,stroke,animate,delay}=props;const ref=useRef(null);const inView=useInView(ref,{once:true,amount:.3});const reduce=useReducedMotion();const still=!animate||reduce||RenderTarget.current()===RenderTarget.canvas;let x=0;const parts=LETTERS.map(l=>{const p={...l,x};x+=l.w+GAP;return p;});const W=x-GAP;return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",...props.style},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:`0 0 ${W} 46`,preserveAspectRatio:\"none\",width:\"100%\",height:\"100%\",style:{display:\"block\",overflow:\"visible\"},\"aria-label\":\"BRAVIQ\",role:\"img\",children:parts.map((l,i)=>/*#__PURE__*/_jsx(motion.path,{d:l.d,transform:`translate(${l.x} 0)`,fill:\"none\",stroke:color,strokeWidth:stroke,strokeLinecap:\"square\",strokeLinejoin:\"miter\",vectorEffect:\"non-scaling-stroke\",initial:still?false:{pathLength:0,opacity:0},animate:still||inView?{pathLength:1,opacity:1}:{pathLength:0,opacity:0},transition:{pathLength:{duration:1.6,ease:[.65,0,.35,1],delay:delay+i*.12},opacity:{duration:.2,delay:delay+i*.12}}},i))})});}Wordmark.defaultProps={color:\"#1A1A1A\",stroke:3,animate:true,delay:.1};addPropertyControls(Wordmark,{color:{type:ControlType.Color,title:\"Color\"},stroke:{type:ControlType.Number,title:\"Stroke\",min:.5,max:24,step:.5,unit:\"px\"},animate:{type:ControlType.Boolean,title:\"Draw In\"},delay:{type:ControlType.Number,title:\"Delay\",min:0,max:3,step:.05,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Wordmark\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"120\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Wordmark.map"],"mappings":"gPAOG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,UAAQ,SAAO,EAAY,EAAIA,EAAO,IAAI,EAAQ,EAAO,EAAU,EAAI,CAAC,KAAK,GAAK,OAAO,EAAE,CAAC,EAAQ,EAAO,EAAiB,EAAQ,EAAM,CAAC,GAAS,GAAQ,EAAa,QAAQ,IAAI,EAAa,OAAW,EAAE,EAAQ,EAAM,EAAQ,IAAI,GAAG,CAAC,IAAM,EAAE,CAAC,GAAG,EAAE,GAAC,EAAa,MAAX,IAAG,EAAE,EAAE,EAAW,CAAE,CAAC,EAAQ,EAAE,EAAE,E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