{"version":3,"file":"Cart.CpyD7KWM.mjs","names":["useState","useRef","useMemo"],"sources":["https:/framerusercontent.com/modules/zF1OwfrdZrw9qjUpYQsa/h3z9KtCjd4BHtQI7zWwU/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":"8aAqBA,SAAS,EAAS,EAAK,EAAM,CAAC,IAAI,EAAU,OAAO,SAAS,GAAG,EAAK,CAAC,aAAa,EAAU,CAAC,EAAU,eAAe,EAAK,MAAM,KAAK,EAAK,CAAC,EAAM,EAa/I,SAAS,GAAoB,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,EAAE,CAAM,CAAC,EAAW,GAAeA,EAAS,GAAM,CAAqxC,OAApxC,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,EAAe,EA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