{"version":3,"file":"Functions.BjyXIXo7.mjs","names":["React.useState","useState","useRef"],"sources":["https:/framerusercontent.com/modules/gPRtyCTilpvWLizqYB1e/97ydyGSdEpB6dbX83t2B/Functions.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useEffect,useState,useRef}from\"react\";import*as React from\"react\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withClipLeft(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,clipPath:\"inset(0 -1000% 0 0)\"}});};}export function withLimitText200(Component){return props=>{const[displayText,setDisplayText]=React.useState(\"\");React.useEffect(()=>{const originalText=props.text||\"\";if(originalText.length>150){setDisplayText(originalText.substring(0,150)+\"...\");}else{setDisplayText(originalText);}},[props.text]);return /*#__PURE__*/_jsx(Component,{...props,text:displayText});};}export function withLimitText12(Component){return props=>{const[displayText,setDisplayText]=React.useState(\"\");React.useEffect(()=>{const originalText=props.text||\"\";if(originalText.length>35){setDisplayText(originalText.substring(0,35)+\"...\");}else{setDisplayText(originalText);}},[props.text]);return /*#__PURE__*/_jsx(Component,{...props,text:displayText});};}function getCurrentTime(){const now=new Date;const minutes=now.getMinutes().toString().padStart(2,\"0\");const hours=now.getHours().toString();return`${hours}:${minutes}`;}export function withTime(Component){return props=>{const[currentTime,setCurrentTime]=useState(getCurrentTime());useEffect(()=>{const intervalId=setInterval(()=>{setCurrentTime(getCurrentTime());},1e3);return()=>clearInterval(intervalId);},[]);return /*#__PURE__*/_jsx(Component,{...props,text:currentTime});};}export function withFullWidthFramerImage(Component){return props=>{const ref=useRef(null);useEffect(()=>{if(ref.current){const images=ref.current.querySelectorAll(\".framer-image\");images.forEach(img=>{img.style.display=\"block\";img.style.marginLeft=\"auto\";img.style.marginRight=\"auto\";img.style.width=\"100%\";img.style.height=\"auto\"// Maintains aspect ratio\n;});}},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLimitText200\":{\"type\":\"reactHoc\",\"name\":\"withLimitText200\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLimitText12\":{\"type\":\"reactHoc\",\"name\":\"withLimitText12\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTime\":{\"type\":\"reactHoc\",\"name\":\"withTime\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFullWidthFramerImage\":{\"type\":\"reactHoc\",\"name\":\"withFullWidthFramerImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withClipLeft\":{\"type\":\"reactHoc\",\"name\":\"withClipLeft\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Functions.map"],"mappings":"8PACgkB,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAY,GAAgBA,EAAe,GAAG,CAA0L,OAAzL,MAAoB,CAAC,IAAM,EAAa,EAAM,MAAM,GAAM,EAAa,OAAO,GAAI,EAAe,EAAa,UAAU,EAAE,GAAG,CAAC,MAAM,CAAO,EAAe,EAAa,EAAI,CAAC,EAAM,KAAK,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAY,CAAC,EAAI,SAAS,GAAgB,CAAC,IAAM,EAAI,IAAI,KAAW,EAAQ,EAAI,YAAY,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAuC,MAAM,GAAhC,EAAI,UAAU,CAAC,UAAU,CAAgB,GAAG,IAAW,SAAgB,EAAS,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAY,GAAgBC,EAAS,GAAgB,CAAC,CAAoI,OAAnI,MAAc,CAAC,IAAM,EAAW,gBAAgB,CAAC,EAAe,GAAgB,CAAC,EAAG,IAAI,CAAC,UAAU,cAAc,EAAW,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC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