{"version":3,"file":"OverridesUserConditional.Dqce3mg2.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/giNBmfo1PPLObuXJoGTB/kpJJBvQzcprED8qhX90H/OverridesUserConditional.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const useUserData=()=>{const[userData,setUserData]=useState(null);useEffect(()=>{const interval=setInterval(()=>{if(typeof window===\"undefined\")return;if(!window?.Dribbble?.user)return;clearInterval(interval);setUserData(window.Dribbble.user);},20);return()=>clearInterval(interval);},[]);return userData;};const blockedCountries=[\"AM\",\"BD\",\"IN\",\"IR\",\"JO\",\"OM\",\"PK\",\"PH\",\"RU\",\"AO\",\"BF\",\"BI\",\"BJ\",\"BW\",\"CD\",\"CF\",\"CG\",\"CI\",\"CM\",\"CV\",\"DJ\",\"DZ\",\"EG\",\"EH\",\"ER\",\"ET\",\"GA\",\"GH\",\"GM\",\"GN\",\"GQ\",\"GW\",\"IO\",\"KE\",\"KM\",\"LR\",\"LS\",\"LY\",\"MA\",\"MG\",\"ML\",\"MR\",\"MU\",\"MW\",\"MZ\",\"NA\",\"NE\",\"NG\",\"RE\",\"RW\",\"SC\",\"SD\",\"SH\",\"SL\",\"SN\",\"SO\",\"SS\",\"ST\",\"SZ\",\"TD\",\"TF\",\"TG\",\"TN\",\"TZ\",\"UG\",\"YT\",\"ZM\",\"ZW\"];export function hideUXCountry(Component){return props=>{const userData=useUserData();const isBlockedCountry=userData?.countryCode?blockedCountries.includes(userData.countryCode):false;return /*#__PURE__*/_jsx(Component,{...props,hidden:isBlockedCountry||undefined});};}export function invisibleUXCountry(Component){return props=>{const userData=useUserData();const isBlockedCountry=userData?.countryCode?blockedCountries.includes(userData.countryCode):false;return /*#__PURE__*/_jsx(Component,{...props,\"data-not-visible\":isBlockedCountry||undefined});};}export function hideWhenLoggedIn(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-hide-logged-in\":true});};}export function hideIfPro(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-hide-pro\":true});};}export function showIfNotPro(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-show-not-pro\":true});};}export function showIfPlayer(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-show-if-player\":true});};}export function hideIfHasHiringProduct(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,\"data-hide-hiring\":true});};}export function talentHref(Component){return props=>{useEffect(()=>{const interval=setInterval(()=>{if(typeof window===\"undefined\")return;if(!window?.Dribbble?.user)return;if(window.Dribbble.user.hasAnyHiringProduct){const talentLinks=document.querySelectorAll(\"[data-find-talent-link] a\");talentLinks.forEach(talentLink=>{talentLink.setAttribute(\"href\",\"/designers\");});}clearInterval(interval);},150);return()=>clearInterval(interval);},[]);return /*#__PURE__*/_jsx(Component,{...props,\"data-find-talent-link\":true});};}\nexport const __FramerMetadata__ = {\"exports\":{\"invisibleUXCountry\":{\"type\":\"reactHoc\",\"name\":\"invisibleUXCountry\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideWhenLoggedIn\":{\"type\":\"reactHoc\",\"name\":\"hideWhenLoggedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIfPlayer\":{\"type\":\"reactHoc\",\"name\":\"showIfPlayer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideIfPro\":{\"type\":\"reactHoc\",\"name\":\"hideIfPro\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"talentHref\":{\"type\":\"reactHoc\",\"name\":\"talentHref\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideUXCountry\":{\"type\":\"reactHoc\",\"name\":\"hideUXCountry\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIfNotPro\":{\"type\":\"reactHoc\",\"name\":\"showIfNotPro\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideIfHasHiringProduct\":{\"type\":\"reactHoc\",\"name\":\"hideIfHasHiringProduct\",\"annotations\":{\"framerContractVersion\":\"1\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