{"version":3,"file":"TextIndenter.AqFpHqMf.mjs","names":["React.useState","React.useRef","React.useRef","useMemo","__esmMin","init_ssg_sandbox_shims","_e","de","pe","p","init_npm_react_18_3_1","ce","window","init_framer_CN96F41L","addPropertyControls","ControlType","SyncSlider","images","props","i","v","index","setIndex","hover","setHover","current","ready","slug","key","signature","saved","next","change","delta","timer","direction","e","init_SyncSlider","init_jsx_runtime","SyncVideo","videoRef","video","restored","restore","time","save","init_SyncVideo","TextIndenter","processedText","text","indentSpaces","isFixedWidth","font","textColor","init_TextIndenter"],"sources":["https:/framerusercontent.com/modules/mrFpub1ZEU9EVE8vgBGa/daTYxeayqxwzg4V1fEin/SyncSlider.js","https:/framerusercontent.com/modules/WHmloAcq4SRrFoxA1JPY/Oyji9o2q118gxt4LybhG/SyncVideo.js","https:/framerusercontent.com/modules/EJ8ajY9zNTFDlDMqO3UV/67kVxx3YTg8vQZGzeJjv/TextIndenter.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function SyncSlider(props){const images=Array.from({length:8},(_,i)=>props[\"image\"+(i+1)]).map(v=>typeof v===\"string\"?{src:v,alt:\"\"}:v).filter(v=>v?.src);const[index,setIndex]=React.useState(0);const[hover,setHover]=React.useState(false);const current=React.useRef(0);const ready=React.useRef(false);const slug=(props.cmsSlug||\"\").split(\"?\")[0].split(\"#\")[0].split(\"/\").filter(Boolean).pop()||\"\";const key=slug?\"slider-index-\"+slug:\"\";const signature=images.map(i=>i.src).join(\"|\");React.useEffect(()=>{ready.current=false;let saved=0;try{saved=Number(sessionStorage.getItem(key)||0);}catch{}const next=Number.isInteger(saved)&&saved>=0&&saved<images.length?saved:0;current.current=next;setIndex(next);ready.current=true;},[key,signature]);const change=delta=>{if(!images.length||!ready.current)return;const next=(current.current+delta+images.length)%images.length;current.current=next;setIndex(next);if(key&&!props.readOnly)try{sessionStorage.setItem(key,String(next));}catch{}};React.useEffect(()=>{if(hover||images.length<2)return;const timer=setInterval(()=>change(1),1500);return()=>clearInterval(timer);},[hover,key,signature,props.readOnly]);return /*#__PURE__*/_jsxs(\"div\",{role:\"region\",\"aria-label\":\"Image slideshow\",onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{width:\"100%\",height:400,position:\"relative\",overflow:\"hidden\",...props.style},children:[images.length>0&&/*#__PURE__*/_jsx(\"img\",{src:images[index%images.length]?.src,alt:images[index%images.length]?.alt||\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\",display:\"block\"}}),images.length>1&&[-1,1].map(direction=>/*#__PURE__*/_jsx(\"button\",{\"aria-label\":direction<0?\"Previous image\":\"Next image\",onClick:e=>{e.preventDefault();e.stopPropagation();change(direction);},style:{position:\"absolute\",top:\"50%\",transform:\"translateY(-50%)\",left:direction<0?12:undefined,right:direction>0?12:undefined,width:35,height:44,padding:5,border:0,background:\"transparent\",color:\"white\",mixBlendMode:\"difference\",cursor:\"pointer\"},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",width:\"24\",height:\"24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:direction<0?\"M20 12H7 M12 7L7 12L12 17\":\"M4 12H17 M12 7L17 12L12 17\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})},direction))]});}addPropertyControls(SyncSlider,{cmsSlug:{type:ControlType.Link,title:\"CMS Slug\"},readOnly:{type:ControlType.Boolean,title:\"Background Copy\",defaultValue:false},image1:{type:ControlType.ResponsiveImage,title:\"Image 1\"},image2:{type:ControlType.ResponsiveImage,title:\"Image 2\"},image3:{type:ControlType.ResponsiveImage,title:\"Image 3\"},image4:{type:ControlType.ResponsiveImage,title:\"Image 4\"},image5:{type:ControlType.ResponsiveImage,title:\"Image 5\"},image6:{type:ControlType.ResponsiveImage,title:\"Image 6\"},image7:{type:ControlType.ResponsiveImage,title:\"Image 7\"},image8:{type:ControlType.ResponsiveImage,title:\"Image 8\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SyncSlider\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SyncSlider.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function SyncVideo(props){const videoRef=React.useRef(null);React.useEffect(()=>{const video=videoRef.current;if(!video||!props.videoUrl)return;const slug=(props.cmsSlug||\"\").split(\"?\")[0].split(\"#\")[0].split(\"/\").filter(Boolean).pop()||\"\";const key=slug?\"video-time-\"+slug:\"\";let restored=false;const restore=()=>{if(restored)return;let time=0;try{time=Number(sessionStorage.getItem(key)||0);}catch{}if(key&&Number.isFinite(time)&&time>0){try{video.currentTime=Number.isFinite(video.duration)?Math.min(time,Math.max(0,video.duration-.05)):time;}catch{return;}}restored=true;video.play().catch(()=>{});};const save=()=>{if(!key||!restored||props.readOnly)return;try{sessionStorage.setItem(key,String(video.currentTime));}catch{}};video.addEventListener(\"loadedmetadata\",restore);video.addEventListener(\"timeupdate\",save);video.addEventListener(\"pause\",save);window.addEventListener(\"pagehide\",save);document.addEventListener(\"visibilitychange\",save);document.addEventListener(\"pointerdown\",save,true);document.addEventListener(\"keydown\",save,true);if(video.readyState>=1)restore();return()=>{save();video.removeEventListener(\"loadedmetadata\",restore);video.removeEventListener(\"timeupdate\",save);video.removeEventListener(\"pause\",save);window.removeEventListener(\"pagehide\",save);document.removeEventListener(\"visibilitychange\",save);document.removeEventListener(\"pointerdown\",save,true);document.removeEventListener(\"keydown\",save,true);};},[props.cmsSlug,props.videoUrl,props.readOnly]);return /*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:props.videoUrl||undefined,autoPlay:true,loop:true,muted:true,playsInline:true,preload:\"metadata\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",borderRadius:\"inherit\",display:\"block\",...props.style}});}addPropertyControls(SyncVideo,{videoUrl:{type:ControlType.File,title:\"Video URL\",allowedFileTypes:[\"mp4\",\"webm\"]},cmsSlug:{type:ControlType.Link,title:\"CMS Slug\"},readOnly:{type:ControlType.Boolean,title:\"Background Copy\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SyncVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SyncVideo.map","// Text component with first-line indent functionality and overflow protection\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function TextIndenter(props){const{text,indentSpaces,font,textColor}=props;const processedText=useMemo(()=>{// Handle empty or whitespace-only text\nif(!text||text.trim().length===0){return text||\"\";}// Apply indent\nconst spaces=\" \".repeat(Math.max(0,Math.min(indentSpaces,50)));return spaces+text;},[text,indentSpaces]);const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",...isFixedWidth?{...props?.style}:{minWidth:\"max-content\"}},children:/*#__PURE__*/_jsx(\"div\",{style:{...font,color:textColor,whiteSpace:\"pre-wrap\",wordBreak:\"break-word\",overflowWrap:\"break-word\",...isFixedWidth?{}:{width:\"max-content\"}},children:processedText||\"Enter your text here...\"})});}addPropertyControls(TextIndenter,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"This is a sample paragraph that will have its first line indented. The indent will only apply to the very beginning of this text, creating a traditional paragraph formatting style.\",displayTextArea:true},indentSpaces:{type:ControlType.Number,title:\"Indent Spaces\",defaultValue:4,min:0,max:50,step:1,displayStepper:true},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TextIndenter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextIndenter.map"],"mappings":"A,0MAGG,SAAwBgB,EAAW,EAAM,CAAC,IAAMC,EAAO,MAAM,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,IAAIC,EAAM,SAASC,EAAE,GAAG,CAAC,CAAC,IAAI,GAAG,OAAOC,GAAI,SAAS,CAAC,IAAIA,EAAE,IAAI,EAAE,EAAEA,CAAC,CAAC,CAAC,OAAO,GAAGA,GAAG,GAAG,EAAO,CAACC,EAAMC,GAAUtB,EAAe,CAAC,EAAO,CAACuB,EAAMC,GAAUxB,EAAe,EAAK,EAAQyB,EAAQxB,EAAa,CAAC,EAAQyB,EAAMzB,EAAa,EAAK,EAAQ0B,GAAMT,EAAM,SAAS,GAAA,CAAI,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,IAAI,GAAG,GAASU,EAAID,EAAK,gBAAgBA,EAAK,GAASE,EAAUZ,EAAO,IAAI,GAAGE,EAAE,GAAG,CAAC,CAAC,KAA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