{"version":3,"file":"TextContainer.Bf4pKgU6.mjs","names":["useRef","useState","React.useState","React"],"sources":["https:/framerusercontent.com/modules/jfK7C7JmdHGaVBsvt1V7/AGG8ARtz8MurBNtcvgvB/DotLottie.js","https:/framerusercontent.com/modules/ZRCYHup8lQO6dNmLvdb9/yqF8PzbMiUjeMCO5j9RC/TextContainer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef,useState}from\"react\";const placeholderUrl=\"https://lottie.host/d826e0a7-b7e8-4072-8afe-c943ed2dd2ca/DpX3m5yT5Z.lottie\";/**\n * DOT LOTTIE\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function DotLottie(props){return /*#__PURE__*/_jsx(OptimizationFriendly,{loading:/*#__PURE__*/_jsx(\"div\",{}),loaded:/*#__PURE__*/_jsx(LottiePlayer,{...props})});}function LottiePlayer(props){/* Checks */const isCanvas=RenderTarget.current()===RenderTarget.canvas;const lottieInstanceRef=useRef(null);const shouldPlay=isCanvas||props.hover===true||props.autoplay===false?null:true;/* File or URL */let src;switch(props.srcType){case\"url\":src=props.srcUrl;break;case\"file\":src=props.srcFile;break;default:src=placeholderUrl;break;}/* Progress */const[isReady,setIsReady]=useState(false);/* For canvas states */useEffect(()=>{if(!lottieInstanceRef.current)return;lottieInstanceRef.current.addEventListener(\"ready\",()=>setIsReady(true));},[]);useEffect(()=>{if(!lottieInstanceRef.current)return;lottieInstanceRef.current.seek(`${props.progress}%`);},[isReady,props.progress]);const lastVariant=useRef();/* For component variant support */useEffect(()=>{if(isCanvas)return;if(lastVariant.current!==props.autoplay){if(!lottieInstanceRef.current)return;if(props.autoplay===true){lottieInstanceRef.current.play();}if(props.autoplay===false){lottieInstanceRef.current.pause();}}lastVariant.current=props.autoplay;},[props.autoplay]);return(// @ts-ignore\n/*#__PURE__*/_jsx(\"dotlottie-player\",{src:src,ref:lottieInstanceRef,autoplay:shouldPlay,loop:props.loop?true:null,hover:props.hover?true:null,controls:props.controls?true:null,background:props.background?props.background:null,speed:props.speed,direction:props.direction,style:{...props.style,width:\"100%\",height:\"100%\"}},src));}DotLottie.defaultProps={srcUrl:placeholderUrl,autoplay:true,background:\"#05F\",controls:false,direction:1,hover:false,loop:true,speed:1};DotLottie.displayName=\"Dot Lottie\";addPropertyControls(DotLottie,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"url\",\"file\"],optionTitles:[\"URL\",\"File\"]},srcUrl:{type:ControlType.String,title:\"Link\",placeholder:\"../example.lottie\",hidden:props=>props.srcType===\"file\"},srcFile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"lottie\",\"json\"],hidden:props=>props.srcType===\"url\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:true},background:{type:ControlType.Color,title:\"Backdrop\",defaultValue:\"#05F\"},controls:{type:ControlType.Boolean,title:\"Controls\"},direction:{type:ControlType.Enum,title:\"Direction\",defaultValue:\"1\",displaySegmentedControl:true,segmentedControlDirection:\"horizontal\",options:[\"1\",\"-1\"],optionTitles:[\"Normal\",\"Reverse\"]},hover:{type:ControlType.Boolean,title:\"Hover Play\"},loop:{type:ControlType.Boolean,title:\"Loop\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:1,max:10,unit:\"x\",step:.5,displayStepper:true},progress:{type:ControlType.Number,title:\"Progress\",defaultValue:0,min:0,max:100,step:1,description:\"This component is made for Lottie files. [Learn more here](https://dotlottie.io/).\"}});/* For SSG */function OptimizationFriendly({loading,loaded}){const[isLoading,setLoading]=React.useState(true);// We can't load web-components in ssg on the server,\n// so we defer rendering until we hit the client.\nReact.useEffect(()=>{import(\"https://unpkg.com/@dotlottie/player-component@2.7.12/dist/dotlottie-player.js\").then(()=>{setLoading(false);});},[]);return isLoading?loading:loaded;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DotLottie\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"200\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DotLottie.map","// Text heading component that can be combined with other components in a single container\nimport{jsx as _jsx}from\"react/jsx-runtime\";import React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function TextContainer(props){const{text=\"We help [] brands create powerful online [] presence with Framer\",headingLevel=\"h1\",font,color,components,style}=props;const HeadingTag=headingLevel;const isFixedWidth=style?.width===\"100%\";const isFixedHeight=style?.height===\"100%\";// Convert components to array for proper handling\nconst componentArray=React.Children.toArray(components||[]);// Parse text and split by [] brackets\nconst parseText=inputText=>{const parts=inputText.split(/(\\[\\])/g);let componentIndex=0;return parts.map((part,index)=>{if(part===\"[]\"){const component=componentArray[componentIndex];componentIndex++;return component?/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",verticalAlign:\"middle\",flexShrink:0},children:component},index):/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",padding:\"2px 8px\",backgroundColor:\"#f0f0f0\",borderRadius:\"4px\",fontSize:\"0.8em\",color:\"#666\"},children:\"[component]\"},index);}else if(part){return /*#__PURE__*/_jsx(\"span\",{style:{whiteSpace:\"pre-wrap\"},children:part},index);}return null;}).filter(Boolean);};return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",display:\"flex\",flexDirection:\"column\",width:isFixedWidth?\"100%\":\"fit-content\",height:isFixedHeight?\"100%\":\"auto\",minWidth:0,minHeight:0},children:/*#__PURE__*/_jsx(HeadingTag,{style:{margin:0,padding:0,color:color,width:\"100%\",display:\"inline\",wordWrap:\"break-word\",...font},children:parseText(text)})});}addPropertyControls(TextContainer,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"We help [] brands create powerful online [] presence with Framer\",displayTextArea:true,placeholder:\"Use [] to mark component positions...\"},headingLevel:{type:ControlType.Enum,title:\"Heading Level\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],optionTitles:[\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\"],defaultValue:\"h1\",displaySegmentedControl:true},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"-0.03em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},components:{type:ControlType.Slot,title:\"Components\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextContainer\",\"slots\":[\"components\"],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextContainer.map"],"mappings":"qUASG,SAAwB,EAAU,EAAM,CAAC,OAAoB,EAAK,EAAqB,CAAC,QAAqB,EAAK,MAAM,EAAE,CAAC,CAAC,OAAoB,EAAK,EAAa,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,CAAE,SAAS,EAAa,EAAM,CAAa,IAAM,EAAS,EAAa,SAAS,GAAG,EAAa,OAAa,EAAkBA,EAAO,KAAK,CAAO,EAAW,GAAU,EAAM,QAAQ,IAAM,EAAM,WAAW,GAAM,KAAK,GAA0B,EAAI,OAAO,EAAM,QAAb,CAAsB,IAAI,MAAM,EAAI,EAAM,OAAO,MAAM,IAAI,OAAO,EAAI,EAAM,QAAQ,MAAM,QAAQ,EAA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