{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/zVB3SCJ7bLXM45BJkWUj/SiHqFw0aedW6jfG7K9cM/Misc_Overrides.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{useState,useEffect,useRef}from\"react\";const cartEndpoint=\"https://teaatshiloh.myshopify.com/cart.js\";const proxyUrl=\"https://cors.bridged.cc/\";async function fetchCartItemCount(){try{const response=await fetch(proxyUrl+cartEndpoint,{headers:{\"x-requested-with\":\"Framer App\",cookie:document.cookie}});const data=await response.json();return data.item_count;}catch(error){console.error(\"Error fetching cart data:\",error);return 0;}}export function withCartInfo(Component){return props=>{const[cartItemCount,setCartItemCount]=useState(0);useEffect(()=>{(async()=>{const itemCount=await fetchCartItemCount();setCartItemCount(itemCount);})();},[]);const opacityValue=cartItemCount>0?1:0;return /*#__PURE__*/ _jsx(Component,{...props,numberOfItems:cartItemCount,style:{opacity:opacityValue}});};}export function withFullWidth(Component){return props=>{return /*#__PURE__*/ _jsx(Component,{...props,style:{width:\"100%\"},className:\"testing-full\"});};}export function withFullHeight(Component){return props=>{return /*#__PURE__*/ _jsx(Component,{...props,style:{height:\"100%\"},className:\"testing-full\"});};}export function withRandomVariant(Component){return props=>{const randomVariant=`Variant ${Math.floor(Math.random()*5)+1}`;return /*#__PURE__*/ _jsx(Component,{...props,variant:randomVariant});};}export function withJustifyText(Component){return props=>{const ref=useRef(null);useEffect(()=>{if(ref.current){const children=ref.current.getElementsByTagName(\"p\");for(let i=0;i<children.length;i++){children[i].style.textAlign=\"justify\";}}},[ref]);return /*#__PURE__*/ _jsx(\"div\",{ref:ref,children:/*#__PURE__*/ _jsx(Component,{...props})});};}const useStore=createStore({background:\"#0099FF\"});\nexport const __FramerMetadata__ = {\"exports\":{\"withCartInfo\":{\"type\":\"reactHoc\",\"name\":\"withCartInfo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withJustifyText\":{\"type\":\"reactHoc\",\"name\":\"withJustifyText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomVariant\":{\"type\":\"reactHoc\",\"name\":\"withRandomVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFullWidth\":{\"type\":\"reactHoc\",\"name\":\"withFullWidth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFullHeight\":{\"type\":\"reactHoc\",\"name\":\"withFullHeight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Misc_Overrides.map"],
  "mappings": "gGAAwsC,SAASA,EAAkBC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAc,WAAW,KAAK,MAAM,KAAK,OAAO,EAAE,CAAC,EAAE,CAAC,GAAG,OAAqBC,EAAKH,EAAU,CAAC,GAAGC,EAAM,QAAQC,CAAa,CAAC,CAAE,CAAE,CAAQ,SAASE,EAAgBJ,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMI,EAAIC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,GAAGF,EAAI,QAAQ,CAAC,IAAMG,EAASH,EAAI,QAAQ,qBAAqB,GAAG,EAAE,QAAQI,EAAE,EAAEA,EAAED,EAAS,OAAOC,IAAKD,EAASC,CAAC,EAAE,MAAM,UAAU,SAAW,CAAC,EAAE,CAACJ,CAAG,CAAC,EAAuBF,EAAK,MAAM,CAAC,IAAIE,EAAI,SAAuBF,EAAKH,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,CAAC,IAAMS,EAASC,EAAY,CAAC,WAAW,SAAS,CAAC",
  "names": ["withRandomVariant", "Component", "props", "randomVariant", "p", "withJustifyText", "ref", "pe", "ue", "children", "i", "useStore", "createStore"]
}
