{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/BnJkzjzhcxYfJqDknfjT/kY07fwzu5DMY1HXFUpx3/Nofollow.js", "ssg:https://framer.com/m/framer/store.js@^1.0.0"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// \u042D\u0442\u043E\u0442 Override \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0435\u0442 rel=\"nofollow\" \u043A\u043E \u0432\u0441\u0435\u043C \u0432\u043D\u0435\u0448\u043D\u0438\u043C \u0441\u0441\u044B\u043B\u043A\u0430\u043C,\n// \u043A\u0440\u043E\u043C\u0435 \u0442\u0435\u0445, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0435\u0434\u0443\u0442 \u043D\u0430 yung-sidekick.com \u0438\u043B\u0438 app.yung-sidekick.com\nexport function nofollowOverride(){useEffect(()=>{const EXCLUDED_DOMAINS=[\"yung-sidekick.com\",\"app.yung-sidekick.com\"];const links=document.querySelectorAll(\"a[href]\");links.forEach(link=>{const href=link.getAttribute(\"href\");// \u041F\u0440\u043E\u043F\u0443\u0441\u043A\u0430\u0435\u043C \u044F\u043A\u043E\u0440\u043D\u044B\u0435, \u043F\u043E\u0447\u0442\u043E\u0432\u044B\u0435 \u0438 \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u0441\u0441\u044B\u043B\u043A\u0438\nif(!href||href.startsWith(\"#\")||href.startsWith(\"mailto:\"))return;const isExternal=href.startsWith(\"http\")&&!href.includes(window.location.hostname);const isExcluded=EXCLUDED_DOMAINS.some(domain=>href.includes(domain));if(isExternal&&!isExcluded){const currentRel=link.getAttribute(\"rel\")||\"\";const relValues=currentRel.split(\" \").filter(Boolean);if(!relValues.includes(\"nofollow\")){relValues.push(\"nofollow\");link.setAttribute(\"rel\",relValues.join(\" \"));}}});},[]);// \u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043C \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u0447\u0435\u0440\u0435\u0437 props\nreturn{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withnofollowOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...nofollowOverride(props)});};}withnofollowOverride.displayName=\"nofollowOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"nofollowOverride\":{\"type\":\"override\",\"name\":\"nofollowOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnofollowOverride\":{\"type\":\"reactHoc\",\"name\":\"withnofollowOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Nofollow.map", "import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map"],
  "mappings": "8JAEO,SAASA,GAAkB,CAAC,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAiB,CAAC,oBAAoB,uBAAuB,EAAc,SAAS,iBAAiB,SAAS,EAAQ,QAAQC,GAAM,CAAC,IAAMC,EAAKD,EAAK,aAAa,MAAM,EAChO,GAAG,CAACC,GAAMA,EAAK,WAAW,GAAG,GAAGA,EAAK,WAAW,SAAS,EAAE,OAAO,IAAMC,EAAWD,EAAK,WAAW,MAAM,GAAG,CAACA,EAAK,SAASE,EAAO,SAAS,QAAQ,EAAQC,EAAWL,EAAiB,KAAKM,GAAQJ,EAAK,SAASI,CAAM,CAAC,EAAE,GAAGH,GAAY,CAACE,EAAW,CAA+C,IAAME,GAAnCN,EAAK,aAAa,KAAK,GAAG,IAA8B,MAAM,GAAG,EAAE,OAAO,OAAO,EAAMM,EAAU,SAAS,UAAU,IAAGA,EAAU,KAAK,UAAU,EAAEN,EAAK,aAAa,MAAMM,EAAU,KAAK,GAAG,CAAC,EAAG,CAAC,CAAC,CAAE,EAAE,CAAC,CAAC,EAC1c,CAAC,CAAE,CAA2J,SAASC,EAAqBC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAAS,EAAKH,EAAE,CAAC,GAAGC,EAAM,GAAGZ,EAAiBY,CAAK,CAAC,CAAC,EAAI,CAACF,EAAqB,YAAY,mBCJhS,SAASK,EAAYC,EAAO,CACjH,IAAMC,EAAUC,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAGF,CAAM,CAAC,CAAC,CAAC,EACjDG,EAAaC,GAAU,CAC1B,OAAOA,GAAW,aAAYA,EAASA,EAASH,EAAU,KAAK,GAAGA,EAAU,MAAM,OAAO,OAAO,CAAC,GAAGA,EAAU,MAAM,GAAGG,CAAQ,CAAC,CAAE,EACjIC,EAAW,OAAOL,GAAS,SAAS,OAAO,OAAO,CAAC,GAAGA,CAAM,CAAC,EAAEA,EAC7DM,EAAa,IAAI,IACjBC,EAAcH,GAAU,CAC3B,OAAOA,GAAW,aAAYA,EAASA,EAASC,CAAU,GAAGA,EAAW,OAAOD,GAAW,SAAS,OAAO,OAAO,CAAC,GAAGC,EAAW,GAAGD,CAAQ,CAAC,EAAEA,EACjJE,EAAa,QAAQE,GAAQA,EAAOH,CAAU,CAAC,CAAE,EACjD,SAASI,GAAU,CACnB,GAAK,CAACC,EAAMC,CAAQ,EAAEC,EAASP,CAAU,EAIzC,OAFAQ,EAAU,KACVP,EAAa,IAAIK,CAAQ,EAAQ,IAAIL,EAAa,OAAOK,CAAQ,GAAI,CAAC,CAAC,EACpEG,EAAe,IAAI,IAAMA,EAAe,EAAQ,CAACb,EAAU,MAAME,CAAY,GAC1E,CAACO,EAAMH,CAAa,CAAG,CAAC,OAAOE,CAAS",
  "names": ["nofollowOverride", "ue", "EXCLUDED_DOMAINS", "link", "href", "isExternal", "window", "isExcluded", "domain", "relValues", "withnofollowOverride", "C", "props", "re", "DataObserverContext", "createStore", "state1", "dataStore", "Data", "setDataStore", "newState", "storeState", "storeSetters", "setStoreState", "setter", "useStore", "state", "setState", "ye", "ue", "useObserveData"]
}
