{"version":3,"file":"VerticalTextBlock.M3_e5eZD.mjs","names":["useRef","useState","__esmMin","te","_e","de","c","init_jsx_runtime","init_npm_react_18_3_1","ce","useAnimation","useInView","motion","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_DKtAEkcX","ControlType","useIsStaticRenderer","MaskImageScroll","props","containerRef","isStatic","controls","isInView","hasAnimated","setHasAnimated","easingMap","values","customEasing","v","maskPaths","direction","animationType","image","easing","init_MaskImageScroll","VerticalTextBlock","writingMode","rotation","style","text","font","init_VerticalTextBlock"],"sources":["https:/framerusercontent.com/modules/eaHIXpl4nV7LRpzJQePW/6A7yc8JH67gN7HRS9G4v/MaskImageScroll.js","https:/framerusercontent.com/modules/yojpDcleZCSOcELa5yML/IVUw8py4dX7RLupfg3fW/VerticalTextBlock.js"],"sourcesContent":["// Mask image animation on scroll with configurable direction, duration and easing\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{motion,useInView,useAnimation}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function MaskImageScroll(props){const{image={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},direction=\"right\",duration=1,easing=\"easeOut\",customEasing=\"0.25, 0.1, 0.25, 1\",animationType=\"scroll\"}=props;const containerRef=useRef(null);const isStatic=useIsStaticRenderer();const controls=useAnimation();const isInView=useInView(containerRef,{amount:.3});const[hasAnimated,setHasAnimated]=useState(false);// Create easing functions\nconst easingMap={linear:[0,0,1,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],circIn:[.6,.04,.98,.335],circOut:[.075,.82,.165,1],circInOut:[.785,.135,.15,.86],backIn:[.6,-.28,.735,.045],backOut:[.175,.885,.32,1.275],backInOut:[.68,-.55,.265,1.55],custom:(()=>{try{const values=customEasing.split(\",\").map(v=>parseFloat(v.trim()));if(values.length===4&&values.every(v=>!isNaN(v))){return values;}return[.25,.1,.25,1]// fallback\n;}catch{return[.25,.1,.25,1]// fallback\n;}})()};// Get initial and final mask paths based on direction\nconst getMaskPaths=()=>{switch(direction){case\"left\":return{initial:\"inset(0 100% 0 0)\",animate:\"inset(0 0% 0 0)\"};case\"right\":return{initial:\"inset(0 0 0 100%)\",animate:\"inset(0 0 0 0%)\"};case\"top\":return{initial:\"inset(0 0 100% 0)\",animate:\"inset(0 0 0% 0)\"};case\"bottom\":return{initial:\"inset(100% 0 0 0)\",animate:\"inset(0% 0 0 0)\"};default:return{initial:\"inset(0 0 0 100%)\",animate:\"inset(0 0 0 0%)\"};}};const maskPaths=getMaskPaths();// Handle loading animation (triggers immediately on mount)\nuseEffect(()=>{if(animationType===\"loading\"&&!isStatic&&!hasAnimated){controls.start(\"animate\");startTransition(()=>setHasAnimated(true));}},[animationType,controls,isStatic,hasAnimated]);// Handle scroll animation (triggers when in view)\nuseEffect(()=>{if(animationType===\"scroll\"&&isInView&&!isStatic&&!hasAnimated){controls.start(\"animate\");startTransition(()=>setHasAnimated(true));}},[animationType,isInView,controls,isStatic,hasAnimated]);// Static preview for non-interactive environments\nif(isStatic){return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",clipPath:maskPaths.animate}})});}return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.img,{src:image.src,alt:image.alt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"},initial:{clipPath:maskPaths.initial},animate:controls,variants:{animate:{clipPath:maskPaths.animate,transition:{duration:duration,ease:easingMap[easing]}}}})});}addPropertyControls(MaskImageScroll,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},animationType:{type:ControlType.Enum,title:\"Animation Type\",options:[\"scroll\",\"loading\"],optionTitles:[\"On Scroll\",\"On Loading\"],defaultValue:\"scroll\",displaySegmentedControl:true},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"left\",\"right\",\"top\",\"bottom\"],optionTitles:[\"Left\",\"Right\",\"Top\",\"Bottom\"],defaultValue:\"right\",displaySegmentedControl:true},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1,min:.1,max:5,step:.1,unit:\"s\"},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\",\"circIn\",\"circOut\",\"circInOut\",\"backIn\",\"backOut\",\"backInOut\",\"custom\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\",\"Circ In\",\"Circ Out\",\"Circ In Out\",\"Back In\",\"Back Out\",\"Back In Out\",\"Custom\"],defaultValue:\"easeOut\"},customEasing:{type:ControlType.String,title:\"Custom Easing\",defaultValue:\"0.25, 0.1, 0.25, 1\",placeholder:\"x1, y1, x2, y2\",hidden:({easing})=>easing!==\"custom\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MaskImageScroll\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MaskImageScroll.map","// Vertical text block component\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Vertical Text Block\n * Displays text in a vertical stack (one character per line).\n *\n * @framerIntrinsicWidth auto\n * @framerIntrinsicHeight auto\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function VerticalTextBlock(props){const{text,color,font,style}=props;const direction=props.direction||\"vertical-left\";let writingMode=\"horizontal-tb\";let rotation=0;if(direction===\"vertical-left\"){writingMode=\"vertical-rl\";rotation=0;}else if(direction===\"vertical-right\"){writingMode=\"vertical-lr\";rotation=0;}else if(direction===\"horizontal\"){writingMode=\"horizontal-tb\";rotation=0;}return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"max-content\",height:\"max-content\",background:\"transparent\"},\"aria-label\":text,role:\"text\",children:/*#__PURE__*/_jsx(\"span\",{style:{color:color,...font,writingMode,transform:`rotate(${rotation}deg)`,whiteSpace:\"pre\",width:\"max-content\",textAlign:font?.textAlign||\"left\",display:\"inline-block\"},children:text})});}addPropertyControls(VerticalTextBlock,{text:{type:ControlType.String,defaultValue:\"Vertical Text\",displayTextArea:false,title:\"Text\",placeholder:\"Type here...\"},color:{type:ControlType.Color,defaultValue:\"#000000\",title:\"Color\"},font:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",title:\"Font\",defaultValue:{fontSize:32,variant:\"Bold\",lineHeight:\"1em\",letterSpacing:\"0.08em\",textAlign:\"left\"},displayTextAlignment:true},direction:{type:ControlType.Enum,title:\"Text Direction/Orientation\",options:[\"vertical-left\",\"vertical-right\",\"horizontal\"],optionTitles:[\"Vertical Left (↑)\",\"Vertical Right (↓)\",\"Horizontal\"],defaultValue:\"vertical-left\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VerticalTextBlock\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VerticalTextBlock.map"],"mappings":"A,sQAIG,SAAwBkB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,IAAI,sEAAsE,IA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