{"version":3,"file":"LocalDate.BYuCUTFC.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image1","useState"],"sources":["https:/framerusercontent.com/modules/PYEljyONFq1TWrVBYLHH/q46FgTFBGxI5V1ekxhqz/yg8i2AQN5.js","https:/framerusercontent.com/modules/nlDVjowELI4cz3GT4Ms7/V0aoDh56skDQu8gIrUD9/LocalDate.js"],"sourcesContent":["// Generated by Framer (d1bc2d2)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image as Image1,Link,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"ICRIhNKQp\",\"IZZDB2Lfq\"];const serializationHash=\"framer-la7om\";const variantClassNames={ICRIhNKQp:\"framer-v-ya669u\",IZZDB2Lfq:\"framer-v-r3re0x\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const vPCa9ITV9=undefined;const gdqfD9HFu=undefined;const gq0249iC6=undefined;const oKBBQHdgL=undefined;const qLj6xo_b1=undefined;const toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}:undefined;};const transition1={bounce:.7,delay:0,duration:1.3,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={\"Variant 1\":\"ICRIhNKQp\",\"Variant 2\":\"IZZDB2Lfq\"};const Variants=motion.create(React.Fragment);const getProps=({click,height,hover,id,image,link,newTab,width,...props})=>{return{...props,gdqfD9HFu:click??props.gdqfD9HFu,gq0249iC6:hover??props.gq0249iC6,oKBBQHdgL:link??props.oKBBQHdgL,qLj6xo_b1:newTab??props.qLj6xo_b1,variant:humanReadableVariantMap[props.variant]??props.variant??\"ICRIhNKQp\",vPCa9ITV9:image??props.vPCa9ITV9??{alt:\"\",pixelHeight:896,pixelWidth:1200,src:\"https://framerusercontent.com/images/szTzFUdcLlDep6u3eE5oEaoBIE.jpeg?width=1200&height=896\",srcSet:\"https://framerusercontent.com/images/szTzFUdcLlDep6u3eE5oEaoBIE.jpeg?scale-down-to=512&width=1200&height=896 512w,https://framerusercontent.com/images/szTzFUdcLlDep6u3eE5oEaoBIE.jpeg?scale-down-to=1024&width=1200&height=896 1024w,https://framerusercontent.com/images/szTzFUdcLlDep6u3eE5oEaoBIE.jpeg?width=1200&height=896 1200w\"}};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,vPCa9ITV9,oKBBQHdgL,gq0249iC6,gdqfD9HFu,qLj6xo_b1,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"ICRIhNKQp\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1ckl608=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(gdqfD9HFu){const res=await gdqfD9HFu(...args);if(res===false)return false;}});const onMouseEnterg0uk0u=activeVariantCallback(async(...args)=>{setGestureState({isHovered:true});if(gq0249iC6){const res=await gq0249iC6(...args);if(res===false)return false;}setVariant(\"IZZDB2Lfq\");});const onMouseEnterzf2c54=activeVariantCallback(async(...args)=>{setGestureState({isHovered:true});if(gq0249iC6){const res=await gq0249iC6(...args);if(res===false)return false;}});const onMouseLeave14homi7=activeVariantCallback(async(...args)=>{setGestureState({isHovered:false});setVariant(\"ICRIhNKQp\");});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:oKBBQHdgL,motionChild:true,nodeId:\"ICRIhNKQp\",openInNewTab:qLj6xo_b1,scopeId:\"yg8i2AQN5\",children:/*#__PURE__*/_jsx(Image1,{...restProps,...gestureHandlers,as:\"a\",background:{alt:\"\",fit:\"fill\",intrinsicHeight:896,intrinsicWidth:1200,loading:getLoadingLazyAtYPosition(componentViewport?.y||0),pixelHeight:896,pixelWidth:1200,sizes:componentViewport?.width||\"100vw\",...toResponsiveImage(vPCa9ITV9)},className:`${cx(scopingClassNames,\"framer-ya669u\",className,classNames)} framer-1xvjlt2`,\"data-framer-name\":\"Variant 1\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"ICRIhNKQp\",onMouseEnter:onMouseEnterg0uk0u,onTap:onTap1ckl608,ref:refBinding,style:{filter:\"none\",WebkitFilter:\"none\",...style},variants:{IZZDB2Lfq:{filter:\"blur(2px)\",WebkitFilter:\"blur(2px)\"}},...addPropertyOverrides({IZZDB2Lfq:{\"data-framer-name\":\"Variant 2\",onMouseEnter:onMouseEnterzf2c54,onMouseLeave:onMouseLeave14homi7}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-la7om.framer-1xvjlt2, .framer-la7om .framer-1xvjlt2 { display: block; }\",\".framer-la7om.framer-ya669u { cursor: pointer; height: 270px; overflow: var(--overflow-clip-fallback, clip); position: relative; text-decoration: none; width: 270px; will-change: var(--framer-will-change-filter-override, filter); }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 270\n * @framerIntrinsicWidth 270\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"IZZDB2Lfq\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"vPCa9ITV9\":\"image\",\"oKBBQHdgL\":\"link\",\"gq0249iC6\":\"hover\",\"gdqfD9HFu\":\"click\",\"qLj6xo_b1\":\"newTab\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Frameryg8i2AQN5=withCSS(Component,css,\"framer-la7om\");export default Frameryg8i2AQN5;Frameryg8i2AQN5.displayName=\"Home tile\";Frameryg8i2AQN5.defaultProps={height:270,width:270};addPropertyControls(Frameryg8i2AQN5,{variant:{options:[\"ICRIhNKQp\",\"IZZDB2Lfq\"],optionTitles:[\"Variant 1\",\"Variant 2\"],title:\"Variant\",type:ControlType.Enum},vPCa9ITV9:{__defaultAssetReference:\"data:framer/asset-reference,szTzFUdcLlDep6u3eE5oEaoBIE.jpeg?originalFilename=Change_skin_to_African_tone_202606081100.jpeg&width=1200&height=896\",__vekterDefault:{alt:\"\",assetReference:\"data:framer/asset-reference,szTzFUdcLlDep6u3eE5oEaoBIE.jpeg?originalFilename=Change_skin_to_African_tone_202606081100.jpeg&width=1200&height=896\"},title:\"Image\",type:ControlType.ResponsiveImage},oKBBQHdgL:{title:\"Link\",type:ControlType.Link},gq0249iC6:{title:\"Hover\",type:ControlType.EventHandler},gdqfD9HFu:{title:\"Click\",type:ControlType.EventHandler},qLj6xo_b1:{defaultValue:false,title:\"New Tab\",type:ControlType.Boolean},onqLj6xo_b1Change:{changes:\"qLj6xo_b1\",type:ControlType.ChangeHandler}});addFonts(Frameryg8i2AQN5,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Frameryg8i2AQN5\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"270\",\"framerVariables\":\"{\\\"vPCa9ITV9\\\":\\\"image\\\",\\\"oKBBQHdgL\\\":\\\"link\\\",\\\"gq0249iC6\\\":\\\"hover\\\",\\\"gdqfD9HFu\\\":\\\"click\\\",\\\"qLj6xo_b1\\\":\\\"newTab\\\"}\",\"framerIntrinsicHeight\":\"270\",\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"IZZDB2Lfq\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./yg8i2AQN5.map","// Responsive text component displaying current local date with automatic midnight updates\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Local Date Display\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function LocalDate(props){const{textColor,font,locale}=props;const[currentDate,setCurrentDate]=useState(\"\");useEffect(()=>{// Function to format the current date\nconst updateDate=()=>{const now=new Date;const options={weekday:\"long\",month:\"long\",day:\"numeric\"};const formatted=now.toLocaleDateString(locale,options);startTransition(()=>setCurrentDate(formatted));};// Initial date set\nupdateDate();// Calculate milliseconds until next midnight\nconst now=new Date;const tomorrow=new Date(now);tomorrow.setHours(24,0,0,0);const msUntilMidnight=tomorrow.getTime()-now.getTime();// Set timeout for midnight, then interval for subsequent days\nconst midnightTimeout=setTimeout(()=>{updateDate();// Set up daily interval after first midnight\nconst dailyInterval=setInterval(updateDate,24*60*60*1e3);return()=>clearInterval(dailyInterval);},msUntilMidnight);return()=>clearTimeout(midnightTimeout);},[locale]);const isFixedWidth=props?.style&&props.style.width===\"100%\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",display:\"flex\",alignItems:\"center\",minWidth:5,minHeight:5,...isFixedWidth?{}:{width:\"max-content\"}},children:/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,...font,whiteSpace:\"nowrap\",width:\"max-content\"},children:currentDate})});}addPropertyControls(LocalDate,{locale:{type:ControlType.String,title:\"Locale\",defaultValue:\"en-US\",placeholder:\"e.g., fr-FR, de-DE, ja-JP\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocalDate\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocalDate.map"],"mappings":"4WAC0gB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,2CAAvoB,IAAmM,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,CAAgU,EAAkB,GAAW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