{"version":3,"file":"OverridesUserConditional.Cz4fBX27.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/giNBmfo1PPLObuXJoGTB/EQb25YaUtjQhgdAJVYv0/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(()=>{var _window_Dribbble,_window;if(typeof window===\"undefined\")return;if(!((_window=window)===null||_window===void 0?void 0:(_window_Dribbble=_window.Dribbble)===null||_window_Dribbble===void 0?void 0:_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===null||userData===void 0?void 0: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===null||userData===void 0?void 0: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(()=>{var _window_Dribbble,_window;if(typeof window===\"undefined\")return;if(!((_window=window)===null||_window===void 0?void 0:(_window_Dribbble=_window.Dribbble)===null||_window_Dribbble===void 0?void 0:_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\"}},\"showIfNotPro\":{\"type\":\"reactHoc\",\"name\":\"showIfNotPro\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideIfPro\":{\"type\":\"reactHoc\",\"name\":\"hideIfPro\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideUXCountry\":{\"type\":\"reactHoc\",\"name\":\"hideUXCountry\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"talentHref\":{\"type\":\"reactHoc\",\"name\":\"talentHref\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideWhenLoggedIn\":{\"type\":\"reactHoc\",\"name\":\"hideWhenLoggedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIfPlayer\":{\"type\":\"reactHoc\",\"name\":\"showIfPlayer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideIfHasHiringProduct\":{\"type\":\"reactHoc\",\"name\":\"hideIfHasHiringProduct\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OverridesUserConditional.map"],"mappings":"2MAA64B,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAS,GAAa,CAAO,EAAkB,GAAmD,YAAa,EAAiB,SAAS,EAAS,YAAY,CAAC,GAAM,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,OAAO,GAAkB,IAAA,GAAU,CAAC,EAA6U,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,sBAAsB,GAAK,CAAC,CAAI,SAAgB,EAAU,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,gBAAgB,GAAK,CAAC,CAAI,SAAgB,EAAa,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,oBAAoB,GAAK,CAAC,CAAI,SAAgB,EAAa,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,sBAAsB,GAAK,CAAC,CAA+I,SAAgB,EAAW,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,IAAqB,EAAkB,IAAS,SAAyB,EAAQ,IAAU,MAAgD,EAAQ,UAAoE,OAAgB,EAAO,SAAS,KAAK,qBAAuC,SAAS,iBAAiB,4BAA4B,CAAa,QAAQ,GAAY,CAAC,EAAW,aAAa,OAAO,aAAa,EAAG,CAAE,cAAc,EAAS,GAAG,IAAI,CAAC,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,wBAAwB,GAAK,CAAC,2BAAzxF,IAAsC,CAAM,MAAgB,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,KAAK,CAA4X,OAA3X,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,IAAqB,EAAkB,IAAS,SAAyB,EAAQ,IAAU,MAAgD,EAAQ,UAAoE,OAAa,cAAc,EAAS,CAAC,EAAY,EAAO,SAAS,KAAK,GAAG,GAAG,CAAC,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAQ,GAAiB,EAAiB,wNAAqV"}