{"version":3,"file":"CartDrawer.C462l4BV.mjs","names":["useState","useCallback","useMemo","_Fragment","_jsxs","__esmMin","init_ssg_sandbox_shims","pe","init_npm_react_18_3_1","_e","init_jsx_runtime","ne","init_npm_react_dom_18_3_1","p","ce","window","addPropertyControls","RenderTarget","init_framer_D1IzEvwH","ControlType","sf","store","host","res","API_VERSION","token","json","CartDrawer","open","setOpen","cart","setCart","loading","setLoading","updatingId","setUpdatingId","portalRoot","setPortalRoot","recs","setRecs","addingRecId","setAddingRecId","isOnCanvas","isCanvas","storefrontToken","storeDomain","isOpen","fallbackOpen","inlinePreview","div","safeWidth","width","style","position","loadCart","id","getCartId","d","GET_CART_QUERY","updateItem","lineId","qty","CART_LINES_REMOVE_QUERY","CART_LINES_UPDATE_QUERY","EVENT_UPDATE","cartProductIds","ids","edge","pid","firstProductId","cancelled","PRODUCT_RECOMMENDATIONS_QUERY","list","addRec","node","rec","cartId","CART_LINES_ADD_QUERY","newId","CART_CREATE_QUERY","setCartId","onOpen","onClose","onUpdate","EVENT_OPEN","EVENT_CLOSE","onKey","prev","displayCart","PREVIEW_CART","lines","subtotal","total","currencyCode","cartTotal","threshold","freeShippingThreshold","hasFreeShipping","freeShippingProgress","ratio","remainingForFreeShipping","remainingFormatted","fmt","mutedTextColor","dividerColor","anchor","proceedToCheckout","ev","goToCartPage","EVENT_CARTPAGE_OPEN","subtotalValue","shippingExtra","shippingValue","freeShippingLabel","totalValue","discountAmount","discountValue","panel","backgroundColor","textColor","title","showFreeShippingBar","progressColor","freeShippingAchievedLabel","freeShippingProgressLabel","emptyText","m","line","img","opts","o","isUpdating","unitPrice","showUpsells","upsellTitle","available","isAdding","recImg","recPrice","accentColor","accentTextColor","showActionRow","ActionIcon","actionNoteLabel","actionShippingLabel","actionCouponLabel","Row","subtotalLabel","discountLabel","shippingLabel","totalLabel","showViewCart","secondaryButtonBg","secondaryButtonText","viewCartLabel","checkoutLabel","l","muted","label","value","iconName","CART_ID_KEY","CART_FIELDS","init_CartDrawer","n","props"],"sources":["https:/framerusercontent.com/modules/zx3Ot7DjsHdicS8UjnCh/EH8ZzqapH2DFtsvwf9er/CartDrawer.js"],"sourcesContent":["// Cart Drawer (Shopify) — Modave-style slide-in cart backed by the Storefront\n// Cart API. Opens on the `fec:cart-open` event (fired by Add to Cart / Cart\n// Icon), reads the cart by id (localStorage), lets the shopper change\n// quantities / remove lines, shows a free-shipping progress bar + subtotal\n// breakdown, and sends them to Shopify's HOSTED checkout via cart.checkoutUrl.\n// \"View Cart\" fires `fec:cartpage-open` to open the Cart Page overlay.\n// Connection: storeDomain + storefrontToken (see README). Calls the Shopify\n// Storefront GraphQL API DIRECTLY with the PUBLIC Storefront access token\n// (Shopify's intended client-side use) — no proxy worker, no third-party\n// transmission of credentials.\n//\n// Event contract (must match AddToCart + CartIcon siblings):\n//   - listens fec:cart-open   → slide drawer in, fetch cart\n//   - listens fec:cart-close  → slide drawer out\n//   - listens fec:cart-update → re-fetch cart while open\n//   - emits   fec:cart-update on item qty change / remove\n//   - emits   fec:cartpage-open from \"View Cart\"\n//\n// Checkout is HOSTED by Shopify: the footer \"Checkout\" button emits a\n// cancelable fec:checkout-open (a manually-inserted CheckoutPage overlay can\n// intercept it), then falls back to redirecting to cart.checkoutUrl.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useState}from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const CART_ID_KEY=\"fec:shopify-cart-id\";const EVENT_OPEN=\"fec:cart-open\";const EVENT_CLOSE=\"fec:cart-close\";// Opens the full-screen Cart Page overlay (CartPage component). \"View Cart\"\n// dispatches this instead of navigating to a real /cart route — the overlay\n// escapes Framer's layout entirely, so there's no page-creation / 404 surface.\n// Must match CartPage's open event.\nconst EVENT_CARTPAGE_OPEN=\"fec:cartpage-open\";const EVENT_UPDATE=\"fec:cart-update\";const getCartId=()=>{if(typeof window===\"undefined\")return\"\";try{return window.localStorage.getItem(CART_ID_KEY)||\"\";}catch{return\"\";}};const setCartId=id=>{if(typeof window===\"undefined\")return;try{window.localStorage.setItem(CART_ID_KEY,id);}catch{// localStorage unavailable — safe to ignore.\n}};// Call the Shopify Storefront API DIRECTLY with the PUBLIC Storefront access\n// token (Shopify's intended client-side use). No proxy worker, no third-party\n// transmission of credentials.\nconst API_VERSION=\"2025-01\";async function sf(host,token,query,variables){const store=(host||\"\").trim().replace(/^https?:\\/\\//i,\"\").replace(/\\/.*$/,\"\");const res=await fetch(`https://${store}/api/${API_VERSION}/graphql.json`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"X-Shopify-Storefront-Access-Token\":(token||\"\").trim()},body:JSON.stringify({query,variables})});if(!res.ok)throw new Error(`HTTP ${res.status}`);const json=await res.json();if(json.errors?.length)throw new Error(json.errors[0]?.message||\"Storefront error\");if(!json.data)throw new Error(\"Empty response\");return json.data;}// Shared cart selection set, expanded inline into every cart query/mutation\n// below so each embedded GraphQL string is complete and self-contained.\nconst CART_FIELDS=/* GraphQL */`\n  id\n  checkoutUrl\n  totalQuantity\n  cost {\n    subtotalAmount { amount currencyCode }\n    totalAmount { amount currencyCode }\n  }\n  discountCodes { code applicable }\n  lines(first: 100) {\n    edges {\n      node {\n        id\n        quantity\n        merchandise {\n          ... on ProductVariant {\n            id\n            title\n            sku\n            image { url }\n            price { amount currencyCode }\n            selectedOptions { name value }\n            product { id title handle }\n          }\n        }\n      }\n    }\n  }\n`;const GET_CART_QUERY=/* GraphQL */`\n  query GetCart($id: ID!) {\n    cart(id: $id) { ${CART_FIELDS} }\n  }\n`;const CART_LINES_UPDATE_QUERY=/* GraphQL */`\n  mutation CartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!) {\n    cartLinesUpdate(cartId: $cartId, lines: $lines) {\n      cart { ${CART_FIELDS} }\n      userErrors { field message }\n    }\n  }\n`;const CART_LINES_REMOVE_QUERY=/* GraphQL */`\n  mutation CartLinesRemove($cartId: ID!, $lineIds: [ID!]!) {\n    cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n      cart { ${CART_FIELDS} }\n      userErrors { field message }\n    }\n  }\n`;const CART_LINES_ADD_QUERY=/* GraphQL */`\n  mutation CartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) {\n    cartLinesAdd(cartId: $cartId, lines: $lines) {\n      cart { ${CART_FIELDS} }\n      userErrors { field message }\n    }\n  }\n`;const CART_CREATE_QUERY=/* GraphQL */`\n  mutation CartCreate($lines: [CartLineInput!]!) {\n    cartCreate(input: { lines: $lines }) {\n      cart { ${CART_FIELDS} }\n      userErrors { field message }\n    }\n  }\n`;const PRODUCT_RECOMMENDATIONS_QUERY=/* GraphQL */`\n  query Recs($productId: ID!) {\n    productRecommendations(productId: $productId) {\n      id\n      title\n      handle\n      featuredImage { url }\n      priceRange { minVariantPrice { amount currencyCode } }\n      variants(first: 1) { edges { node { id availableForSale } } }\n    }\n  }\n`;const fmt=m=>{if(!m)return\"\";const n=Number(m.amount);if(!Number.isFinite(n))return\"\";try{return new Intl.NumberFormat(undefined,{style:\"currency\",currency:m.currencyCode||\"USD\"}).format(n);}catch{return`${m.currencyCode} ${n}`;}};// Canvas preview cart so designers see the full overlay with \"Preview open\".\nconst PREVIEW_CART={id:\"preview\",checkoutUrl:\"\",totalQuantity:2,discountCodes:[{code:\"WELCOME10\",applicable:true}],cost:{subtotalAmount:{amount:\"379.98\",currencyCode:\"USD\"},totalAmount:{amount:\"341.98\",currencyCode:\"USD\"}},lines:{edges:[{node:{id:\"preview1\",quantity:2,merchandise:{id:\"v1\",title:\"Premium / 8\",image:{url:\"\"},price:{amount:\"189.99\",currencyCode:\"USD\"},product:{title:\"Double-Breasted Trench Coat\"},selectedOptions:[{name:\"Material\",value:\"Premium\"},{name:\"Size\",value:\"8\"}]}}}]}};/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function CartDrawer({labelGroup:{subtotalLabel=\"Subtotal\",discountLabel=\"Discount\",shippingLabel=\"Shipping\",freeShippingLabel=\"Free shipping\",totalLabel=\"Total\",actionNoteLabel=\"Note\",actionShippingLabel=\"Shipping\",actionCouponLabel=\"Coupon\"}={},storefrontToken=\"\",storeDomain=\"\",position=\"right\",width=540,backgroundColor=\"#FFFFFF\",textColor=\"#0a0a0a\",mutedTextColor=\"#6b7280\",dividerColor=\"#e5e7eb\",accentColor=\"#3E3E41\",accentTextColor=\"#FFFFFF\",secondaryButtonBg=\"#FFFFFF\",secondaryButtonText=\"#0a0a0a\",progressColor=\"#22c55e\",title=\"Shopping Cart\",emptyText=\"Your cart is empty\",showFreeShippingBar=false,freeShippingThreshold=200,freeShippingProgressLabel=\"Add {amount} more to unlock free shipping\",freeShippingAchievedLabel=\"Congratulations! You've got free shipping!\",showActionRow=true,showViewCart=true,viewCartLabel=\"View Cart\",checkoutLabel=\"Checkout\",showUpsells=true,upsellTitle=\"You may also add\",fallbackOpen=false}){const[open,setOpen]=useState(false);const[cart,setCart]=useState(null);const[loading,setLoading]=useState(false);const[updatingId,setUpdatingId]=useState(null);const[portalRoot,setPortalRoot]=useState(null);// \"You may also add\" upsell recommendations + the rec currently being added.\nconst[recs,setRecs]=useState([]);const[addingRecId,setAddingRecId]=useState(null);// True ONLY in Framer's editor canvas (not in preview / export / published\n// pages). RenderTarget is the authoritative API for this — the older\n// `!storefrontToken || !storeDomain` heuristic mis-identified the editor\n// canvas when credentials were set, so the \"Preview in Canvas\" toggle never\n// actually triggered the inline render.\nconst isOnCanvas=RenderTarget.current()===RenderTarget.canvas;const isCanvas=isOnCanvas||!storefrontToken||!storeDomain;const isOpen=isCanvas?fallbackOpen:open;// Canvas preview path — when the designer flips \"Preview in Canvas\" on,\n// render the panel INLINE (no portal, no position:fixed, no slide). The\n// live overlay mechanism (portal to body + fixed) gets hidden behind\n// Framer's right-side property panel in the editor, so canvas preview\n// bypasses it entirely. Live runtime is unaffected.\nconst inlinePreview=isOnCanvas&&fallbackOpen;// Explicit portal root attached as a direct child of document.body. Framer's\n// published page wraps the React tree inside a transformed Frame, so a plain\n// createPortal(node, document.body) sometimes resolves to that wrapper\n// instead of body proper, trapping the drawer under transform: matrix(...).\n// Manually appending the container guarantees the drawer mounts as a true\n// body sibling — escaping every Framer ancestor so position: fixed works.\nuseEffect(()=>{if(typeof document===\"undefined\")return;const div=document.createElement(\"div\");div.setAttribute(\"data-fec-cart-drawer-root\",\"\");div.style.position=\"fixed\";div.style.top=\"0\";div.style.left=\"0\";div.style.width=\"0\";div.style.height=\"0\";div.style.zIndex=\"999999\";document.body.appendChild(div);setPortalRoot(div);return()=>{try{document.body.removeChild(div);}catch{// Already detached — safe to ignore.\n}};},[]);// Inject CSS rules with !important so nothing Framer applies can stretch the\n// drawer panel to viewport width. React inline styles get overridden in\n// published Framer pages by the platform's default Frame styling (which\n// forces width: 100% on component-instance children); a high-specificity\n// stylesheet rule with !important is the only reliable override.\nconst safeWidth=Number.isFinite(width)&&width>0?Math.min(width,720):540;useEffect(()=>{if(typeof document===\"undefined\")return;// Skip the !important overlay CSS when rendering inline on the canvas\n// — that rule pins the panel to position:fixed which we don't want for\n// the in-place designer preview.\nif(inlinePreview)return;const style=document.createElement(\"style\");style.setAttribute(\"data-fec-cart-drawer-styles\",\"\");// 100dvh = dynamic viewport height (visible area only) so the footer\n// isn't pushed off-screen behind mobile Safari's URL bar. 100vh kept as\n// a fallback for older browsers.\nstyle.textContent=`\n            [data-fec-cart-drawer-panel] {\n                position: fixed !important;\n                top: 0 !important;\n                bottom: 0 !important;\n                ${position}: 0 !important;\n                width: ${safeWidth}px !important;\n                max-width: 100vw !important;\n                height: 100vh !important;\n                height: 100dvh !important;\n                z-index: 1000000 !important;\n            }\n            [data-fec-cart-drawer-backdrop] {\n                position: fixed !important;\n                top: 0 !important;\n                left: 0 !important;\n                right: 0 !important;\n                bottom: 0 !important;\n                width: 100vw !important;\n                height: 100vh !important;\n                height: 100dvh !important;\n                z-index: 999998 !important;\n            }\n        `;document.head.appendChild(style);return()=>{try{document.head.removeChild(style);}catch{// Already detached — safe to ignore.\n}};},[safeWidth,position,inlinePreview]);const loadCart=useCallback(async()=>{const id=getCartId();if(!id||!storefrontToken||!storeDomain){setCart(null);return;}setLoading(true);try{const d=await sf(storeDomain,storefrontToken,GET_CART_QUERY,{id});setCart(d?.cart??null);}catch{setCart(null);}finally{setLoading(false);}},[storefrontToken,storeDomain]);const updateItem=useCallback(async(lineId,qty)=>{const id=getCartId();if(!id||!storefrontToken||!storeDomain)return;setUpdatingId(lineId);try{if(qty<=0){await sf(storeDomain,storefrontToken,CART_LINES_REMOVE_QUERY,{cartId:id,lineIds:[lineId]});}else{await sf(storeDomain,storefrontToken,CART_LINES_UPDATE_QUERY,{cartId:id,lines:[{id:lineId,quantity:qty}]});}await loadCart();window.dispatchEvent(new CustomEvent(EVENT_UPDATE));}catch{// Network error — leave the cart as-is.\n}finally{setUpdatingId(null);}},[storefrontToken,storeDomain,loadCart]);// Product ids currently in the cart — used to (a) seed the recommendations\n// fetch off the FIRST line's product and (b) filter already-in-cart recs.\nconst cartProductIds=useMemo(()=>{const ids=new Set;for(const edge of cart?.lines.edges??[]){const pid=edge.node.merchandise.product?.id;if(pid)ids.add(pid);}return ids;},[cart]);const firstProductId=cart?.lines.edges[0]?.node.merchandise.product?.id;// Fetch \"You may also add\" recommendations off the first cart product. Keyed\n// on firstProductId (+ creds) so it only refetches when that product changes\n// — NOT on every cart object mutation, which would loop. Drops any rec\n// already in the cart and caps to 4.\nuseEffect(()=>{if(!firstProductId||!storefrontToken||!storeDomain){setRecs([]);return;}let cancelled=false;void(async()=>{try{const d=await sf(storeDomain,storefrontToken,PRODUCT_RECOMMENDATIONS_QUERY,{productId:firstProductId});if(cancelled)return;const list=d?.productRecommendations??[];setRecs(list.filter(p=>!cartProductIds.has(p.id)).slice(0,4));}catch{if(!cancelled)setRecs([]);}})();return()=>{cancelled=true;};// cartProductIds intentionally omitted from deps: it changes on every\n// cart update and would re-trigger the fetch in a loop. The filter still\n// reads the latest set via closure at fetch time, and quick re-reads\n// after an add refresh the list anyway.\n// eslint-disable-next-line react-hooks/exhaustive-deps\n},[firstProductId,storefrontToken,storeDomain]);// Add a recommended product to the cart (same path the drawer uses): create\n// a cart if none exists, else cartLinesAdd, then notify siblings + re-read.\nconst addRec=useCallback(async rec=>{const node=rec.variants.edges[0]?.node;if(!node||!node.availableForSale)return;if(!storefrontToken||!storeDomain)return;setAddingRecId(rec.id);try{const cartId=getCartId();if(cartId){await sf(storeDomain,storefrontToken,CART_LINES_ADD_QUERY,{cartId,lines:[{merchandiseId:node.id,quantity:1}]});}else{const created=await sf(storeDomain,storefrontToken,CART_CREATE_QUERY,{lines:[{merchandiseId:node.id,quantity:1}]});const newId=created?.cartCreate?.cart?.id;if(newId)setCartId(newId);}await loadCart();window.dispatchEvent(new CustomEvent(EVENT_UPDATE));}catch{// Network error — leave the cart as-is.\n}finally{setAddingRecId(null);}},[storefrontToken,storeDomain,loadCart]);useEffect(()=>{const onOpen=()=>{setOpen(true);void loadCart();};const onClose=()=>setOpen(false);const onUpdate=()=>{if(open)void loadCart();};window.addEventListener(EVENT_OPEN,onOpen);window.addEventListener(EVENT_CLOSE,onClose);window.addEventListener(EVENT_UPDATE,onUpdate);return()=>{window.removeEventListener(EVENT_OPEN,onOpen);window.removeEventListener(EVENT_CLOSE,onClose);window.removeEventListener(EVENT_UPDATE,onUpdate);};},[loadCart,open]);useEffect(()=>{if(!open)return;const onKey=e=>{if(e.key===\"Escape\")setOpen(false);};window.addEventListener(\"keydown\",onKey);return()=>window.removeEventListener(\"keydown\",onKey);},[open]);useEffect(()=>{if(typeof document===\"undefined\")return;if(open){const prev=document.body.style.overflow;document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=prev;};}},[open]);// Derive cart data + free-shipping progress unconditionally (BEFORE any\n// early return) so React's hook order stays stable across renders.\nconst displayCart=cart||(isCanvas?PREVIEW_CART:null);const lines=displayCart?displayCart.lines.edges.map(e=>e.node):[];const subtotal=displayCart?.cost.subtotalAmount??null;const total=displayCart?.cost.totalAmount??subtotal;const currencyCode=subtotal?.currencyCode||\"USD\";const cartTotal=Number(subtotal?.amount??0);const threshold=Number.isFinite(freeShippingThreshold)&&freeShippingThreshold>0?freeShippingThreshold:0;const hasFreeShipping=threshold>0&&cartTotal>=threshold;const freeShippingProgress=useMemo(()=>{if(threshold<=0)return 0;const ratio=cartTotal/threshold;return Math.min(1,Math.max(0,ratio));},[cartTotal,threshold]);const remainingForFreeShipping=Math.max(0,threshold-cartTotal);const remainingFormatted=fmt({amount:String(remainingForFreeShipping),currencyCode});// Canvas placeholder — designers see a hint instead of the full overlay.\nif(isCanvas&&!fallbackOpen){return /*#__PURE__*/_jsx(\"div\",{style:{padding:\"12px 16px\",fontFamily:\"Inter, system-ui, sans-serif\",color:mutedTextColor,fontSize:12,textAlign:\"center\",border:`1px dashed ${dividerColor}`,borderRadius:8,background:\"#F9FAFB\"},children:'Cart Drawer \\xb7 toggle \"Preview in Canvas\" in props to see drawer'});}// The closed-state path always renders the invisible anchor div in the\n// normal React tree (so Framer's publish bundler keeps the component;\n// returning null gets the chunk tree-shaken). The visible drawer overlay is\n// rendered separately via createPortal at document.body level so it ESCAPES\n// Framer's transformed page wrapper and behaves like a true viewport-fixed\n// overlay.\nconst anchor=/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",\"data-fec-cart-drawer-anchor\":\"\",style:{width:0,height:0,overflow:\"hidden\",position:\"absolute\",top:0,left:0,pointerEvents:\"none\"}});// Checkout opens the on-site CheckoutPage overlay (Woo-style): it collects\n// contact + shipping, then hands off to Shopify's HOSTED checkout for\n// payment via cart.checkoutUrl. Close the drawer first.\nconst proceedToCheckout=()=>{if(isCanvas||typeof window===\"undefined\")return;setOpen(false);// Open the on-site CheckoutPage overlay if it's on the page; if nothing\n// handles the event, fall back to Shopify's hosted checkout so the\n// button ALWAYS works.\nconst ev=new CustomEvent(\"fec:checkout-open\",{cancelable:true});const handled=!window.dispatchEvent(ev);if(!handled&&cart?.checkoutUrl)window.location.href=cart.checkoutUrl;};// View Cart closes the drawer and opens the full-screen Cart Page OVERLAY\n// (CartPage component listening for fec:cartpage-open). No navigation, no\n// /cart route — the overlay is a portal/fixed layer like this drawer.\nconst goToCartPage=()=>{if(isCanvas||typeof window===\"undefined\")return;setOpen(false);window.dispatchEvent(new CustomEvent(EVENT_CARTPAGE_OPEN));};// *Value = the formatted money shown on the right of each totals row. The\n// row CAPTIONS on the left are the subtotal/discount/shipping/totalLabel\n// props so they can be reworded or translated from Framer's panel.\nconst subtotalValue=fmt(subtotal);// Shipping: Shopify only computes it once it knows a delivery address, so\n// the row shows a designer-set message UNTIL it is known, then the real\n// amount. Derived as total − subtotal, because cost.totalAmount folds\n// shipping and tax in as soon as the address is attached — it is NOT\n// reliably \"pre-shipping\" as this comment previously claimed. Without this\n// the page rendered Subtotal 200 / Shipping <text> / Total 579, leaving the\n// difference unexplained on screen.\n// Guarded to > 0.0001 so floating-point noise can't render a \"shipping\" row\n// for a cart that has none; a NEGATIVE difference is a discount and is\n// handled by the discount row below, which is why this is not just abs().\nconst shippingExtra=subtotal&&total?Number(total.amount)-Number(subtotal.amount):0;const shippingValue=shippingExtra>1e-4&&subtotal?fmt({amount:String(shippingExtra),currencyCode:subtotal.currencyCode}):freeShippingLabel;const totalValue=fmt(total);// Discount = subtotal − total (when a coupon has been applied). Matches the\n// CartPage discount-row pattern: green color, leading minus, same money fmt.\nconst discountAmount=subtotal&&total?Number(subtotal.amount)-Number(total.amount):0;const discountValue=discountAmount>1e-4&&subtotal?`−${fmt({amount:String(discountAmount),currencyCode:subtotal.currencyCode})}`:null;// The panel JSX is built once and reused by both the live portal overlay\n// and the canvas inline preview — the only difference is the wrapper + CSS\n// positioning around it.\nconst panel=/*#__PURE__*/_jsxs(\"div\",{role:\"dialog\",\"aria-modal\":\"true\",\"data-fec-cart-drawer-panel\":inlinePreview?undefined:\"\",style:{background:backgroundColor,color:textColor,boxShadow:position===\"right\"?\"-10px 0 30px rgba(0,0,0,0.15)\":\"10px 0 30px rgba(0,0,0,0.15)\",display:\"flex\",flexDirection:\"column\",...inlinePreview?{width:safeWidth,maxWidth:\"100%\",minHeight:700}:{transform:isOpen?\"translateX(0)\":position===\"right\"?\"translateX(100%)\":\"translateX(-100%)\",transition:\"transform 0.3s cubic-bezier(0.32, 0.72, 0, 1)\"}},children:[/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"20px 24px 16px\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsxs(\"h3\",{style:{margin:0,fontSize:20,fontWeight:700,letterSpacing:\"-0.01em\"},children:[title,displayCart?.totalQuantity?` (${displayCart.totalQuantity})`:\"\"]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setOpen(false),\"aria-label\":\"Close cart\",style:{background:\"transparent\",border:\"none\",cursor:\"pointer\",padding:8,margin:-8,color:textColor,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",borderRadius:8},children:/*#__PURE__*/_jsxs(\"svg\",{width:20,height:20,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2.4,strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"})]})})]}),showFreeShippingBar&&threshold>0&&/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"0 24px 16px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:6,background:\"#e5e7eb\",borderRadius:999,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,top:0,bottom:0,width:`${freeShippingProgress*100}%`,background:progressColor,borderRadius:999,transition:\"width 0.4s cubic-bezier(0.32, 0.72, 0, 1)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:`calc(${freeShippingProgress*100}% - 16px)`,top:-6,width:32,height:18,background:progressColor,borderRadius:999,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#fff\",transition:\"left 0.4s cubic-bezier(0.32, 0.72, 0, 1)\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"svg\",{width:14,height:14,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"1\",y:\"3\",width:\"15\",height:\"13\"}),/*#__PURE__*/_jsx(\"polygon\",{points:\"16 8 20 8 23 11 23 16 16 16 16 8\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"5.5\",cy:\"18.5\",r:\"2.5\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"18.5\",cy:\"18.5\",r:\"2.5\"})]})})]}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:10,fontSize:13,fontWeight:500,color:hasFreeShipping?progressColor:mutedTextColor,textAlign:\"center\"},children:hasFreeShipping?freeShippingAchievedLabel:freeShippingProgressLabel.replace(\"{amount}\",remainingFormatted)})]}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,overflowY:\"auto\",borderTop:`1px solid ${dividerColor}`},children:loading&&!cart?/*#__PURE__*/_jsx(\"div\",{style:{padding:32,textAlign:\"center\",color:mutedTextColor,fontSize:13},children:\"Loading…\"}):lines.length===0?/*#__PURE__*/_jsxs(\"div\",{style:{padding:56,textAlign:\"center\",color:mutedTextColor},children:[/*#__PURE__*/_jsxs(\"svg\",{width:48,height:48,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{margin:\"0 auto 16px\",display:\"block\",opacity:.5},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"9\",cy:\"21\",r:\"1\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"20\",cy:\"21\",r:\"1\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14},children:emptyText})]}):lines.map(line=>{const m=line.merchandise;const img=m.image?.url;const opts=m.selectedOptions.filter(o=>!(o.name===\"Title\"&&o.value===\"Default Title\")).map(o=>o.value).join(\" \\xb7 \");const isUpdating=updatingId===line.id;const unitPrice=fmt(m.price);return /*#__PURE__*/_jsxs(\"div\",{style:{padding:\"20px 24px\",display:\"flex\",gap:14,alignItems:\"flex-start\",opacity:isUpdating?.5:1,transition:\"opacity 0.15s ease\",borderBottom:`1px solid ${dividerColor}`},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:72,height:72,background:\"#F3F4F6\",borderRadius:6,flexShrink:0,overflow:\"hidden\"},children:img&&/*#__PURE__*/_jsx(\"img\",{src:img,alt:m.product.title,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"flex-start\",gap:12},children:[/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,fontWeight:600,lineHeight:1.3},children:m.product.title}),opts&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,color:mutedTextColor,marginTop:2},children:opts})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>updateItem(line.id,0),disabled:isUpdating,style:{background:\"transparent\",border:\"none\",color:mutedTextColor,fontSize:12,cursor:\"pointer\",textDecoration:\"underline\",padding:0,flexShrink:0},children:\"Remove\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:10},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",border:`1px solid ${dividerColor}`,borderRadius:999,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>updateItem(line.id,line.quantity-1),disabled:isUpdating,\"aria-label\":\"Decrease quantity\",style:{width:30,height:30,background:\"transparent\",border:\"none\",cursor:isUpdating?\"wait\":\"pointer\",color:textColor,fontSize:16},children:\"−\"}),/*#__PURE__*/_jsx(\"span\",{style:{minWidth:28,textAlign:\"center\",fontSize:13,fontWeight:600},children:line.quantity}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>updateItem(line.id,line.quantity+1),disabled:isUpdating,\"aria-label\":\"Increase quantity\",style:{width:30,height:30,background:\"transparent\",border:\"none\",cursor:isUpdating?\"wait\":\"pointer\",color:textColor,fontSize:16},children:\"+\"})]}),unitPrice&&/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:13,fontWeight:600,color:textColor},children:[line.quantity,\" \\xd7 \",unitPrice]})]})]})]},line.id);})}),showUpsells&&recs.length>0&&lines.length>0&&/*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${dividerColor}`,padding:\"16px 24px\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                            .fec-upsell-strip::-webkit-scrollbar { display: none; }\n                        `}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:13,fontWeight:600,color:textColor,marginBottom:12},children:upsellTitle}),/*#__PURE__*/_jsx(\"div\",{className:\"fec-upsell-strip\",style:{display:\"flex\",gap:12,overflowX:\"auto\",scrollbarWidth:\"none\",msOverflowStyle:\"none\",paddingBottom:2},children:recs.map(rec=>{const node=rec.variants.edges[0]?.node;const available=!!node?.availableForSale;const isAdding=addingRecId===rec.id;const recImg=rec.featuredImage?.url;const recPrice=fmt(rec.priceRange.minVariantPrice);return /*#__PURE__*/_jsxs(\"div\",{style:{width:132,flexShrink:0,display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:64,height:64,background:\"#F3F4F6\",borderRadius:6,overflow:\"hidden\",flexShrink:0},children:recImg&&/*#__PURE__*/_jsx(\"img\",{src:recImg,alt:rec.title,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,fontWeight:500,lineHeight:1.3,color:textColor,display:\"-webkit-box\",WebkitLineClamp:2,WebkitBoxOrient:\"vertical\",overflow:\"hidden\"},children:rec.title}),recPrice&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,fontWeight:600,color:mutedTextColor},children:recPrice}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>addRec(rec),disabled:!available||isAdding,style:{marginTop:\"auto\",padding:\"6px 10px\",background:available?accentColor:\"#E5E7EB\",color:available?accentTextColor:mutedTextColor,border:\"none\",borderRadius:4,fontSize:12,fontWeight:600,cursor:!available||isAdding?\"default\":\"pointer\",fontFamily:\"inherit\"},children:isAdding?\"Adding…\":available?\"+ Add\":\"Sold out\"})]},rec.id);})})]}),lines.length>0&&subtotal&&/*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${dividerColor}`,padding:\"16px 24px 20px\",display:\"flex\",flexDirection:\"column\",gap:14},children:[showActionRow&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-around\",paddingBottom:8,borderBottom:`1px solid ${dividerColor}`},children:[/*#__PURE__*/_jsx(ActionIcon,{icon:\"note\",label:actionNoteLabel}),/*#__PURE__*/_jsx(ActionIcon,{icon:\"shipping\",label:actionShippingLabel}),/*#__PURE__*/_jsx(ActionIcon,{icon:\"coupon\",label:actionCouponLabel})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(Row,{label:subtotalLabel,value:subtotalValue,color:textColor,muted:mutedTextColor}),discountValue&&/*#__PURE__*/_jsx(Row,{label:discountLabel,value:discountValue,color:\"#16a34a\",muted:mutedTextColor}),/*#__PURE__*/_jsx(Row,{label:shippingLabel,value:shippingValue,color:textColor,muted:mutedTextColor}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"baseline\",fontSize:18,fontWeight:700,paddingTop:6},children:[/*#__PURE__*/_jsx(\"span\",{children:totalLabel}),/*#__PURE__*/_jsx(\"span\",{children:totalValue})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:10,marginTop:4},children:[showViewCart&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:goToCartPage,style:{flex:1,padding:\"13px 16px\",background:secondaryButtonBg,color:secondaryButtonText,border:`1px solid ${secondaryButtonText}`,borderRadius:4,fontSize:14,fontWeight:600,cursor:\"pointer\",fontFamily:\"inherit\",letterSpacing:\"0.02em\"},children:viewCartLabel}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:proceedToCheckout,style:{flex:1,padding:\"13px 16px\",background:accentColor,color:accentTextColor,border:\"none\",borderRadius:4,fontSize:14,fontWeight:600,cursor:\"pointer\",fontFamily:\"inherit\",letterSpacing:\"0.02em\"},children:checkoutLabel})]})]})]});// Canvas inline preview — return the panel as a normal in-flow block at the\n// component's own spot on the page. The designer can see and style it\n// without Framer's right-side property panel covering the fixed overlay.\n// Live runtime is unaffected (this branch only fires in the editor canvas).\nif(inlinePreview){return panel;}const overlay=/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",inset:0,zIndex:9999,pointerEvents:isOpen?\"auto\":\"none\",fontFamily:\"Inter, system-ui, sans-serif\"},children:[/*#__PURE__*/_jsx(\"div\",{\"data-fec-cart-drawer-backdrop\":\"\",onClick:()=>setOpen(false),style:{background:\"rgba(0,0,0,0.5)\",opacity:isOpen?1:0,transition:\"opacity 0.25s ease\"}}),panel]});// Portal the overlay to a div we manually appended to document.body (see the\n// useEffect above). Targeting our own root container instead of\n// document.body directly is the only reliable way to ensure the overlay sits\n// ABOVE Framer's #main wrapper.\nconst portaledOverlay=portalRoot?/*#__PURE__*/createPortal(overlay,portalRoot):null;return /*#__PURE__*/_jsxs(_Fragment,{children:[anchor,portaledOverlay]});}function Row({label,value,color,muted}){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"baseline\",fontSize:14},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:muted},children:label}),/*#__PURE__*/_jsx(\"span\",{style:{color,fontWeight:600},children:value})]});}// `icon` selects the glyph, `label` is the caption underneath. These are kept\n// SEPARATE on purpose: the caption is a user-editable prop, so keying the icon\n// off the label text (as this did originally) would drop to the fallback glyph\n// the moment anyone reworded or translated it.\nfunction ActionIcon({icon:iconName,label}){const icon=iconName===\"note\"?/*#__PURE__*/_jsx(\"path\",{d:\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6 M16 13H8 M16 17H8 M10 9H8\"}):iconName===\"shipping\"?/*#__PURE__*/_jsx(\"path\",{d:\"M1 3h15v13H1z M16 8h4l3 3v5h-7V8 M5.5 21a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z M18.5 21a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z\"}):/*#__PURE__*/_jsx(\"path\",{d:\"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z M7 7h.01\"});return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",style:{background:\"transparent\",border:\"none\",cursor:\"pointer\",display:\"inline-flex\",flexDirection:\"column\",alignItems:\"center\",gap:4,padding:6,color:\"#0a0a0a\",fontFamily:\"inherit\",fontSize:11,fontWeight:500},\"aria-label\":label,children:[/*#__PURE__*/_jsx(\"svg\",{width:20,height:20,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:1.6,strokeLinecap:\"round\",strokeLinejoin:\"round\",children:icon}),label]});}addPropertyControls(CartDrawer,{storefrontToken:{type:ControlType.String,title:\"Storefront Token\",hidden:()=>true,defaultValue:\"\"},storeDomain:{type:ControlType.String,title:\"Store Domain\",hidden:()=>true,defaultValue:\"\",placeholder:\"your-store.myshopify.com\"},position:{type:ControlType.Enum,title:\"Side\",defaultValue:\"right\",options:[\"right\",\"left\"],optionTitles:[\"Right\",\"Left\"]},width:{type:ControlType.Number,title:\"Width\",defaultValue:540,min:320,max:720,unit:\"px\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Shopping Cart\"},emptyText:{type:ControlType.String,title:\"Empty text\",defaultValue:\"Your cart is empty\"},// OFF by default. This bar is a MARKETING MESSAGE driven purely by the\n// threshold below — it has no connection to the store's real shipping\n// rules, which only Shopify's checkout knows. Left on by default it fired\n// \"You've got free shipping!\" on any cart over the default threshold and\n// the shopper was then charged at checkout. A promise the storefront cannot\n// keep is worse than no bar, so the designer opts in after setting a\n// threshold that matches their actual free-shipping rule.\nshowFreeShippingBar:{type:ControlType.Boolean,title:\"Free Ship Bar\",defaultValue:false,description:\"A marketing message you control — it is NOT connected to your store's shipping rules. Only turn it on if the threshold below matches a real free-shipping rule in Shopify, or shoppers will be told they have free shipping and then charged at checkout.\",enabledTitle:\"Show\",disabledTitle:\"Hide\"},freeShippingThreshold:{type:ControlType.Number,title:\"Free Ship At\",defaultValue:200,min:0,max:1e5,hidden:props=>!props.showFreeShippingBar},freeShippingProgressLabel:{type:ControlType.String,title:\"Progress text\",defaultValue:\"Add {amount} more to unlock free shipping\",description:\"Use {amount} as the placeholder for remaining money.\",hidden:props=>!props.showFreeShippingBar},freeShippingAchievedLabel:{type:ControlType.String,title:\"Achieved text\",defaultValue:\"Congratulations! You've got free shipping!\",hidden:props=>!props.showFreeShippingBar},showActionRow:{type:ControlType.Boolean,title:\"Action Row\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},// Captions under the Note / Shipping / Coupon icons. The icons themselves\n// are fixed — only the text is editable, so translating is safe.\nshowViewCart:{type:ControlType.Boolean,title:\"View Cart Btn\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},viewCartLabel:{type:ControlType.String,title:\"View Cart label\",defaultValue:\"View Cart\",hidden:props=>!props.showViewCart},checkoutLabel:{type:ControlType.String,title:\"Checkout label\",defaultValue:\"Checkout\"},// Captions for the footer totals rows. Exposed so the drawer can be\n// reworded or translated without unlinking the component.\nshowUpsells:{type:ControlType.Boolean,title:\"Upsells\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},upsellTitle:{type:ControlType.String,title:\"Upsell title\",defaultValue:\"You may also add\",hidden:props=>!props.showUpsells},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#0a0a0a\"},mutedTextColor:{type:ControlType.Color,title:\"Muted text\",defaultValue:\"#6b7280\"},dividerColor:{type:ControlType.Color,title:\"Divider\",defaultValue:\"#e5e7eb\"},accentColor:{type:ControlType.Color,title:\"Checkout BG\",defaultValue:\"#3E3E41\"},accentTextColor:{type:ControlType.Color,title:\"Checkout text\",defaultValue:\"#FFFFFF\"},secondaryButtonBg:{type:ControlType.Color,title:\"View Cart BG\",defaultValue:\"#FFFFFF\"},secondaryButtonText:{type:ControlType.Color,title:\"View Cart text\",defaultValue:\"#0a0a0a\"},progressColor:{type:ControlType.Color,title:\"Progress\",defaultValue:\"#22c55e\"},fallbackOpen:{type:ControlType.Boolean,title:\"Preview in Canvas\",description:\"Show the drawer here on the canvas so you can style it. Has no effect on the live site.\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},// All wording on the drawer/page in ONE collapsible section.\n// These controls were never shipped un-grouped, so moving them here\n// cannot reset anyone's customised text. Controls that ARE already\n// released (title, empty state, checkout button, colours) stay\n// top-level for exactly that reason.\nlabelGroup:{type:ControlType.Object,title:\"Labels\",controls:{subtotalLabel:{type:ControlType.String,title:\"Subtotal label\",defaultValue:\"Subtotal\"},discountLabel:{type:ControlType.String,title:\"Discount label\",defaultValue:\"Discount\",description:\"Only shown when a discount code is applied.\"},shippingLabel:{type:ControlType.String,title:\"Shipping label\",defaultValue:\"Shipping\"},freeShippingLabel:{type:ControlType.String,title:\"Shipping value\",defaultValue:\"Free shipping\",description:\"Value on the shipping row. Real shipping is calculated at checkout.\"},totalLabel:{type:ControlType.String,title:\"Total label\",defaultValue:\"Total\"},actionNoteLabel:{type:ControlType.String,title:\"Note label\",defaultValue:\"Note\",hidden:props=>!props.showActionRow},actionShippingLabel:{type:ControlType.String,title:\"Ship icon label\",defaultValue:\"Shipping\",hidden:props=>!props.showActionRow},actionCouponLabel:{type:ControlType.String,title:\"Coupon label\",defaultValue:\"Coupon\",hidden:props=>!props.showActionRow}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CartDrawer\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CartDrawer.map"],"mappings":"A,iPA6B4B,eAAeoB,EAAG,EAAK,EAAM,EAAM,EAAU,CAAC,IAAMC,GAAOC,GAAM,GAAA,CAAI,KAAK,CAAC,CAAC,QAAQ,gBAAgB,EAAE,CAAC,CAAC,QAAQ,QAAQ,EAAE,EAAQC,EAAI,MAAM,MAAM,WAAWF,EAAM,OAAOG,EAAY,eAAe,CAAC,OAAO,OAAO,QAAQ,CAAC,eAAe,mBAAmB,qCAAqCC,GAAO,GAAA,CAAI,KAAK,CAAC,EAAE,KAAK,KAAK,UAAU,CAAC,QAAM,WAAS,CAAC,CAAC,CAAC,EAAE,GAAG,CAACF,EAAI,GAAG,MAAU,MAAM,QAAQA,EAAI,QAAQ,EAA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