{"version":3,"file":"shared-lib.CU3r64RG.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/xtP0JtYaaW0CGDqlnmBO/aiv5QOVQ8ls0aqEAy9tf/Date_and_Time.js","https:/framerusercontent.com/modules/u9IQ7nk3mFCH8P2eCgIT/De6MjPLtxNvqW9OfoNiN/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 80\n */export default function DateTimeDisplay(props){const{layout,timeFormat,dateFormat,showSeconds,separator,font,textColor,textAlign,style}=props;const[currentTime,setCurrentTime]=useState(new Date);useEffect(()=>{const interval=setInterval(()=>{setCurrentTime(new Date);},1e3);return()=>clearInterval(interval);},[]);const formatTime=()=>{const hours=currentTime.getHours();const minutes=currentTime.getMinutes();const seconds=currentTime.getSeconds();if(timeFormat===\"12hr\"){const displayHours=hours%12||12;const ampm=hours>=12?\"PM\":\"AM\";const formattedMinutes=minutes.toString().padStart(2,\"0\");const formattedSeconds=seconds.toString().padStart(2,\"0\");if(showSeconds){return`${displayHours}:${formattedMinutes}:${formattedSeconds} ${ampm}`;}return`${displayHours}:${formattedMinutes} ${ampm}`;}else{const formattedHours=hours.toString().padStart(2,\"0\");const formattedMinutes=minutes.toString().padStart(2,\"0\");const formattedSeconds=seconds.toString().padStart(2,\"0\");if(showSeconds){return`${formattedHours}:${formattedMinutes}:${formattedSeconds}`;}return`${formattedHours}:${formattedMinutes}`;}};const formatDate=()=>{const days=[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"];const shortDays=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"];const months=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"];const shortMonths=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];const dayName=days[currentTime.getDay()];const shortDayName=shortDays[currentTime.getDay()];const day=currentTime.getDate();const month=currentTime.getMonth();const year=currentTime.getFullYear();switch(dateFormat){case\"full\":return`${dayName}, ${months[month]} ${day}, ${year}`;case\"short\":return`${shortMonths[month]} ${day}, ${year}`;case\"dayMonth\":return`${day} ${shortMonths[month]} ${year}`;case\"numeric\":return`${(month+1).toString().padStart(2,\"0\")}/${day.toString().padStart(2,\"0\")}/${year}`;case\"iso\":return`${year}-${(month+1).toString().padStart(2,\"0\")}-${day.toString().padStart(2,\"0\")}`;case\"dotFormat\":return`${day.toString().padStart(2,\"0\")}.${(month+1).toString().padStart(2,\"0\")}.${year}`;case\"dayShort\":return`${shortDayName}, ${shortMonths[month]} ${day}`;case\"monthDay\":return`${months[month]} ${day}`;case\"dayMonthShort\":return`${day} ${shortMonths[month]}`;default:return`${months[month]} ${day}, ${year}`;}};const getSeparator=()=>{switch(separator){case\"dash\":return\" - \";case\"pipe\":return\" | \";case\"dot\":return\" • \";case\"comma\":return\", \";case\"space\":return\"  \";case\"at\":return\" at \";default:return\" - \";}};const renderContent=()=>{if(layout===\"oneLine\"){return /*#__PURE__*/_jsxs(\"div\",{style:{...font,color:textColor,whiteSpace:\"nowrap\"},children:[formatTime(),getSeparator(),formatDate()]});}else{return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{...font,color:textColor,whiteSpace:\"nowrap\"},children:formatTime()}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:font.fontFamily,fontSize:`${parseInt(font.fontSize)*.5}px`,fontWeight:font.fontWeight,color:textColor,opacity:.7,whiteSpace:\"nowrap\",letterSpacing:font.letterSpacing,lineHeight:font.lineHeight},children:formatDate()})]});}};return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",flexDirection:\"column\",alignItems:textAlign===\"left\"?\"flex-start\":textAlign===\"right\"?\"flex-end\":\"center\",justifyContent:\"center\",gap:layout===\"oneLine\"?\"0px\":\"8px\",padding:\"20px\"},children:renderContent()});}DateTimeDisplay.defaultProps={layout:\"twoLines\",timeFormat:\"12hr\",dateFormat:\"dayMonth\",showSeconds:true,separator:\"dash\",font:{fontFamily:\"Inter\",fontSize:\"48px\",fontWeight:\"600\",lineHeight:\"1.2em\",letterSpacing:\"0em\"},textColor:\"#000000\",textAlign:\"center\"};addPropertyControls(DateTimeDisplay,{layout:{type:ControlType.Enum,title:\"Layout\",options:[\"oneLine\",\"twoLines\"],optionTitles:[\"One Line\",\"Two Lines\"],defaultValue:\"twoLines\",displaySegmentedControl:true},timeFormat:{type:ControlType.Enum,title:\"Time Format\",options:[\"12hr\",\"24hr\"],optionTitles:[\"12 Hour\",\"24 Hour\"],defaultValue:\"12hr\",displaySegmentedControl:true},showSeconds:{type:ControlType.Boolean,title:\"Show Seconds\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},dateFormat:{type:ControlType.Enum,title:\"Date Format\",options:[\"full\",\"short\",\"dayMonth\",\"numeric\",\"iso\",\"dotFormat\",\"dayShort\",\"monthDay\",\"dayMonthShort\"],optionTitles:[\"Monday, January 15, 2024\",\"Jan 15, 2024\",\"15 Jan 2024\",\"01/15/2024\",\"2024-01-15\",\"15.01.2024\",\"Mon, Jan 15\",\"January 15\",\"15 Jan\"],defaultValue:\"dayMonth\"},separator:{type:ControlType.Enum,title:\"Separator\",options:[\"dash\",\"pipe\",\"dot\",\"comma\",\"space\",\"at\"],optionTitles:[\" - \",\" | \",\" • \",\", \",\"  \",\" at \"],defaultValue:\"dash\",hidden:props=>props.layout!==\"oneLine\"},font:{type:ControlType.Font,title:\"Typography\",controls:\"extended\",defaultValue:{fontFamily:\"Inter\",fontSize:\"48px\",fontWeight:\"600\",lineHeight:\"1.2em\",letterSpacing:\"0em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},textAlign:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\",displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DateTimeDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"80\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Date_and_Time.map","// Generated by Framer (18229b5)\nexport default function metadata(params,activeLocale){return{description:\"K\\xe4lte is a research-driven boutique CGI studio unlocking product visual potential for agencies and forward-thinking brands.\",favicon:\"https://framerusercontent.com/assets/QRAeGEpmN1xoVcVATFO7dtwiCc.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/0aHCUS1okTdxYbMMNfOUt1I7A2U.png\",title:\"K\\xe4lte Studio | Boutique CGI Studio for Campaign Visuals & Moving Images\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qLAMG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,SAAO,aAAW,aAAW,cAAY,YAAU,OAAK,YAAU,YAAU,SAAO,EAAW,CAAC,EAAY,GAAgBA,EAAS,IAAI,KAAK,CAAC,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,EAAe,IAAI,KAAK,EAAG,IAAI,CAAC,UAAU,cAAc,EAAS,EAA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