{"version":3,"file":"Skip_to_content.C7ADXKXe.mjs","names":["useState"],"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":"wSAC8B,GAAU,UAAU,EAAE,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,EAAE,CAAC,CAAC,CAAc,EAAI,CAAC,0bAA0b,CAAc,EAAU,kBCDld,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,GAAM,CAAO,EAAY,GAAG,CAAC,EAAE,gBAAgB,CAAC,IAAM,EAAO,SAAS,cAAc,KAAK,CAAC,GAAG,EAAO,CAC3S,IAAM,EAAY,EAAO,aAAa,WAAW,CAAK,GAAY,EAAO,aAAa,WAAW,KAAK,CAAC,EAAO,OAAO,CACjH,GAAa,EAAO,iBAAiB,WAAW,CAAC,EAAO,gBAAgB,WAAW,EAAG,CAAC,KAAK,GAAK,CAAC,GAAK,OAAoB,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAM,OAAO,MAAM,MAAM,EAAM,OAAO,MAAM,QAAQ,EAAM,kBAAkB,OAAO,QAAQ,EAAM,YAAY,IAAI,WAAW,QAAQ,GAAG,EAAmB,CAAC,KAAK,IAAI,QAAQ,EAAY,YAAY,EAAS,GAAK,CAAC,WAAW,EAAS,GAAM,CAAC,SAAS,EAAM,KAAK,CAAC,oBAF/W,IAAoD,IAA4B,CAEuS,EAAmB,CAAC,QAAQ,QAAQ,SAAS,SAAS,eAAe,OAAO,CAAC,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,mBAAmB,CAAC,CAAC"}