{"version":3,"file":"Skip_to_content.CQSHZbJW.mjs","names":[],"sources":["https:/framerusercontent.com/modules/LFeHUVvII3jqeMQLNZw4/QxKZFMkObVwhAbc00Rhh/dXH9AIHnp.js","https:/framerusercontent.com/modules/r8iLXO8ynYwi3HcQPuCm/FkJjyNhul3uGGMsZeQNI/Skip_to_content.js"],"sourcesContent":["// Generated by Framer (7d51cf8)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-iYuqG .framer-styles-preset-lwo8dv:not(.rich-text-wrapper), .framer-iYuqG .framer-styles-preset-lwo8dv.rich-text-wrapper a { --framer-link-current-text-color: #111111; --framer-link-current-text-decoration: underline; --framer-link-hover-text-color: #000000; --framer-link-hover-text-decoration: underline; --framer-link-text-color: var(--token-98fee9b2-6984-47c5-b3e6-0bf6029b4480, #2f4854); --framer-link-text-decoration: none; }\"];export const className=\"framer-iYuqG\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";export default function SkipToContent(props){const[focus,setFocus]=useState(false);const handleClick=e=>{e.preventDefault();const target=document.querySelector(\"h1\");if(target){// Ensure it's focusable\nconst hadTabIndex=target.hasAttribute(\"tabindex\");if(!hadTabIndex)target.setAttribute(\"tabindex\",\"-1\");target.focus();// Remove tabindex after blur if it was added temporarily\nif(!hadTabIndex){target.addEventListener(\"blur\",()=>{target.removeAttribute(\"tabindex\");},{once:true});}}};return /*#__PURE__*/_jsx(\"a\",{style:{height:focus?\"auto\":\"1px\",width:focus?\"auto\":\"1px\",outline:focus?\"2px solid black\":\"none\",padding:focus?\"0.5em 1em\":\"0\",background:\"white\",...skipToContentStyle},href:\"#\",onClick:handleClick,onFocus:()=>setFocus(true),onBlur:()=>setFocus(false),children:props.text});}const skipToContentStyle={display:\"block\",overflow:\"hidden\",textDecoration:\"none\"};addPropertyControls(SkipToContent,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Skoči na vsebino\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SkipToContent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Skip_to_content.map"],"mappings":"oSACmkB,AAAnkB,GAA8B,GAAU,UAAU,CAAE,EAAC,CAAc,EAAM,CAAC,CAAC,eAAc,EAAK,MAAM,CAAE,CAAE,CAAA,EAAc,EAAI,CAAC,ybAA0b,EAAc,EAAU,iBCDld,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,EAAM,EAAS,CAAC,GAAS,EAAM,CAAO,EAAY,GAAG,CAAC,EAAE,gBAAgB,CAAC,IAAM,EAAO,SAAS,cAAc,KAAK,CAAC,GAAG,EAAO,CAC3S,IAAM,EAAY,EAAO,aAAa,WAAW,CACjD,AADsD,GAAY,EAAO,aAAa,WAAW,KAAK,CAAC,EAAO,OAAO,CACjH,GAAa,EAAO,iBAAiB,OAAO,IAAI,CAAC,EAAO,gBAAgB,WAAW,AAAE,EAAC,CAAC,MAAK,CAAK,EAAC,AAAG,CAAC,EAAC,MAAoB,GAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAM,OAAO,MAAM,MAAM,EAAM,OAAO,MAAM,QAAQ,EAAM,kBAAkB,OAAO,QAAQ,EAAM,YAAY,IAAI,WAAW,QAAQ,GAAG,CAAmB,EAAC,KAAK,IAAI,QAAQ,EAAY,QAAQ,IAAI,GAAS,EAAK,CAAC,OAAO,IAAI,GAAS,EAAM,CAAC,SAAS,EAAM,IAAK,EAAC,AAAE,gBAAmF,AAF/e,GAA2C,IAAoD,IAA4B,CAEuS,EAAmB,CAAC,QAAQ,QAAQ,SAAS,SAAS,eAAe,MAAO,EAAC,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,kBAAmB,CAAC,EAAC"}