{"version":3,"file":"YachtBanner.B9pbbR49.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/MBufHRpkNfsgI6cI4Jji/utRAnDqX4Txm85XOU6tZ/YachtBanner.js"],"sourcesContent":["// Create this simple component - captivating yacht-themed banner\n// The Hartford Group luxury concierge service banner\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useInView}from\"framer-motion\";import{useState,useEffect,useRef,startTransition}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function YachtBanner(props){const{text=\"Elevate Every Moment\",highlightText=\"Effortless Sophistication\",tagline=\"Curated luxury experiences for the discerning few\",textColor=\"#F5F5F0\",highlightColor=\"#C9A961\",taglineColor=\"#A8A8A3\",backgroundColor=\"#1A1A1D\",font,taglineFont,showBorder=true,borderColor=\"#2A2A2D\",showShadow=true,animationSpeed=120,enableTypingEffect=false,padding=48,style}=props;const[displayedText,setDisplayedText]=useState(\"\");const[hasAnimated,setHasAnimated]=useState(false);const timeoutRefs=useRef([]);const containerRef=useRef(null);const isInView=useInView(containerRef,{once:true});// Typed animation effect triggered by scroll\nuseEffect(()=>{if(!enableTypingEffect){// When typing effect is disabled, show full text immediately\nstartTransition(()=>{setDisplayedText(highlightText);setHasAnimated(true);});return;}if(!isInView||hasAnimated)return;// Clear any existing timeouts\ntimeoutRefs.current.forEach(clearTimeout);timeoutRefs.current=[];const typeText=()=>{for(let i=0;i<=highlightText.length;i++){const timeoutId=setTimeout(()=>{startTransition(()=>{setDisplayedText(highlightText.slice(0,i));if(i===highlightText.length){setHasAnimated(true);}});},i*animationSpeed);timeoutRefs.current.push(timeoutId);}};// Reset and start typing\nsetDisplayedText(\"\");typeText();return()=>{timeoutRefs.current.forEach(clearTimeout);timeoutRefs.current=[];};},[isInView,highlightText,hasAnimated,animationSpeed,enableTypingEffect]);const isFixedWidth=style&&style.width===\"100%\";return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{...style,position:\"relative\",background:backgroundColor,padding:`${padding}px 40px`,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:\"16px\",...isFixedWidth?{}:{minWidth:\"max-content\"},...font,overflow:\"hidden\",boxShadow:showShadow?\"0 8px 32px rgba(0, 0, 0, 0.4)\":\"none\",borderBottom:showBorder?`1px solid ${borderColor}`:\"none\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{color:textColor,textAlign:\"center\"},children:[text,\" \",/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",display:\"inline-block\"},children:/*#__PURE__*/_jsxs(motion.span,{style:{color:highlightColor,fontStyle:\"normal\",position:\"relative\",fontWeight:500},initial:{opacity:0},animate:{opacity:isInView?1:0},transition:{duration:.8,delay:.3},children:[enableTypingEffect?displayedText:highlightText,enableTypingEffect&&displayedText.length>0&&displayedText.length<highlightText.length&&/*#__PURE__*/_jsx(motion.span,{style:{display:\"inline-block\",width:\"2px\",height:\"0.9em\",backgroundColor:highlightColor,marginLeft:\"2px\",borderRadius:\"1px\"},animate:{opacity:[1,0,1]},transition:{duration:1,repeat:Infinity,ease:\"easeInOut\"}})]})})]}),/*#__PURE__*/_jsx(motion.span,{style:{color:taglineColor,fontSize:\"0.75em\",letterSpacing:\"0.08em\",textTransform:\"uppercase\",textAlign:\"center\",...taglineFont},initial:{opacity:0,y:10},animate:{opacity:isInView?1:0,y:isInView?0:10},transition:{duration:.8,delay:.6},children:tagline})]});}addPropertyControls(YachtBanner,{// ===== CONTENT =====\ntext:{type:ControlType.String,title:\"Main Text\",defaultValue:\"Elevate Every Moment\"},highlightText:{type:ControlType.String,title:\"Highlight Text\",defaultValue:\"Effortless Sophistication\"},tagline:{type:ControlType.String,title:\"Tagline\",defaultValue:\"Curated luxury experiences for the discerning few\"},// ===== TYPOGRAPHY =====\nfont:{type:ControlType.Font,title:\"Main Font\",defaultValue:{fontSize:\"36px\",variant:\"Light\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},taglineFont:{type:ControlType.Font,title:\"Tagline Font\",defaultValue:{fontSize:\"11px\",variant:\"Regular\",letterSpacing:\"0.12em\",lineHeight:\"1.5em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},// ===== COLORS =====\nbackgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#1A1A1D\"},textColor:{type:ControlType.Color,title:\"Main Text\",defaultValue:\"#F5F5F0\"},highlightColor:{type:ControlType.Color,title:\"Highlight\",defaultValue:\"#C9A961\"},taglineColor:{type:ControlType.Color,title:\"Tagline\",defaultValue:\"#A8A8A3\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#2A2A2D\",hidden:({showBorder})=>!showBorder},// ===== LAYOUT & STYLE =====\npadding:{type:ControlType.Number,title:\"Padding\",defaultValue:48,min:20,max:100,step:4,unit:\"px\"},showBorder:{type:ControlType.Boolean,title:\"Show Border\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},showShadow:{type:ControlType.Boolean,title:\"Show Shadow\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},// ===== ANIMATION =====\nenableTypingEffect:{type:ControlType.Boolean,title:\"Typing Effect\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},animationSpeed:{type:ControlType.Number,title:\"Speed\",defaultValue:120,min:50,max:300,step:10,unit:\"ms\",displayStepper:true,hidden:({enableTypingEffect})=>!enableTypingEffect}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YachtBanner\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YachtBanner.map"],"mappings":"8PAKG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAA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