{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/zF1OwfrdZrw9qjUpYQsa/Q37BvEJHg2wujn96HIn6/Cart.js"],
  "sourcesContent": ["/**\n * Cart Component\n *\n * This component manages the shopping cart functionality for the Umbrel Home product.\n * It handles cart state, product details, checkout process, and UI rendering.\n *\n * Key features:\n * - Persists cart state across page reloads and browser tabs\n * - Manages cart quantity and open/closed state\n * - Fetches product pricing based on user's country\n * - Renders cart UI with animations\n * - Handles checkout process\n *\n * Relationship with CartTrigger.tsx:\n * CartTrigger.tsx is likely a separate component that triggers the opening of this cart.\n * Since Framer components can't directly share state, we use a combination of\n * localStorage and custom events to synchronize the cart state between components.\n *\n * The useSharedCartState hook is crucial for maintaining consistent cart state\n * across different components and browser instances.\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef,useMemo}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";// Utility function to debounce frequent function calls\nfunction debounce(func,delay){let timeoutId;return function(...args){clearTimeout(timeoutId);timeoutId=setTimeout(()=>func.apply(this,args),delay);};}// Utility function to format price based on currency symbol and code\nconst formatPrice=(symbol,currency,price)=>{let amount=price.toLocaleString();// Special rule for Indian Rupee (INR) formatting\nif(currency===\"INR\"){amount=price.toLocaleString(\"en-IN\");}// Use currency if no symbol is provided\nconst displaySymbol=symbol||currency;// Default rule: symbol before amount, no space\nlet formattedPrice=`${displaySymbol}${amount}`;// Country-specific formatting rules\nswitch(currency){// Symbol after amount, with space\ncase\"DKK\":case\"NOK\":case\"SEK\":case\"ISK\":case\"RUB\":case\"EUR\":formattedPrice=`${amount} ${displaySymbol}`;break;// Symbol before amount, with space\ncase\"ILS\":formattedPrice=`${displaySymbol} ${amount}`;break;}return formattedPrice;};/**\n * Custom hook for shared cart state\n *\n * This hook is crucial for maintaining consistent cart state across\n * different components and browser instances. It uses localStorage\n * and custom events to synchronize the state.\n */function useSharedCartState(){const[quantity,setQuantity]=useState(0);const[isCartOpen,setIsCartOpen]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const storedQuantity=window.localStorage.getItem(\"cartQuantity\");if(storedQuantity){setQuantity(parseInt(storedQuantity,10));}const handleStorageChange=debounce(e=>{if(e.key===\"cartQuantity\"){setQuantity(parseInt(e.newValue||\"0\",10));}if(e.key===\"isCartOpen\"){setIsCartOpen(e.newValue===\"true\");}},100);window.addEventListener(\"storage\",handleStorageChange);const handleCartUpdate=debounce(()=>{const updatedQuantity=window.localStorage.getItem(\"cartQuantity\");setQuantity(parseInt(updatedQuantity||\"0\",10));const updatedIsCartOpen=window.localStorage.getItem(\"isCartOpen\");setIsCartOpen(updatedIsCartOpen===\"true\");},100);window.addEventListener(\"cartUpdate\",handleCartUpdate);return()=>{window.removeEventListener(\"storage\",handleStorageChange);window.removeEventListener(\"cartUpdate\",handleCartUpdate);};},[]);const updateQuantity=newQuantity=>{if(typeof window===\"undefined\")return;setQuantity(newQuantity);window.localStorage.setItem(\"cartQuantity\",newQuantity.toString());window.dispatchEvent(new Event(\"cartUpdate\"));};const updateIsCartOpen=newIsCartOpen=>{if(typeof window===\"undefined\")return;setIsCartOpen(newIsCartOpen);window.localStorage.setItem(\"isCartOpen\",newIsCartOpen.toString());window.dispatchEvent(new Event(\"cartUpdate\"));};return[quantity,updateQuantity,isCartOpen,updateIsCartOpen];}export default function Cart({productImage}){// State for product details\nconst[product,setProduct]=useState({name:\"Umbrel Home\",image:productImage,price:\"0\",currency:\"\",symbol:\"\",variantId:\"\"});// Use the shared cart state hook\nconst[quantity,setQuantity,isCartOpen,setIsCartOpen]=useSharedCartState();// Additional state for UI management\nconst[isCheckingOut,setIsCheckingOut]=useState(false);const[isLoading,setIsLoading]=useState(true);const[isMobile,setIsMobile]=useState(typeof window!==\"undefined\"&&window.matchMedia(\"(max-width: 768px)\").matches);// Effect to handle mobile responsiveness\nuseEffect(()=>{if(typeof window===\"undefined\")return;const mediaQuery=window.matchMedia(\"(max-width: 768px)\");const handleResize=e=>setIsMobile(e.matches);setIsMobile(mediaQuery.matches);mediaQuery.addEventListener(\"change\",handleResize);return()=>{mediaQuery.removeEventListener(\"change\",handleResize);};},[]);// Ref for the cart element (used for click outside detection)\nconst cartRef=useRef(null);// Fetch pricing on component mount\nuseEffect(()=>{fetchPricing();},[]);// Effect to handle clicking outside the cart to close it\nuseEffect(()=>{const handleClickOutside=event=>{if(cartRef.current&&!cartRef.current.contains(event.target)&&!isCheckingOut){setIsCartOpen(false);}};document.addEventListener(\"mousedown\",handleClickOutside);return()=>{document.removeEventListener(\"mousedown\",handleClickOutside);};},[setIsCartOpen,isCheckingOut]);// Get country from localStorage or URL params (default to US)\nconst urlParams=useMemo(()=>typeof window!==\"undefined\"?new URLSearchParams(window.location.search):new URLSearchParams,[]);let country=useMemo(()=>{if(typeof window===\"undefined\")return\"US\";const storedCountry=window.localStorage.getItem(\"selectedCountry\");if(storedCountry){return storedCountry;}return urlParams.get(\"country\")||\"US\";},[urlParams]);// Function to fetch pricing based on user's country\nconst fetchPricing=async()=>{try{const response=await fetch(`https://umbrel.com/api/framer/pricing?country=${country}`);const json=await response.json();console.log(json);const{currency,symbol,price,variantId}=json;setProduct(prevProduct=>({...prevProduct,price,currency,symbol,variantId}));setIsLoading(false);}catch(error){console.error(\"Error fetching price\",error);setIsLoading(false);}};// Cart manipulation functions\nconst handleAddToCart=()=>{setQuantity(1);};const handleIncrease=()=>{setQuantity(Math.min(quantity+1,20));};const handleDecrease=()=>{setQuantity(Math.max(0,quantity-1));};const closeCart=()=>{if(!isCheckingOut){setIsCartOpen(false);}};// Function to handle the checkout process\nconst handleCheckout=async()=>{setIsCheckingOut(true);let attribution={};try{const raw=localStorage.getItem(\"attribution\");if(raw){attribution=JSON.parse(raw);}}catch(error){}try{const response=await fetch(\"https://umbrel.com/api/framer/checkoutv2\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({variantId:product.variantId,country,quantity,attribution})});const checkout=await response.json();if(checkout?.webUrl){window.location.href=checkout.webUrl;setQuantity(0);setIsCartOpen(false);}else{setIsCheckingOut(false);window.alert(\"Something went wrong. Please try again or contact support.\");}}catch(error){setIsCheckingOut(false);console.error(\"Error creating checkout:\",error);}};// Don't render anything while loading\nif(isLoading){return null;}// Render the cart UI\nreturn /*#__PURE__*/_jsx(motion.div,{style:isMobile?mobilePopoverStyle:popoverStyle,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,ease:\"easeInOut\"},children:/*#__PURE__*/_jsx(AnimatePresence,{children:isCartOpen&&/*#__PURE__*/_jsxs(motion.div,{ref:cartRef,style:popoverContentStyle,initial:{opacity:0,y:-30},animate:{opacity:1,y:0},exit:{opacity:0,y:-30},transition:{duration:.4,ease:\"easeOut\"},children:[/*#__PURE__*/_jsx(motion.button,{onClick:closeCart,style:closeButtonStyle,whileHover:{scale:1.1},whileTap:{scale:.9},transition:{duration:.2},disabled:isCheckingOut,children:\"\\xd7\"}),/*#__PURE__*/_jsxs(motion.div,{style:popoverBodyStyle,children:[/*#__PURE__*/_jsx(motion.h2,{style:headingStyle,initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{duration:.4,delay:.1,ease:\"easeOut\"},children:\"Cart\"}),quantity===0?// Empty cart view\n/*#__PURE__*/_jsxs(motion.div,{style:emptyCartStyle,initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:.3},children:[/*#__PURE__*/_jsx(motion.img,{src:product.image,alt:\"Umbrel Home small icon\",style:emptyCartImageStyle,whileHover:{scale:1.02},transition:{duration:.3}}),/*#__PURE__*/_jsx(motion.button,{onClick:handleAddToCart,disabled:isCheckingOut,style:checkoutButtonStyle,whileHover:{scale:1.02},whileTap:{scale:.95},transition:{duration:.2},children:\"Add Umbrel Home to Cart\"})]}):// Cart with items view\n/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:.3},children:[/*#__PURE__*/_jsxs(motion.div,{style:cartItemStyle,children:[/*#__PURE__*/_jsxs(motion.div,{style:cartItemInfoStyle,children:[/*#__PURE__*/_jsx(motion.img,{src:product.image,alt:\"Umbrel Home small icon\",style:cartItemImageStyle,whileHover:{scale:1.05},transition:{duration:.3}}),/*#__PURE__*/_jsxs(motion.div,{style:cartItemDetailsStyle,children:[/*#__PURE__*/_jsx(motion.span,{style:productNameStyle,children:product.name}),/*#__PURE__*/_jsxs(motion.div,{style:quantityControlStyle,children:[/*#__PURE__*/_jsx(motion.button,{onClick:handleDecrease,style:quantityButtonStyle,whileHover:{scale:1.1},whileTap:{scale:.9},transition:{duration:.2},disabled:isCheckingOut,children:\"-\"}),/*#__PURE__*/_jsx(motion.span,{style:quantityTextStyle,children:quantity}),/*#__PURE__*/_jsx(motion.button,{onClick:handleIncrease,style:quantityButtonStyle,whileHover:{scale:1.1},whileTap:{scale:.9},transition:{duration:.2},disabled:isCheckingOut,children:\"+\"})]})]})]}),/*#__PURE__*/_jsx(motion.span,{style:priceStyle,children:formatPrice(product.symbol,product.currency,parseFloat(product.price))})]}),/*#__PURE__*/_jsx(motion.hr,{style:dividerStyle}),/*#__PURE__*/_jsxs(motion.div,{style:summaryItemStyle,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:.4},children:[/*#__PURE__*/_jsx(motion.span,{style:summaryLabelStyle,children:\"Shipping\"}),/*#__PURE__*/_jsxs(motion.span,{style:summaryValueStyle,children:[\"FREE\",country===\"US\"?` (3-6 days)`:` (5-7 days)`]})]}),/*#__PURE__*/_jsxs(motion.div,{style:summaryItemStyle,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:.5},children:[/*#__PURE__*/_jsx(motion.span,{style:summaryLabelStyle,children:\"Tax\"}),/*#__PURE__*/_jsx(motion.span,{style:summaryValueStyle,children:formatPrice(product.symbol,product.currency,0)})]}),country!==\"US\"&&country!==\"IN\"&&country!==\"BR\"&&/*#__PURE__*/_jsxs(motion.div,{style:customsDutyStyle,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:.6},children:[/*#__PURE__*/_jsxs(motion.div,{style:summaryItemStyle,children:[/*#__PURE__*/_jsx(motion.span,{style:{...summaryLabelStyle,color:\"white\"},children:\"Customs duties\"}),/*#__PURE__*/_jsx(motion.span,{style:{...summaryValueStyle,color:\"white\"},children:\"Included\"})]}),/*#__PURE__*/_jsx(motion.div,{style:{color:\"white\",fontSize:\"0.7rem\",marginTop:\"0.65rem\",width:\"100%\",padding:\"0.65rem 0 0.25rem 0\",borderTop:\"solid 1px rgba(255, 255, 255, 0.2)\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\"},children:\"Experience effortless delivery with all duties and fees included in your purchase. No customs, no surprises, just your Umbrel Home at your door.\"})]}),/*#__PURE__*/_jsxs(motion.div,{style:summaryItemStyle,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3,delay:.7},children:[/*#__PURE__*/_jsx(motion.span,{style:summaryLabelStyle,children:\"Total\"}),/*#__PURE__*/_jsx(motion.span,{style:totalPriceStyle,children:formatPrice(product.symbol,product.currency,parseFloat(product.price)*quantity)})]}),/*#__PURE__*/_jsx(motion.button,{onClick:handleCheckout,disabled:isCheckingOut,style:checkoutButtonStyle,whileHover:{scale:1.05},whileTap:{scale:.95},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:.8},children:isCheckingOut?\"Checking out...\":\"Checkout\"})]})]})]})})});}addPropertyControls(Cart,{productImage:{type:ControlType.Image}});const popoverStyle={position:\"fixed\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\",zIndex:1e5,width:\"384px\",maxWidth:\"calc(100vw - 4rem)\",top:\"5rem\",right:\"calc(50% - 384px)\"};const mobilePopoverStyle={position:\"fixed\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\",zIndex:1e5,width:\"384px\",maxWidth:\"calc(100vw - 4rem)\",top:\"5rem\",right:\"2rem\"};const popoverContentStyle={width:\"100%\",backgroundColor:\"rgba(27, 27, 27, 0.5)\",backdropFilter:\"blur(16px)\",\"-webkit-backdrop-filter\":\"blur(16px)\",borderRadius:\"16px\",boxShadow:\"0px 60px 24px -40px rgba(0, 0, 0, 0.25), inset 1px 2px 0px rgba(255, 255, 255, 0.08)\"};const closeButtonStyle={position:\"absolute\",top:\"1.5rem\",right:\"1.5rem\",background:\"none\",border:\"none\",color:\"rgba(255, 255, 255, 0.9)\",fontSize:\"1.5rem\",cursor:\"pointer\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\",zIndex:1};const popoverBodyStyle={padding:\"1.5rem 1.5rem 1.5rem 1.5rem\"};const headingStyle={fontSize:\"1.5rem\",fontWeight:600,marginBottom:\"1.5rem\",color:\"white\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\"};const emptyCartStyle={display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"1.5rem\"};const emptyCartImageStyle={width:\"90px\",height:\"68px\"};const cartItemStyle={display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",marginBottom:\"1rem\"};const cartItemInfoStyle={display:\"flex\",alignItems:\"flex-start\"};const cartItemImageStyle={width:\"90px\",height:\"68px\",marginRight:\"0.75rem\"};const cartItemDetailsStyle={display:\"flex\",flexDirection:\"column\",gap:\"0.5rem\"};const productNameStyle={color:\"white\",fontSize:\"1rem\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\"};const quantityControlStyle={display:\"flex\",alignItems:\"center\"};const quantityButtonStyle={padding:\"0.25rem 0.5rem\",backgroundColor:\"rgba(255, 255, 255, 0.3)\",border:\"none\",borderRadius:\"0.375rem\",color:\"white\",cursor:\"pointer\",fontWeight:\"bold\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\"};const quantityTextStyle={margin:\"0 0.5rem\",color:\"white\",fontSize:\"0.8rem\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\"};const priceStyle={color:\"white\",fontSize:\"0.8rem\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\"};const dividerStyle={border:\"none\",borderTop:\"1px solid rgba(255, 255, 255, 0.5)\",margin:\"1rem 0\"};const summaryItemStyle={display:\"flex\",justifyContent:\"space-between\",alignItems:\"middle\",marginBottom:\"0.5rem\"};const summaryLabelStyle={color:\"rgba(255, 255, 255, 0.7)\",fontSize:\"0.8rem\",fontFamily:\"var(--framer-font-family, Inter, Inter Placeholder, sans-serif))\"};const summaryValueStyle={color:\"white\",fontSize:\"0.8rem\"};const totalPriceStyle={color:\"white\",fontWeight:\"bold\",fontSize:\"1.25rem\"};const checkoutButtonStyle={width:\"100%\",padding:\"0.75rem 1rem\",backgroundColor:\"white\",color:\"black\",border:\"none\",fontSize:\"0.8rem\",fontWeight:\"bold\",borderRadius:\"1.25rem\",cursor:\"pointer\",marginTop:\"1rem\"};const customsDutyStyle={margin:\"0.75rem -0.75rem\",background:\"linear-gradient(165deg, #15f7875e, #2387432e)\",border:\"solid 1px #8fff8f3b\",borderRadius:\"6px\",padding:\"0.5rem 0.75rem\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Cart\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cart.map"],
  "mappings": "mJAqBA,SAASA,EAASC,EAAKC,EAAM,CAAC,IAAIC,EAAU,OAAO,YAAYC,EAAK,CAAC,aAAaD,CAAS,EAAEA,EAAU,WAAW,IAAIF,EAAK,MAAM,KAAKG,CAAI,EAAEF,CAAK,CAAE,CAAE,CACrJ,IAAMG,EAAY,CAACC,EAAOC,EAASC,IAAQ,CAAC,IAAIC,EAAOD,EAAM,eAAe,EACzED,IAAW,QAAOE,EAAOD,EAAM,eAAe,OAAO,GACxD,IAAME,EAAcJ,GAAQC,EACxBI,EAAe,GAAGD,CAA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ymbol", "formattedPrice", "useSharedCartState", "quantity", "setQuantity", "ye", "isCartOpen", "setIsCartOpen", "ue", "window", "storedQuantity", "handleStorageChange", "e", "handleCartUpdate", "updatedQuantity", "updatedIsCartOpen", "newQuantity", "newIsCartOpen", "Cart", "productImage", "product", "setProduct", "isCheckingOut", "setIsCheckingOut", "isLoading", "setIsLoading", "isMobile", "setIsMobile", "mediaQuery", "handleResize", "cartRef", "pe", "fetchPricing", "handleClickOutside", "event", "urlParams", "se", "country", "storedCountry", "json", "variantId", "prevProduct", "error", "handleAddToCart", "handleIncrease", "handleDecrease", "closeCart", "handleCheckout", "attribution", "raw", "checkout", "p", "motion", "mobilePopoverStyle", "popoverStyle", "AnimatePresence", "u", "popoverContentStyle", "closeButtonStyle", "popoverBodyStyle", "headingStyle", "emptyCartStyle", "emptyCartImageStyle", "checkoutButtonStyle", "cartItemStyle", "cartItemInfoStyle", "cartItemImageStyle", "cartItemDetailsStyle", "productNameStyle", "quantityControlStyle", "quantityButtonStyle", "quantityTextStyle", "priceStyle", "dividerStyle", "summaryItemStyle", "summaryLabelStyle", "summaryValueStyle", "customsDutyStyle", "totalPriceStyle", "addPropertyControls", "ControlType"]
}
