{"version":3,"file":"Preloader3.DN-afxg6.mjs","names":["useRef","useState","_Fragment","useRef","useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/ejz95fAiMe8zAshgYzNV/nAuGdrzZ0Kc36oFoDe8y/MessageThread.js","https:/framerusercontent.com/modules/zhSFDYtlwkSiZGYoNMTy/WzOogMXXzKIoQLA0mHrM/Preloader3.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{motion,AnimatePresence,useInView,useReducedMotion}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * MESSAGE THREAD\n * A two-person text conversation that plays itself out: typing dots, then the\n * bubble pops in from its tail. No phone, no header, no input bar — only the\n * bubbles, so it can sit on any background.\n *\n * Every message reserves its final space up front, so the thread never changes\n * height while it plays (no layout shift on the page). Playback starts when the\n * thread scrolls into view. On the canvas, and for visitors who prefer reduced\n * motion, the whole conversation is shown at once.\n *\n * With Ticker on and a fixed height, the thread is cropped instead: each new\n * message arrives at one fixed level (the middle of the frame by default) and\n * older ones slide up out of view.\n *\n * @framerIntrinsicWidth 324\n * @framerIntrinsicHeight 220\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n */export default function MessageThread(props){const{messages,typingDots=\"them\",ticker=false,tickerLevel=50,startOn=\"view\",startDelay=.4,speed=1,pause=.8,loop=true,loopDelay=3,gap=10,maxBubbleWidth=263,photoWidth=220,font,labelFont,themColor=\"#E9E9E7\",themText=\"#000000\",meColor=\"#1D1D1F\",meText=\"#FFFFFF\",labelColor=\"#89898D\",themGradient=false,meGradient=false,themColor2=\"#CFCFCB\",meColor2=\"#45454B\",gradientAngle=180,bubbleOpacity=100,bubbleBlur=0}=props;const rootRef=useRef(null);const inView=useInView(rootRef,{once:true,amount:.3});const reduce=useReducedMotion();const isStatic=reduce||RenderTarget.current()===RenderTarget.canvas;// \"load\" starts the clock at page load, wherever the thread is on the page.\nconst ready=startOn===\"load\"||inView;const list=messages&&messages.length?messages:FALLBACK;const n=list.length;const[count,setCount]=useState(0)// messages revealed so far\n;const[typing,setTyping]=useState(-1)// index currently showing dots\n;// Ticker only: how many messages have a place in the thread so far. Unlike\n// `count` it stays put while a finished loop fades out.\nconst[placed,setPlaced]=useState(0);// Ticker: the thread is pinned by its bottom edge, so when the newest\n// message takes up more room, every older message is suddenly that much\n// higher. Put the older ones back where they were and glide them up, so\n// the newest stays put and the rest make way for it.\nconst threadRef=useRef(null);const moving=ticker&&!isStatic;useEffect(()=>{if(!moving)return;const thread=threadRef.current;let height=thread.offsetHeight;const observer=new ResizeObserver(()=>{const grew=thread.offsetHeight-height;height=thread.offsetHeight;if(grew<=0)return;// Every message but the newest. Read where each one is first…\nconst older=[...thread.children].slice(0,-1);const from=older.map(row=>new DOMMatrix(getComputedStyle(row).transform).m42+grew);// …then glide them up from there. These are plain browser\n// animations: they take effect on this very frame, so nothing\n// jumps, and leave no styles behind when they finish.\nolder.forEach((row,i)=>{row.getAnimations().forEach(running=>running.cancel());row.animate({transform:[`translateY(${from[i]}px)`,\"translateY(0px)\"]},GLIDE);});// The newest bubble (or its typing dots) is already at full size\n// in the space the older messages are still gliding out of, which\n// shows as an overlap when it is tall. Uncover it from the bottom\n// up at the same pace, so its top edge follows them instead.\nconst newest=thread.lastElementChild;const bubble=newest&&newest.querySelector(\"[data-bubble]\");const body=bubble&&bubble.offsetHeight?bubble:newest&&newest.querySelector(\"[data-dots]\");if(!body)return;const cover=top=>`inset(${top}px 0px -10px 0px round ${RADIUS}px ${RADIUS}px 0px 0px)`;body.animate({clipPath:[cover(grew),cover(0)]},GLIDE);});observer.observe(thread);return()=>observer.disconnect();},[moving]);const showsDots=m=>typingDots===\"both\"||typingDots===\"them\"&&m.sender!==\"me\";// Restart playback only when the conversation itself changes.\nconst script=JSON.stringify(list.map(m=>[m.sender,m.text]));useEffect(()=>{if(isStatic||!ready)return;const rate=1/Math.max(.1,speed);let timer;let i=0;const next=()=>{if(i>=n){if(!loop)return;timer=setTimeout(()=>{setCount(0);i=0;timer=setTimeout(next,700);},loopDelay*1e3);return;}const m=list[i];setPlaced(i+1);const reveal=()=>{setTyping(-1);setCount(i+1);i++;timer=setTimeout(next,pause*1e3*rate);};if(showsDots(m)){setTyping(i);timer=setTimeout(reveal,typingTime(m.text)*rate);}else{reveal();}};// Start Delay is absolute — Speed doesn't scale it — so it can be\n// matched to the delays on other animations.\ntimer=setTimeout(next,startDelay*1e3);return()=>{clearTimeout(timer);setTyping(-1);setCount(0);setPlaced(0);};},[isStatic,ready,startDelay,script,typingDots,speed,pause,loop,loopDelay]);const shown=isStatic?n:count;const textStyle={margin:0,fontFamily:FONT,fontSize:15,lineHeight:1.2,letterSpacing:\"0.6px\",fontWeight:400,// Whatever is picked in the Font control wins over the defaults above.\n...font,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\"};return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:{width:\"100%\",// Ticker: a fixed window with the thread pinned inside it.\n...ticker&&{height:\"100%\",overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-end\"}},children:[/*#__PURE__*/_jsx(\"div\",{ref:threadRef,style:{flexShrink:0,display:\"flex\",flexDirection:\"column\",// Room for the last bubble's tail, which hangs 5px below it.\npaddingBottom:5,boxSizing:\"border-box\"},children:list.map((m,i)=>{// Ticker: a message takes no space until its turn comes.\nif(moving&&i>=placed)return null;// Ticker: while the dots show, hold only their height.\nconst waiting=moving&&typing===i;const sent=m.sender===\"me\";const side=sent?\"right\":\"left\";const origin=sent?\"100% 100%\":\"0% 100%\";const color=sent?meColor:themColor;// Gradient: the colour the bubble fades into.\nconst color2=sent?meGradient&&meColor2:themGradient&&themColor2;const text=sent?meText:themText;const visible=i<shown;const followsSame=i>0&&list[i-1].sender===m.sender;const nextSame=i<n-1&&list[i+1].sender===m.sender;// The tail belongs to the newest bubble in a run from one sender.\nconst tail=!nextSame||i===shown-1;// A message can be a photo, text, or a photo with text under it.\nconst photo=m.image&&m.image.src?m.image:null;const hasText=!photo||!!(m.text&&m.text.trim());return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:sent?\"flex-end\":\"flex-start\",gap:8,marginTop:i===0?0:followsSame?3:gap},children:[m.label&&/*#__PURE__*/_jsx(motion.p,{initial:moving?{opacity:0}:false,animate:{opacity:visible?1:0},transition:{duration:.25},style:{margin:0,padding:\"0 16px\",fontFamily:FONT,fontSize:10,fontWeight:500,lineHeight:1,letterSpacing:\"0.4px\",...labelFont,whiteSpace:\"nowrap\",color:labelColor},children:m.label}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",display:\"flex\",justifyContent:sent?\"flex-end\":\"flex-start\"},children:[/*#__PURE__*/_jsxs(motion.div,{// Ticker rows are created as they arrive,\n// so they start hidden and pop in. One that\n// takes over from the dots grows out of them\n// rather than popping from small.\n\"data-bubble\":true,initial:moving?\"hidden\":false,animate:visible?\"shown\":\"hidden\",variants:moving&&showsDots(m)?GROW:POP,transition:visible?SPRING:{duration:.2},style:{display:waiting?\"none\":\"flex\",flexDirection:\"column\",alignItems:sent?\"flex-end\":\"flex-start\",gap:3,maxWidth:maxBubbleWidth,transformOrigin:origin},children:[photo&&/*#__PURE__*/_jsx(Photo,{image:photo,width:photoWidth}),hasText&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(Backing,{color:color,sent:sent,tail:tail,color2:color2,angle:gradientAngle,opacity:bubbleOpacity/100,blur:bubbleBlur}),/*#__PURE__*/_jsx(motion.div,{variants:FADE,transition:FADE_TIME,style:{position:\"relative\",padding:\"9px 13px\",color:text},children:/*#__PURE__*/_jsx(\"p\",{style:textStyle,children:m.text})})]})]}),waiting&&/*#__PURE__*/_jsx(\"div\",{style:{...textStyle,padding:\"9px 13px\",visibility:\"hidden\"},children:\"​\"}),/*#__PURE__*/_jsx(AnimatePresence,{children:typing===i&&/*#__PURE__*/_jsxs(motion.div,{\"data-dots\":true,\"aria-hidden\":true,initial:\"hidden\",animate:\"shown\",exit:{opacity:0,transition:{duration:.1}},variants:POP,transition:SPRING,style:{position:\"absolute\",// Ticker: sit on the tail corner,\n// where the bubble grows from.\n[moving?\"bottom\":\"top\"]:0,[side]:0,transformOrigin:origin},children:[/*#__PURE__*/_jsx(Backing,{color:color,sent:sent,color2:color2,angle:gradientAngle,opacity:bubbleOpacity/100,blur:bubbleBlur}),/*#__PURE__*/_jsxs(motion.div,{variants:FADE,transition:FADE_TIME,style:{...textStyle,position:\"relative\",display:\"flex\",alignItems:\"center\",padding:\"9px 13px\"},children:[\"​\",[0,1,2].map(d=>/*#__PURE__*/_jsx(motion.span,{animate:{opacity:[.25,.7,.25]},transition:{duration:1.1,ease:\"easeInOut\",repeat:Infinity,delay:d*.18},style:{width:7,height:7,marginLeft:d?4:0,borderRadius:\"50%\",background:text,opacity:.25}},d))]})]},\"typing\")})]})]},i);})}),ticker&&/*#__PURE__*/_jsx(\"div\",{style:{flex:`0 0 ${100-tickerLevel}%`}})]});}// A sent photo, the way a messaging thread shows one: the picture itself with\n// rounded corners, no bubble around it and no tail.\nfunction Photo({image,width}){// Knowing the shape up front lets the photo hold its space before it loads.\nconst ratio=image.pixelWidth&&image.pixelHeight?`${image.pixelWidth} / ${image.pixelHeight}`:undefined;return /*#__PURE__*/_jsx(motion.img,{variants:FADE,transition:FADE_TIME,src:image.src,srcSet:image.srcSet,sizes:`${width}px`,alt:image.alt||\"\",draggable:false,style:{display:\"block\",width,maxWidth:\"100%\",height:\"auto\",aspectRatio:ratio,objectFit:\"cover\",borderRadius:20}});}/**\n * Everything behind a bubble's text: an optional blur of whatever is under the\n * bubble, then the bubble colour. The bubble and its tail overlap, so the\n * colour is faded as one group — fading them separately would leave a darker\n * patch where they cross once the bubble is see-through.\n */function Backing({color,color2,angle,sent,tail=true,opacity,blur}){const frost=blur>0?`blur(${blur}px)`:null;const side=sent?\"right\":\"left\";const paint=color2?`linear-gradient(${angle}deg, ${color}, ${color2})`:color;// One blur layer cut to the bubble and tail together. Blurring the tail\n// as its own small piece makes it stand out as a flat patch, because a\n// blur only sees what is directly under its own element.\nconst mask={image:tail?`${TAIL_MASK[side]}, ${BODY_MASK}`:BODY_MASK,size:tail?\"24px 14px, 100% calc(100% - 5px)\":\"100% calc(100% - 5px)\",position:tail?`${side} bottom, left top`:\"left top\"};return /*#__PURE__*/_jsxs(_Fragment,{children:[frost&&/*#__PURE__*/_jsx(motion.div,{variants:FADE,transition:FADE_TIME,style:{position:\"absolute\",top:0,left:0,right:0,// Reaches down to cover the tail's tip.\nbottom:-5,backdropFilter:frost,WebkitBackdropFilter:frost,maskImage:mask.image,WebkitMaskImage:mask.image,maskSize:mask.size,WebkitMaskSize:mask.size,maskPosition:mask.position,WebkitMaskPosition:mask.position,maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}}),/*#__PURE__*/_jsxs(motion.div,{variants:{hidden:{opacity:0},shown:{opacity}},transition:FADE_TIME,style:{position:\"absolute\",inset:0},children:[color2?// Gradient tail: the same gradient as the bubble, drawn\n// over the same area and cut to the tail's shape, so the\n// colour carries straight across the join.\n/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:\"0 0 -5px 0\",background:paint,opacity:tail?1:0,transition:\"opacity 0.2s ease\",maskImage:TAIL_MASK[side],WebkitMaskImage:TAIL_MASK[side],maskSize:\"24px 14px\",WebkitMaskSize:\"24px 14px\",maskPosition:`${side} bottom`,WebkitMaskPosition:`${side} bottom`,maskRepeat:\"no-repeat\",WebkitMaskRepeat:\"no-repeat\"}}):/*#__PURE__*/_jsx(Tail,{color:color,sent:sent,visible:tail}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,borderRadius:20,background:paint,// Gradient: run it over the bubble plus the 5px the\n// tail hangs below, to line up with the tail's.\n...color2&&{backgroundSize:\"100% calc(100% + 5px)\",backgroundRepeat:\"no-repeat\"}}})]})]});}// The bubble tail, straight from the Figma vector. Mirrored for sent messages.\nfunction Tail({color,sent,visible=true}){return /*#__PURE__*/_jsx(\"svg\",{\"aria-hidden\":true,width:\"24\",height:\"14\",viewBox:\"0 0 24 14\",fill:\"none\",style:{position:\"absolute\",bottom:-5,[sent?\"right\":\"left\"]:0,display:\"block\",transform:sent?\"scaleX(-1)\":undefined,opacity:visible?1:0,transition:\"opacity 0.2s ease\"},children:/*#__PURE__*/_jsx(\"path\",{d:TAIL_PATH,fill:color})});}// Longer messages take longer to \"type\", within sensible limits.\nconst typingTime=text=>Math.min(2400,Math.max(900,500+(text||\"\").length*35));const FONT='\"SF Pro Display\", -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", \"Segoe UI\", sans-serif';const TAIL_PATH=\"M23.1516 5.94366C17.9097 10.1542 14.248 11.6466 8.40167 13.3277C7.79598 13.5019 7.34855 12.7141 7.76663 12.2425C10.0935 9.61793 10.809 6.8757 8.26052 1.29483C8.03929 0.810356 8.49546 0.275628 9.0026 0.438333L22.9593 4.91612C23.4101 5.06075 23.5207 5.64718 23.1516 5.94366Z\";// The same shapes as images, for cutting the blur layer to the bubble outline.\nconst svgMask=body=>`url(\"data:image/svg+xml,${encodeURIComponent(`<svg xmlns=\"http://www.w3.org/2000/svg\" ${body}</svg>`)}\")`;const BODY_MASK=svgMask(`><rect width=\"100%\" height=\"100%\" rx=\"20\" ry=\"20\"/>`);const TAIL_MASK={left:svgMask(`width=\"24\" height=\"14\" viewBox=\"0 0 24 14\"><path d=\"${TAIL_PATH}\"/>`),right:svgMask(`width=\"24\" height=\"14\" viewBox=\"0 0 24 14\"><path transform=\"translate(24 0) scale(-1 1)\" d=\"${TAIL_PATH}\"/>`)};// A bubble scales in from its tail while its layers fade. The fade lives on\n// the layers, not the bubble itself: a see-through parent switches off the\n// background blur of everything inside it.\nconst POP={hidden:{transform:\"scale(0.6)\"},shown:{transform:\"scale(1)\"}};// Ticker: a bubble taking over from the typing dots starts near full size.\nconst GROW={hidden:{transform:\"scale(0.9)\"},shown:{transform:\"scale(1)\"}};// Ticker: how older messages glide up to make room for a new one.\nconst GLIDE={duration:500,easing:\"cubic-bezier(0.3, 0, 0.1, 1)\"};const RADIUS=20// bubble corner radius, in px\n;const FADE={hidden:{opacity:0},shown:{opacity:1}};const FADE_TIME={duration:.2};const SPRING={type:\"spring\",visualDuration:.3,bounce:.25};const FALLBACK=[{sender:\"them\",label:\"via Instagram\",text:\"do you do a less sweet version of the cardamom?\"},{sender:\"me\",label:\"\",text:\"we do! half the sugar, same cardamom\"},{sender:\"them\",label:\"\",text:\"perfect\"},{sender:\"them\",label:\"\",text:\"can I grab two for saturday?\"},{sender:\"me\",label:\"\",text:\"done, they'll be ready from 9\"}];addPropertyControls(MessageThread,{messages:{type:ControlType.Array,title:\"Messages\",defaultValue:FALLBACK,control:{type:ControlType.Object,controls:{sender:{type:ControlType.Enum,title:\"From\",options:[\"them\",\"me\"],optionTitles:[\"Them (left)\",\"Me (right)\"],defaultValue:\"them\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"New message\"},image:{type:ControlType.ResponsiveImage,title:\"Photo\"},label:{type:ControlType.String,title:\"Label\",placeholder:\"via Instagram\",defaultValue:\"\"}}}},ticker:{type:ControlType.Boolean,title:\"Ticker\",defaultValue:false,description:\"Needs a fixed height. New messages arrive at one level and older ones slide up out of view.\"},tickerLevel:{type:ControlType.Number,title:\"Ticker Level\",min:10,max:100,step:1,unit:\"%\",defaultValue:50,description:\"Where new messages arrive: 50% is the middle, 100% the bottom.\",hidden:props=>!props.ticker},typingDots:{type:ControlType.Enum,title:\"Typing Dots\",options:[\"them\",\"both\",\"none\"],optionTitles:[\"Them only\",\"Both\",\"None\"],defaultValue:\"them\"},startOn:{type:ControlType.Enum,title:\"Start On\",options:[\"view\",\"load\"],optionTitles:[\"In View\",\"Page Load\"],defaultValue:\"view\"},startDelay:{type:ControlType.Number,title:\"Start Delay\",min:0,max:30,step:.1,unit:\"s\",defaultValue:.4},speed:{type:ControlType.Number,title:\"Speed\",min:.25,max:3,step:.25,unit:\"x\",defaultValue:1},pause:{type:ControlType.Number,title:\"Pause\",min:0,max:4,step:.1,unit:\"s\",defaultValue:.8},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true},loopDelay:{type:ControlType.Number,title:\"Loop Delay\",min:.5,max:20,step:.5,unit:\"s\",defaultValue:3,hidden:props=>!props.loop},gap:{type:ControlType.Number,title:\"Gap\",min:5,max:48,step:1,unit:\"px\",defaultValue:10},maxBubbleWidth:{type:ControlType.Number,title:\"Bubble Max W\",min:120,max:600,step:1,unit:\"px\",defaultValue:263},photoWidth:{type:ControlType.Number,title:\"Photo Width\",min:60,max:600,step:1,unit:\"px\",defaultValue:220},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:15,lineHeight:1.2,letterSpacing:.6}},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{variant:\"Medium\",fontSize:10,lineHeight:1,letterSpacing:.4}},themColor:{type:ControlType.Color,title:\"Them Bubble\",defaultValue:\"#E9E9E7\"},themText:{type:ControlType.Color,title:\"Them Text\",defaultValue:\"#000000\"},meColor:{type:ControlType.Color,title:\"Me Bubble\",defaultValue:\"#1D1D1F\"},meText:{type:ControlType.Color,title:\"Me Text\",defaultValue:\"#FFFFFF\"},labelColor:{type:ControlType.Color,title:\"Label\",defaultValue:\"#89898D\"},themGradient:{type:ControlType.Boolean,title:\"Them Gradient\",defaultValue:false},themColor2:{type:ControlType.Color,title:\"Them Bubble 2\",defaultValue:\"#CFCFCB\",hidden:props=>!props.themGradient},meGradient:{type:ControlType.Boolean,title:\"Me Gradient\",defaultValue:false},meColor2:{type:ControlType.Color,title:\"Me Bubble 2\",defaultValue:\"#45454B\",hidden:props=>!props.meGradient},gradientAngle:{type:ControlType.Number,title:\"Gradient Angle\",min:0,max:360,step:5,unit:\"\\xb0\",defaultValue:180,hidden:props=>!props.themGradient&&!props.meGradient},bubbleOpacity:{type:ControlType.Number,title:\"Bubble Opacity\",min:0,max:100,step:1,unit:\"%\",defaultValue:100},bubbleBlur:{type:ControlType.Number,title:\"Bubble Blur\",min:0,max:60,step:1,unit:\"px\",defaultValue:0}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MessageThread\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"220\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"324\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MessageThread.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{motion,useReducedMotion}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * TORN INTRO\n * A three-image load transition. A full-bleed middle image sits behind two\n * side images that start as two halves meeting in the centre, hiding it\n * completely. On load the halves hold for a beat, then slide apart to thin\n * strips at the edges, revealing the middle image underneath. The Direction\n * option switches the split from left / right to top / bottom.\n *\n * Each slot takes a photo, a GIF or a video (videos play muted and looped).\n * A video slot can also take a fallback image, shown while the video loads\n * and kept if it fails to load or the browser refuses to play it.\n * No text — layer your own over it in Framer. The hold only starts counting\n * once the media has loaded, so the slide never runs over a blank frame. On\n * the canvas, and for visitors who prefer reduced motion, the end state is\n * shown.\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 700\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TornIntro(props){const{leftType=\"image\",imageLeft,videoLeft,posterLeft,middleType=\"image\",imageMiddle,videoMiddle,posterMiddle,rightType=\"image\",imageRight,videoRight,posterRight,direction=\"horizontal\",hold=1.5,slide=2,leftStart=50,leftEnd=6,rightStart=50,rightEnd=8.5,shadow=0,background=\"#141413\"}=props;const rootRef=useRef(null);const reduce=useReducedMotion();const onCanvas=RenderTarget.current()===RenderTarget.canvas;const isStatic=reduce||onCanvas;const[ready,setReady]=useState(false);// Hold playback until every image is decoded and every video has its first\n// frame (or 4s pass, whichever comes first).\nconst sources=[leftType,imageLeft&&imageLeft.src,videoLeft,middleType,imageMiddle&&imageMiddle.src,videoMiddle,rightType,imageRight&&imageRight.src,videoRight,posterLeft&&posterLeft.src,posterMiddle&&posterMiddle.src,posterRight&&posterRight.src].join(\"|\");useEffect(()=>{let live=true;const root=rootRef.current;const go=()=>live&&setReady(true);const timeout=setTimeout(go,4e3);const images=Array.from(root.querySelectorAll(\"img\")).map(img=>img.decode().catch(()=>{}));const videos=Array.from(root.querySelectorAll(\"video\")).map(video=>video.readyState>=2?null:new Promise(done=>{video.addEventListener(\"loadeddata\",done,{once:true});video.addEventListener(\"error\",done,{once:true});}));Promise.all([...images,...videos]).then(go);return()=>{live=false;clearTimeout(timeout);};},[sources]);const vertical=direction===\"vertical\";const play=isStatic||ready;const slideTransition=isStatic?{duration:0}:{delay:hold,duration:slide,ease:EASE_IN_OUT};const sides=[{side:\"left\",type:leftType,image:imageLeft,video:videoLeft,poster:posterLeft,start:leftStart,end:Math.min(leftEnd,leftStart),fallback:\"linear-gradient(180deg, #F2B632 55%, #CFC7B4 55%)\"},{side:\"right\",type:rightType,image:imageRight,video:videoRight,poster:posterRight,start:rightStart,end:Math.min(rightEnd,rightStart),fallback:\"linear-gradient(180deg, #1B1A18 50%, #B4472A 50%)\"}];return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background},children:[/*#__PURE__*/_jsx(Media,{type:middleType,image:imageMiddle,video:videoMiddle,poster:posterMiddle,autoPlay:!onCanvas,sizes:\"100vw\",fallback:\"linear-gradient(180deg, #0E1420 0%, #3E6FA3 38%, #E8893A 52%, #1A1211 58%, #120F0F 100%)\"}),sides.map(s=>{const first=s.side===\"left\";// Vertical: the left panel becomes the top half and the right\n// panel the bottom half, and they slide up and down instead.\nconst axis=vertical?\"translateY\":\"translateX\";// How far the panel travels, as a share of its own size.\nconst travel=(s.start-s.end)/s.start*100;const open=`${axis}(0%)`;const closed=`${axis}(${first?-travel:travel}%)`;// The extra pixel on the first half closes the hairline seam\n// where the two halves meet.\nconst size=first?`calc(${s.start}% + 1px)`:`${s.start}%`;const frame=vertical?{left:0,right:0,[first?\"top\":\"bottom\"]:0,height:size}:{top:0,bottom:0,[s.side]:0,width:size};return /*#__PURE__*/_jsx(motion.div,{initial:isStatic?false:{transform:open},animate:{transform:play?closed:open},transition:slideTransition,style:{position:\"absolute\",...frame,overflow:\"hidden\",boxShadow:shadow>0?`0 0 14px rgba(0,0,0,${shadow})`:undefined},children:/*#__PURE__*/_jsx(Media,{type:s.type,image:s.image,video:s.video,poster:s.poster,autoPlay:!onCanvas,sizes:vertical?\"100vw\":`${s.start}vw`,fallback:s.fallback})},`${s.side}-${direction}`);})]});}function Media({type,image,video,poster,autoPlay,sizes,fallback}){const fill={position:\"absolute\",inset:0,width:\"100%\",height:\"100%\"};const cover={...fill,display:\"block\",objectFit:\"cover\"};const picture=source=>{// Resized variants of a GIF can lose the animation, so use the original.\nconst gif=/\\.gif($|[?#])/i.test(source.src);return /*#__PURE__*/_jsx(\"img\",{src:source.src,srcSet:gif?undefined:source.srcSet,sizes:gif?undefined:sizes,alt:source.alt||\"\",draggable:false,style:{...cover,objectPosition:`${source.positionX||\"50%\"} ${source.positionY||\"50%\"}`}});};if(type===\"video\"&&video){// The fallback image sits underneath the video, so it shows while the\n// video is still loading and stays put if the video never arrives.\nreturn /*#__PURE__*/_jsxs(_Fragment,{children:[poster&&poster.src&&picture(poster),/*#__PURE__*/_jsx(Clip,{src:video,autoPlay:autoPlay,style:cover})]});}if(type!==\"video\"&&image&&image.src)return picture(image);// A video slot with no video file yet still shows its fallback image.\nif(type===\"video\"&&poster&&poster.src)return picture(poster);return /*#__PURE__*/_jsx(\"div\",{style:{...fill,background:fallback}});}function Clip({src,autoPlay,style}){const ref=useRef(null);// The src that failed, if any — a new src gets a fresh try.\nconst[failed,setFailed]=useState(null);// React doesn't reliably write the `muted` attribute into the page, and\n// browsers refuse to autoplay a video they don't consider muted. So mute\n// it and start it by hand.\nuseEffect(()=>{const video=ref.current;if(!video)return;video.muted=true;if(!autoPlay)return;const start=()=>{if(document.hidden)return;video.play().catch(error=>{// Autoplay refused outright (e.g. iOS Low Power Mode): drop\n// the frozen video and let the fallback image show instead.\nif(error&&error.name===\"NotAllowedError\")setFailed(src);});};start();// Browsers pause silent video in a background tab; pick it back up\n// when the visitor returns.\ndocument.addEventListener(\"visibilitychange\",start);return()=>document.removeEventListener(\"visibilitychange\",start);},[src,autoPlay]);if(failed===src)return null;return /*#__PURE__*/_jsx(\"video\",{ref:ref,src:src,autoPlay:autoPlay,muted:true,loop:true,playsInline:true,preload:\"auto\",onError:()=>setFailed(src),style:style});}const EASE_IN_OUT=[.65,0,.35,1];const widthControl=(title,defaultValue)=>({type:ControlType.Number,title,min:0,max:50,step:.5,unit:\"%\",defaultValue});const timeControl=(title,defaultValue,max)=>({type:ControlType.Number,title,min:0,max,step:.05,unit:\"s\",defaultValue});// One slot = a Photo/GIF vs Video switch, plus the matching upload control.\nconst mediaControls=(slot,title)=>({[`${slot}Type`]:{type:ControlType.Enum,title,options:[\"image\",\"video\"],optionTitles:[\"Photo / GIF\",\"Video\"],displaySegmentedControl:true,defaultValue:\"image\"},[`image${cap(slot)}`]:{type:ControlType.ResponsiveImage,title:\" \",hidden:props=>props[`${slot}Type`]===\"video\"},[`video${cap(slot)}`]:{type:ControlType.File,title:\" \",allowedFileTypes:[\"mp4\",\"webm\",\"mov\",\"m4v\"],hidden:props=>props[`${slot}Type`]!==\"video\"},[`poster${cap(slot)}`]:{type:ControlType.ResponsiveImage,title:\"Fallback\",hidden:props=>props[`${slot}Type`]!==\"video\"}});const cap=word=>word[0].toUpperCase()+word.slice(1);addPropertyControls(TornIntro,{...mediaControls(\"left\",\"Left\"),...mediaControls(\"middle\",\"Middle\"),...mediaControls(\"right\",\"Right\"),direction:{type:ControlType.Enum,title:\"Direction\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Left / Right\",\"Top / Bottom\"],displaySegmentedControl:true,defaultValue:\"horizontal\",description:\"Top / Bottom uses the Left slot as the top half and the Right slot as the bottom half.\"},hold:timeControl(\"Hold\",1.5,10),slide:timeControl(\"Slide\",2,8),leftStart:widthControl(\"Left Start\",50),leftEnd:widthControl(\"Left End\",6),rightStart:widthControl(\"Right Start\",50),rightEnd:widthControl(\"Right End\",8.5),shadow:{type:ControlType.Number,title:\"Shadow\",min:0,max:1,step:.05,defaultValue:0},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#141413\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TornIntro\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1200\",\"framerIntrinsicHeight\":\"700\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Preloader3.map"],"mappings":"mRAmBG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,WAAS,aAAW,OAAO,SAAO,GAAM,cAAY,GAAG,UAAQ,OAAO,aAAW,GAAG,QAAM,EAAE,QAAM,GAAG,OAAK,GAAK,YAAU,EAAE,MAAI,GAAG,iBAAe,IAAI,aAAW,IAAI,OAAK,YAAU,YAAU,UAAU,WAAS,UAAU,UAAQ,UAAU,SAAO,UAAU,aAAW,UAAU,eAAa,GAAM,aAAW,GAAM,aAAW,UAAU,YAAS,UAAU,gBAAc,IAAI,iBAAc,IAAI,cAAW,GAAG,EAAY,GAAQA,EAAO,IAAI,EAAQ,GAAO,EAA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