{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/vgfvsNQkNmYiGpJBUIkD/OV3GIbWpMp6pbFwvd25w/Tab_title_changer.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";addPropertyControls(TabTitleChangerFramer,{currentTabTitle:{type:ControlType.String,title:\"Current Tab Title\",description:\"If empty, it will fallback to the default page title\",defaultValue:\"\"},awayTabTitle:{type:ControlType.String,title:\"Away Tab Title\",defaultValue:\"We already miss you!\u2764\uFE0F\"}});/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicHeight 0\n * @framerIntrinsicWidth 0\n * @framerDisableUnlink\n */export default function TabTitleChangerFramer(props){const initialTitle=typeof document!==\"undefined\"&&document.title?document.title:\"\";const[title,setTitle]=useState(props.currentTabTitle?props.currentTabTitle:initialTitle);function tabTitleChanger(){if(document.hidden){setTitle(document.title);document.title=props.awayTabTitle;}else{document.title=title;}}useEffect(()=>{document.title=title;document.addEventListener(\"visibilitychange\",tabTitleChanger);return()=>{document.removeEventListener(\"visibilitychange\",tabTitleChanger);};},[]);return /*#__PURE__*/_jsx(\"div\",{style:{opacity:0}});}TabTitleChangerFramer.displayName=\"TAB TITLE CHANGER - BACHOFF STUDIO\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TabTitleChangerFramer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"0\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"0\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Tab_title_changer.map"],
  "mappings": "qEAAqIA,EAAoBC,EAAsB,CAAC,gBAAgB,CAAC,KAAKC,EAAY,OAAO,MAAM,oBAAoB,YAAY,uDAAuD,aAAa,EAAE,EAAE,aAAa,CAAC,KAAKA,EAAY,OAAO,MAAM,iBAAiB,aAAa,kCAAwB,CAAC,CAAC,EAMzZ,SAARD,EAAuCE,EAAM,CAAC,IAAMC,EAAa,OAAO,SAAW,KAAa,SAAS,MAAM,SAAS,MAAM,GAAQ,CAACC,EAAMC,CAAQ,EAAEC,EAASJ,EAAM,gBAAgBA,EAAM,gBAAgBC,CAAY,EAAE,SAASI,GAAiB,CAAI,SAAS,QAAQF,EAAS,SAAS,KAAK,EAAE,SAAS,MAAMH,EAAM,cAAmB,SAAS,MAAME,CAAO,CAAC,OAAAI,EAAU,KAAK,SAAS,MAAMJ,EAAM,SAAS,iBAAiB,mBAAmBG,CAAe,EAAQ,IAAI,CAAC,SAAS,oBAAoB,mBAAmBA,CAAe,CAAE,GAAI,CAAC,CAAC,EAAsBE,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAE,CAACT,EAAsB,YAAY",
  "names": ["addPropertyControls", "TabTitleChangerFramer", "ControlType", "props", "initialTitle", "title", "setTitle", "ye", "tabTitleChanger", "ue", "p"]
}
