{"version":3,"file":"Scroll_height.Cjop90k4.mjs","names":["useState","useRef","__legacyOverrideHOC_DataObserverContext","_jsx","__esmMin","init_npm_react_18_3_1","oe","ce","c","init_jsx_runtime","_e","de","useTransform","useScroll","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_DcGZRLrs","ControlType","DataObserverContext","cityName","zone","customZone","ZONES","item","formatClock","timeZone","hour12","showSeconds","date","DigitalClock","props","now","setNow","id","time","hourFormat","label","showCity","align","font","style","init_Digitalclock","ScrollHeightOverride","ref","scrollYProgress","withScrollHeightOverride","C","init_Scroll_height"],"sources":["https:/framerusercontent.com/modules/IT9qpSRNb4mfScPSbPR8/idUvDFVfn630FuefKyWT/Digitalclock.js","https:/framerusercontent.com/modules/6iGi8JUAtXTisgNsd8ro/OgxKE1lnCRp7JTDmv31m/Scroll_height.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const ZONES=[{id:\"Europe/London\",title:\"London\"},{id:\"Europe/Paris\",title:\"Paris\"},{id:\"Europe/Berlin\",title:\"Berlin\"},{id:\"Europe/Madrid\",title:\"Madrid\"},{id:\"Africa/Lagos\",title:\"Lagos\"},{id:\"Africa/Cairo\",title:\"Cairo\"},{id:\"Africa/Johannesburg\",title:\"Johannesburg\"},{id:\"Asia/Dubai\",title:\"Dubai\"},{id:\"Asia/Kolkata\",title:\"Mumbai\"},{id:\"Asia/Singapore\",title:\"Singapore\"},{id:\"Asia/Hong_Kong\",title:\"Hong Kong\"},{id:\"Asia/Tokyo\",title:\"Tokyo\"},{id:\"Australia/Sydney\",title:\"Sydney\"},{id:\"Pacific/Auckland\",title:\"Auckland\"},{id:\"America/New_York\",title:\"New York\"},{id:\"America/Chicago\",title:\"Chicago\"},{id:\"America/Denver\",title:\"Denver\"},{id:\"America/Los_Angeles\",title:\"Los Angeles\"},{id:\"America/Toronto\",title:\"Toronto\"},{id:\"America/Sao_Paulo\",title:\"S\\xe3o Paulo\"},{id:\"UTC\",title:\"UTC\"},{id:\"custom\",title:\"Custom\"}];function cityName(zone,customZone){if(zone===\"custom\"){const part=(customZone||\"UTC\").split(\"/\").pop()||\"UTC\";return part.replace(/_/g,\" \");}return ZONES.find(item=>item.id===zone)?.title||\"London\";}function formatClock(date,timeZone,hour12,showSeconds){try{return new Intl.DateTimeFormat(\"en-US\",{timeZone:timeZone||\"UTC\",hour:hour12?\"numeric\":\"2-digit\",minute:\"2-digit\",second:showSeconds?\"2-digit\":undefined,hour12}).format(date);}catch{return\"--:--\";}}/**\n * Live city clock. Defaults to the orange London bar.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 420\n * @framerIntrinsicHeight 72\n */export default function DigitalClock(props){const{zone=\"Europe/London\",customZone=\"Europe/London\",showCity=true,hourFormat=\"12h\",showSeconds=false,font={},fontSize=28,color=\"#FFFFFF\",background=\"#FF4D00\",borderRadius=\"0px\",padding=\"0px 28px\",style}=props;const[now,setNow]=useState(()=>new Date);useEffect(()=>{const id=setInterval(()=>setNow(new Date),1e3);return()=>clearInterval(id);},[]);const timeZone=zone===\"custom\"?customZone:zone;const time=formatClock(now,timeZone,hourFormat===\"12h\",showSeconds);const label=showCity?`${cityName(zone,customZone)} ${time}`:time;const align=font.textAlign||\"left\";return /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",alignItems:\"center\",justifyContent:align===\"center\"?\"center\":align===\"right\"?\"flex-end\":\"flex-start\",background,borderRadius,padding,boxSizing:\"border-box\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"span\",{style:{...font,fontSize,color,margin:0,whiteSpace:\"nowrap\",fontVariantNumeric:\"tabular-nums\",textAlign:align},children:label})});}DigitalClock.defaultProps={zone:\"Europe/London\",customZone:\"Europe/London\",showCity:true,hourFormat:\"12h\",showSeconds:false,fontSize:28,color:\"#FFFFFF\",background:\"#FF4D00\",borderRadius:\"0px\",padding:\"0px 28px\"};addPropertyControls(DigitalClock,{zone:{type:ControlType.Enum,title:\"Zone\",options:ZONES.map(item=>item.id),optionTitles:ZONES.map(item=>item.title),defaultValue:\"Europe/London\"},customZone:{type:ControlType.String,title:\"IANA Zone\",defaultValue:\"Europe/London\",placeholder:\"Europe/London\",description:\"Example: America/New_York\",hidden:props=>props.zone!==\"custom\"},showCity:{type:ControlType.Boolean,title:\"City\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:true},hourFormat:{type:ControlType.Enum,title:\"Format\",options:[\"12h\",\"24h\"],optionTitles:[\"12h\",\"24h\"],displaySegmentedControl:true,defaultValue:\"12h\"},showSeconds:{type:ControlType.Boolean,title:\"Seconds\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:false,displayTextAlignment:true,defaultFontType:\"sans-serif\",defaultValue:{variant:\"Medium\",letterSpacing:\"-0.02em\",lineHeight:\"1em\",textAlign:\"left\"}},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:28,min:8,max:240,step:1,unit:\"px\",displayStepper:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFFFFF\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FF4D00\"},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"0px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"0px 28px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DigitalClock\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"72\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"420\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Digitalclock.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";import{useScroll,useTransform}from\"framer-motion\";export function ScrollHeightOverride(){const ref=useRef(null);const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"start 0.2\"]});const height=useTransform(scrollYProgress,[0,1],[100,0]);return{ref,style:{height,overflow:\"hidden\"}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withScrollHeightOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ScrollHeightOverride(props)});};}withScrollHeightOverride.displayName=\"ScrollHeightOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"ScrollHeightOverride\":{\"type\":\"override\",\"name\":\"ScrollHeightOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollHeightOverride\":{\"type\":\"reactHoc\",\"name\":\"withScrollHeightOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll_height.map"],"mappings":"A,8PAAq8B,SAASmB,EAAS,EAAK,EAAW,CAA2G,OAAvGC,IAAO,WAAsBC,GAAY,MAAA,CAAO,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,MAAA,CAAkB,QAAQ,KAAK,GAAG,EAAUC,EAAM,KAAK,GAAMC,EAAK,KAAKH,CAAI,CAAC,EAAE,OAAO,QAAS,CAAC,SAASI,EAAY,EAAK,EAAS,EAAO,EAAY,CAAC,GAAG,CAAC,OAAO,IAAI,KAAK,eAAe,QAAQ,CAAC,SAASC,GAAU,MAAM,KAAKC,EAAO,UAAU,UAAU,OAAO,UAAU,OAAOC,EAAY,UAAU,IAAA,GAAU,QAAM,CAAC,CAAC,CAAC,OAAOC,CAAI,CAAE,MAAM,CAAC,MAAM,OAAQ,CAAC,CAOz4C,SAAwBC,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,gBAAgB,aAAW,gBAAgB,WAAS,GAA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