{"version":3,"file":"LocalTime.BPTx4dmZ.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/l3ZEudXrgzRcLcOeeIU4/eEhAGyy8PNsY442rCJcY/LocalTime.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */function LineReveal({children,index,animate,duration,delayBetween,initialDelay,textStyle}){if(!animate){return /*#__PURE__*/_jsx(\"div\",{children:children});}return /*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\",lineHeight:textStyle?.lineHeight||\"1.2em\"},children:/*#__PURE__*/_jsx(motion.div,{initial:{y:\"110%\"},animate:{y:\"0%\"},transition:{duration,delay:initialDelay+index*delayBetween,ease:[.22,1,.36,1]},children:children})});}export default function StudioLocation(props){const{studioName,location,timezone,footerText,textStyle,textColor,gap,animateLines,animationDuration,lineDelay,initialDelay}=props;const[time,setTime]=React.useState(\"\");const isCanvas=RenderTarget.current()===RenderTarget.canvas;React.useEffect(()=>{const updateTime=()=>{const currentTime=new Intl.DateTimeFormat(\"en-US\",{timeZone:timezone,hour:\"2-digit\",minute:\"2-digit\",hour12:false}).format(new Date);setTime(currentTime);};updateTime();const interval=setInterval(updateTime,1e3);return()=>clearInterval(interval);},[timezone]);const lines=[studioName,location,\"\",`${time} (UTC -5)`,footerText];return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",color:textColor,...textStyle},children:lines.map((line,index)=>{if(line===\"\"){return /*#__PURE__*/_jsx(\"div\",{style:{height:gap}},index);}return /*#__PURE__*/_jsx(LineReveal,{index:index,animate:animateLines&&!isCanvas,duration:animationDuration,delayBetween:lineDelay,initialDelay:initialDelay,textStyle:textStyle,children:line},index);})});}StudioLocation.defaultProps={studioName:\"SECUAZ.Studio\",location:\"Medell\\xedn, COL\",timezone:\"America/Bogota\",footerText:\"Working Worldwide\",gap:12,textColor:\"#000000\",textStyle:{fontFamily:\"Helvetica Neue\",fontWeight:400,fontSize:14,lineHeight:\"1.2em\",letterSpacing:\"0em\"},animateLines:true,animationDuration:.7,lineDelay:.08,initialDelay:0};addPropertyControls(StudioLocation,{studioName:{type:ControlType.String,title:\"Studio\",defaultValue:\"SECUAZ.Studio\"},location:{type:ControlType.String,title:\"Location\",defaultValue:\"Medell\\xedn, COL\"},timezone:{type:ControlType.String,title:\"Timezone\",defaultValue:\"America/Bogota\"},footerText:{type:ControlType.String,title:\"Footer\",defaultValue:\"Working Worldwide\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:100,step:1},textStyle:{type:ControlType.Font,title:\"Text Style\",controls:\"extended\"},textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},animateLines:{type:ControlType.Boolean,title:\"Animation\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},animationDuration:{type:ControlType.Number,title:\"Duration\",defaultValue:.7,min:.1,max:3,step:.05,hidden:props=>!props.animateLines},lineDelay:{type:ControlType.Number,title:\"Line Delay\",defaultValue:.08,min:0,max:1,step:.01,hidden:props=>!props.animateLines},initialDelay:{type:ControlType.Number,title:\"Initial Delay\",defaultValue:0,min:0,max:5,step:.05,hidden:props=>!props.animateLines}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StudioLocation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocalTime.map"],"mappings":"yOAGG,SAAS,EAAW,CAAC,WAAS,QAAM,UAAQ,WAAS,eAAa,eAAa,aAAW,CAAmE,OAA9D,EAAkF,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,SAAS,WAAW,GAAW,YAAY,QAAQ,CAAC,SAAsB,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,OA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