{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/BeX0lwhkawsK93jHLpqQ/bN572msqp8Pehu2UaUtN/useShowHide.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{store_Country}from\"https://framerusercontent.com/modules/uEbYfRswpEkLoguEXuyc/aJGVne8id8ZJMOpoLekR/store_Country.js\";const territoryCountriesAuNz=[\"AU\",\"NZ\"];const territoryCountriesUsCaMx=[\"US\",\"CA\",\"MX\"];const territoryCountriesUkIe=[\"GB\",\"IE\"];const territoryCountriesUk=[\"GB\"];const territoryCountriesEu=[\"AT\",\"BE\",\"BG\",\"HR\",\"CY\",\"CZ\",\"DK\",\"EE\",\"FI\",\"FR\",\"DE\",\"GR\",\"HU\",\"IE\",\"IT\",\"LV\",\"LT\",\"LU\",\"MT\",\"NL\",\"PL\",\"PT\",\"RO\",\"SK\",\"SI\",\"ES\",\"SE\"];export function showIn_EUGB(Component){return props=>{let show=false;try{const[country,_]=store_Country();if(!country||!country.countryCode){return null;}const countryCode=country.countryCode.toUpperCase();show=territoryCountriesEu.includes(countryCode)||territoryCountriesUk.includes(countryCode);}catch(e){}return show?/*#__PURE__*/_jsx(Component,{...props}):null;};}export function hideIn_EUGB(Component){return props=>{let hide=false;try{const[country,_]=store_Country();if(!country||!country.countryCode){return null;}const countryCode=country.countryCode.toUpperCase();hide=territoryCountriesEu.includes(countryCode)||territoryCountriesUk.includes(countryCode);}catch(e){}return hide?null:/*#__PURE__*/_jsx(Component,{...props});};}export function showIn_IEGB(Component){return props=>{let show=false;try{const[country,_]=store_Country();if(!country||!country.countryCode||country.countryCode===\"\"){return null;}const countryCode=country.countryCode.toUpperCase();show=[\"GB\",\"IE\"].includes(countryCode);}catch(e){}return show?/*#__PURE__*/_jsx(Component,{...props}):null;};}export function hideIn_IEGB(Component){return props=>{let hide=false;try{const[country,_]=store_Country();if(!country||!country.countryCode||country.countryCode===\"\"){return null;}const countryCode=country.countryCode.toUpperCase();hide=[\"GB\",\"IE\"].includes(countryCode);}catch(e){}return hide?null:/*#__PURE__*/_jsx(Component,{...props});};}export function showIn_AUNZ(Component){return props=>{const[country,_]=store_Country();let show=false;try{if(!country||!country.countryCode||country.countryCode===\"\"){return null;}const countryCode=country.countryCode.toUpperCase();show=territoryCountriesAuNz.includes(countryCode);}catch(e){}return show?/*#__PURE__*/_jsx(Component,{...props}):null;};}export function hideIn_AUNZ(Component){return props=>{const[country,_]=store_Country();let hide=false;try{if(!country||!country.countryCode||country.countryCode===\"\"){return null;}const countryCode=country.countryCode.toUpperCase();hide=territoryCountriesAuNz.includes(countryCode);}catch(e){}return hide?null:/*#__PURE__*/_jsx(Component,{...props});};}export function showIn_GB(Component){return props=>{let show=false;try{const[country,_]=store_Country();if(!country||!country.countryCode||country.countryCode===\"\"){return null;}const countryCode=country.countryCode.toUpperCase();show=territoryCountriesUk.includes(countryCode);}catch(e){}return show?/*#__PURE__*/_jsx(Component,{...props}):null;};}export function hideIn_GB(Component){return props=>{let show=true;try{const[country,_]=store_Country();if(country===null||country===void 0?void 0:country.countryCode){show=territoryCountriesUk.includes(country.countryCode.toUpperCase());}}catch(e){}return show?/*#__PURE__*/_jsx(Component,{...props}):null;};}export function addDisplayNoneForTestCode(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"none\"}});};}export function showOnlyIn_US(Component){return props=>{let show=false;try{const[country,_]=store_Country();if(country===null||country===void 0?void 0:country.countryCode){show=[\"US\"].includes(country.countryCode.toUpperCase());}}catch(e){}return show?/*#__PURE__*/_jsx(Component,{...props}):null;};}\nexport const __FramerMetadata__ = {\"exports\":{\"hideIn_IEGB\":{\"type\":\"reactHoc\",\"name\":\"hideIn_IEGB\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showOnlyIn_US\":{\"type\":\"reactHoc\",\"name\":\"showOnlyIn_US\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIn_EUGB\":{\"type\":\"reactHoc\",\"name\":\"showIn_EUGB\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addDisplayNoneForTestCode\":{\"type\":\"reactHoc\",\"name\":\"addDisplayNoneForTestCode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideIn_GB\":{\"type\":\"reactHoc\",\"name\":\"hideIn_GB\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideIn_EUGB\":{\"type\":\"reactHoc\",\"name\":\"hideIn_EUGB\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIn_AUNZ\":{\"type\":\"reactHoc\",\"name\":\"showIn_AUNZ\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIn_GB\":{\"type\":\"reactHoc\",\"name\":\"showIn_GB\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hideIn_AUNZ\":{\"type\":\"reactHoc\",\"name\":\"hideIn_AUNZ\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showIn_IEGB\":{\"type\":\"reactHoc\",\"name\":\"showIn_IEGB\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./useShowHide.map"],
  "mappings": "kFAAuK,IAAMA,EAAuB,CAAC,KAAK,IAAI,EAA2F,IAAMC,EAAqB,CAAC,IAAI,EAA2jD,SAASC,EAAYC,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAQC,CAAC,EAAEC,EAAc,EAAMC,EAAK,GAAM,GAAG,CAAC,GAAG,CAACH,GAAS,CAACA,EAAQ,aAAaA,EAAQ,cAAc,GAAI,OAAO,KAAM,IAAMI,EAAYJ,EAAQ,YAAY,YAAY,EAAEG,EAAKE,EAAuB,SAASD,CAAW,CAAE,MAAC,CAAS,CAAC,OAAOD,EAAkBG,EAAKR,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAE,IAAK,CAAE,CAAQ,SAASQ,EAAYT,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAQC,CAAC,EAAEC,EAAc,EAA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ryCountriesUk", "showIn_AUNZ", "Component", "props", "country", "_", "store_Country", "show", "countryCode", "territoryCountriesAuNz", "p", "hideIn_AUNZ", "hide", "showIn_GB", "territoryCountriesUk", "hideIn_GB", "showOnlyIn_US", "Component", "props", "show", "country", "_", "store_Country", "p"]
}
