{"version":3,"file":"shared-lib.DIRizOYh.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/27jT62CCcsmlvSdRhikv/YNudAJyU1QurPGDhyy90/BackToTopButton.js","https:/framerusercontent.com/modules/dvvcIwOQnt8mPA1bAfV7/DquptNRvPYSGqQpSOoWv/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";/**\n * Back To Top Button (self-positioning)\n *\n * Renders a circular button pinned to a corner of the browser viewport\n * using CSS position: fixed set directly in this component's own\n * styles (not via the Framer layer), so it always sits above every\n * other layer and never depends on Framer's layer nesting/z-index\n * rules. It fades in once the page has been scrolled past\n * \"Scroll Threshold\" pixels, and smoothly scrolls back to the top\n * when clicked.\n *\n * Place one instance anywhere on the page canvas - its on-screen\n * position is controlled entirely by the Side / Offset X / Offset Y\n * property controls below, not by where you drag it in Framer.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackToTopButton(props){const{threshold=500,backgroundColor=\"rgb(5, 37, 105)\",ringColor=\"rgb(255, 255, 255)\",side=\"right\",offsetX=35,offsetY=25,size=56}=props;const[visible,setVisible]=useState(false);useEffect(()=>{const onScroll=()=>setVisible(window.scrollY>threshold);onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[threshold]);return /*#__PURE__*/_jsx(\"div\",{onClick:()=>window.scrollTo({top:0,behavior:\"smooth\"}),style:{position:\"fixed\",bottom:offsetY,[side]:offsetX,width:size,height:size,borderRadius:\"50%\",backgroundColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",boxSizing:\"border-box\",zIndex:999999,opacity:visible?1:0,transform:visible?\"scale(1)\":\"scale(0.85)\",pointerEvents:visible?\"auto\":\"none\",transition:\"opacity 0.25s ease, transform 0.25s ease\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:39,height:38,borderRadius:999,border:`2px solid ${ringColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxSizing:\"border-box\",flexShrink:0},children:/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:\"Onest, sans-serif\",fontWeight:600,fontSize:16,color:ringColor,lineHeight:1},children:\"↑\"})})});}addPropertyControls(BackToTopButton,{threshold:{type:ControlType.Number,title:\"Scroll Threshold\",defaultValue:500,min:0,max:2e3,step:10},side:{type:ControlType.Enum,title:\"Side\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"right\"},offsetX:{type:ControlType.Number,title:\"Offset X\",defaultValue:35,min:0,max:300,step:1},offsetY:{type:ControlType.Number,title:\"Offset Y\",defaultValue:25,min:0,max:300,step:1},size:{type:ControlType.Number,title:\"Button Size\",defaultValue:56,min:20,max:200,step:1},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgb(5, 37, 105)\"},ringColor:{type:ControlType.Color,title:\"Ring / Icon Color\",defaultValue:\"rgb(255, 255, 255)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackToTopButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackToTopButton.map","// Generated by Framer (0a25121)\nconst valuesByLocaleId={e93LnZpf1:{v0:\"Geotech Consulting Engineers\",v1:\"Modern surveying and geoinformatics solutions. Hydrographic & topographic surveys, 3D scanning, photogrammetry, Mobile Mapping, and specialized geospatial applications.\"}};function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export default function metadata(params,activeLocale){return{description:getLocalizedValue(\"v1\",activeLocale)??\"Σύγχρονες λύσεις τοπογραφίας και γεωπληροφορικής. Υδρογραφικές & τοπογραφικές αποτυπώσεις, 3D scanning, φωτογραμμετρία, Mobile Mapping και εξειδικευμένες γεωχωρικές εφαρμογές.\",favicon:\"https://framerusercontent.com/assets/OPzUwxDP8hSR8hIbbphO35SeOmg.png\",robots:\"max-image-preview:large\",title:getLocalizedValue(\"v0\",activeLocale)??\"Geotech Consulting Engineers\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"+LAiBG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,YAAU,IAAI,kBAAgB,kBAAkB,YAAU,qBAAqB,OAAK,QAAQ,UAAQ,GAAG,UAAQ,GAAG,OAAK,IAAI,EAAW,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAqN,OAAnN,MAAc,CAAC,IAAM,MAAa,EAAW,EAAO,QAAQ,CAAS,EAAuE,OAArE,EAAS,EAAE,EAAO,iBAAiB,SAAS,EAAS,CAAC,QAAQ,EAAI,CAAC,MAAY,EAAO,oBAAoB,SAAS,CAAQ,CAAE,EAAE,CAAC,CAAS,CAAC,EAAsB,EAAK,MAAM,CAAC,YAAY,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,QAAQ,CAAC,EAAE,MAAM,CAAC,SAAS,QAAQ,OAAO,GAAS,GAAM,EAAQ,MAAM,EAAK,OAAO,EAAK,aAAa,MAAM,kBAAgB,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,UAAU,UAAU,aAAa,OAAO,OAAO,QAAQ,KAAY,UAAU,EAAQ,WAAW,cAAc,cAAc,EAAQ,OAAO,OAAO,WAAW,0CAA0C,EAAE,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,GAAG,aAAa,IAAI,OAAO,aAAa,IAAY,QAAQ,OAAO,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