{"version":3,"file":"Examples.CueUdUcO.mjs","names":["useState","useState","useMemo","useCallback","startTransition","useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/6gsgDsSUC0rE42x9eQF3/LaJivUEgxA2EJ53CnEhk/Examples.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";// @ts-ignore\nimport{addPropertyControls,ControlType}from\"framer\";// @ts-ignore\nimport{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// @ts-ignore\nimport{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\",backdropColor:\"#FFFFFF\",arrowColor:\"#AAA594\",arrowSize:39,arrowOffset:20,imageMaxWidth:92,imageMaxHeight:90});const CART_STORAGE_KEY=\"print_purchase_panel_cart_v1\";/**\n * User request: Create a GalleryLightboxSettings component that uses shared store values\n * to configure withGalleryLightboxNavigation from canvas property controls.\n *//**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export function GalleryLightboxSettings(props){const[,setStore]=useStore();const{backdropColor,arrowColor,arrowSize,arrowOffset,imageMaxWidth,imageMaxHeight}=props;useEffect(()=>{startTransition(()=>{setStore({backdropColor,arrowColor,arrowSize,arrowOffset,imageMaxWidth,imageMaxHeight});});},[arrowColor,arrowOffset,arrowSize,backdropColor,imageMaxHeight,imageMaxWidth,setStore]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:1,height:1,opacity:0,pointerEvents:\"none\",overflow:\"hidden\"}});}addPropertyControls(GalleryLightboxSettings,{backdropColor:{type:ControlType.Color,title:\"Backdrop\",defaultValue:\"#FFFFFF\"},arrowColor:{type:ControlType.Color,title:\"Arrow\",defaultValue:\"#AAA594\"},arrowSize:{type:ControlType.Number,title:\"Arrow Size\",defaultValue:39,min:20,max:72,step:1},arrowOffset:{type:ControlType.Number,title:\"Arrow Offset\",defaultValue:20,min:0,max:80,step:1},imageMaxWidth:{type:ControlType.Number,title:\"Image Max W\",defaultValue:92,min:60,max:100,unit:\"%\",step:1},imageMaxHeight:{type:ControlType.Number,title:\"Image Max H\",defaultValue:90,min:50,max:100,unit:\"%\",step:1}});/**\n * User request: Create a Print Purchase Panel component for editorial photography CMS product pages\n * with size selection, add-to-cart, cart persistence, and optional checkout endpoint posting.\n *//**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export function PrintPurchasePanel(props){const{productId=\"product-id\",title=\"Untitled Print\",imageUrl=\"\",isPhysicalPrint=true,smallLabel=\"Small\",smallPrice=90,mediumLabel=\"Medium\",mediumPrice=140,largeLabel=\"Large\",largePrice=220,presetPrice=120,currency=\"EUR\",checkoutEndpoint=\"\",accentColor=\"#000000\",surfaceColor=\"#FFFFFF\",textColor=\"#000000\",borderColor=\"#EAEAEA\",cornerRadius=10}=props;const[selectedSize,setSelectedSize]=useState(\"small\");const[cart,setCart]=useState([]);const[isHydrated,setIsHydrated]=useState(false);const[isCheckingOut,setIsCheckingOut]=useState(false);const[checkoutError,setCheckoutError]=useState(\"\");const sizeOptions=useMemo(()=>{if(!isPhysicalPrint)return[];return[{id:\"small\",label:smallLabel,price:smallPrice},{id:\"medium\",label:mediumLabel,price:mediumPrice},{id:\"large\",label:largeLabel,price:largePrice}];},[isPhysicalPrint,largeLabel,largePrice,mediumLabel,mediumPrice,smallLabel,smallPrice]);const activeSelection=useMemo(()=>{if(!isPhysicalPrint){return{label:\"Preset\",price:presetPrice};}const found=sizeOptions.find(option=>option.id===selectedSize);return found??sizeOptions[0]??{label:\"Small\",price:smallPrice};},[isPhysicalPrint,presetPrice,selectedSize,sizeOptions,smallPrice]);const formatPrice=useCallback(value=>new Intl.NumberFormat(\"de-DE\",{style:\"currency\",currency:currency||\"EUR\",maximumFractionDigits:0}).format(value),[currency]);useEffect(()=>{if(typeof window!==\"undefined\"){const raw=window.localStorage.getItem(CART_STORAGE_KEY);if(raw){try{const parsed=JSON.parse(raw);if(Array.isArray(parsed)){startTransition(()=>setCart(parsed));}}catch(error){console.error(\"Cart parse failed\",error);}}}startTransition(()=>setIsHydrated(true));},[]);useEffect(()=>{if(!isHydrated||typeof window===\"undefined\")return;window.localStorage.setItem(CART_STORAGE_KEY,JSON.stringify(cart));},[cart,isHydrated]);const addToCart=useCallback(()=>{const sizeLabel=isPhysicalPrint?activeSelection.label:\"Preset\";const key=`${productId}::${sizeLabel}`;startTransition(()=>{setCheckoutError(\"\");setCart(prev=>{const existingIndex=prev.findIndex(item=>item.key===key);if(existingIndex===-1){return[...prev,{key,productId,title,imageUrl,sizeLabel,unitPrice:activeSelection.price,quantity:1,isPhysicalPrint}];}return prev.map((item,index)=>index===existingIndex?{...item,quantity:item.quantity+1}:item);});});},[activeSelection.label,activeSelection.price,imageUrl,isPhysicalPrint,productId,title]);const updateQuantity=useCallback((key,nextQty)=>{startTransition(()=>{setCart(prev=>prev.map(item=>item.key===key?{...item,quantity:nextQty}:item).filter(item=>item.quantity>0));});},[]);const removeItem=useCallback(key=>{startTransition(()=>{setCart(prev=>prev.filter(item=>item.key!==key));});},[]);const totals=useMemo(()=>{const itemCount=cart.reduce((sum,item)=>sum+item.quantity,0);const subtotal=cart.reduce((sum,item)=>sum+item.quantity*item.unitPrice,0);return{itemCount,subtotal};},[cart]);const handleCheckout=useCallback(async()=>{if(!checkoutEndpoint||cart.length===0||isCheckingOut)return;startTransition(()=>{setIsCheckingOut(true);setCheckoutError(\"\");});try{const response=await fetch(checkoutEndpoint,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({cart,currency,submittedAt:new Date().toISOString()})});const data=await response.json().catch(()=>({}));if(data?.checkoutUrl&&typeof window!==\"undefined\"){window.location.href=data.checkoutUrl;}}catch(error){const message=error instanceof Error?error.message:\"Checkout request failed.\";startTransition(()=>setCheckoutError(message));}finally{startTransition(()=>setIsCheckingOut(false));}},[cart,checkoutEndpoint,currency,isCheckingOut]);return /*#__PURE__*/_jsxs(\"section\",{\"aria-label\":\"Print purchase panel\",style:{position:\"relative\",width:\"100%\",boxSizing:\"border-box\",background:surfaceColor,color:textColor,border:`1px solid ${borderColor}`,borderRadius:cornerRadius,padding:16,display:\"flex\",flexDirection:\"column\",gap:14,fontFamily:\"Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:6},children:[/*#__PURE__*/_jsx(\"strong\",{style:{fontSize:15},children:title}),/*#__PURE__*/_jsxs(\"span\",{style:{fontSize:13,color:\"#666666\"},children:[isPhysicalPrint?\"Fine Art Print\":\"Preset Download\",\" \\xb7\",\" \",formatPrice(activeSelection.price)]})]}),isPhysicalPrint?/*#__PURE__*/_jsxs(\"fieldset\",{style:{margin:0,padding:0,border:\"none\",display:\"flex\",flexWrap:\"wrap\",gap:8},children:[/*#__PURE__*/_jsx(\"legend\",{style:{fontSize:12,marginBottom:8,color:\"#666666\"},children:\"Gr\\xf6\\xdfe w\\xe4hlen\"}),sizeOptions.map(option=>{const active=option.id===selectedSize;return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-pressed\":active,onClick:()=>startTransition(()=>setSelectedSize(option.id)),style:{border:`1px solid ${active?accentColor:borderColor}`,background:active?accentColor:\"transparent\",color:active?\"#FFFFFF\":textColor,padding:\"6px 10px\",borderRadius:Math.max(6,cornerRadius-4),fontSize:13,lineHeight:1.2,cursor:\"pointer\"},children:[option.label,\" \\xb7 \",formatPrice(option.price)]},option.id);})]}):/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:13,color:\"#666666\"},children:[\"Preis: \",formatPrice(presetPrice)]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:addToCart,style:{border:\"1px solid #000000\",background:\"#000000\",color:\"#FFFFFF\",padding:\"10px 12px\",borderRadius:Math.max(6,cornerRadius-2),fontSize:14,cursor:\"pointer\"},children:\"Add to cart\"}),/*#__PURE__*/_jsxs(\"div\",{role:\"region\",\"aria-label\":\"Cart summary\",style:{borderTop:`1px solid ${borderColor}`,paddingTop:12,display:\"flex\",flexDirection:\"column\",gap:10},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"strong\",{style:{fontSize:14},children:\"Warenkorb\"}),/*#__PURE__*/_jsxs(\"span\",{style:{fontSize:12,color:\"#666666\"},children:[totals.itemCount,\" Artikel\"]})]}),cart.length===0?/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13,color:\"#666666\"},children:\"Noch keine Artikel im Warenkorb.\"}):/*#__PURE__*/_jsx(\"ul\",{style:{listStyle:\"none\",margin:0,padding:0,display:\"flex\",flexDirection:\"column\",gap:8},children:cart.map(item=>/*#__PURE__*/_jsxs(\"li\",{style:{border:`1px solid ${borderColor}`,borderRadius:Math.max(6,cornerRadius-4),padding:8,display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",gap:8,alignItems:\"start\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:8},children:[item.imageUrl?/*#__PURE__*/_jsx(\"img\",{src:item.imageUrl,alt:\"\",style:{width:34,height:34,objectFit:\"cover\",borderRadius:4,border:`1px solid ${borderColor}`}}):null,/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:13},children:item.title}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,color:\"#666666\"},children:item.sizeLabel})]})]}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13},children:formatPrice(item.unitPrice*item.quantity)})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:6},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":`Decrease quantity for ${item.title}`,onClick:()=>updateQuantity(item.key,Math.max(0,item.quantity-1)),style:{width:28,height:28,border:`1px solid ${borderColor}`,background:surfaceColor,borderRadius:8,cursor:\"pointer\"},children:\"−\"}),/*#__PURE__*/_jsx(\"span\",{\"aria-live\":\"polite\",style:{minWidth:20,textAlign:\"center\",fontSize:13,lineHeight:\"28px\"},children:item.quantity}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":`Increase quantity for ${item.title}`,onClick:()=>updateQuantity(item.key,item.quantity+1),style:{width:28,height:28,border:`1px solid ${borderColor}`,background:surfaceColor,borderRadius:8,cursor:\"pointer\"},children:\"+\"})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>removeItem(item.key),style:{border:\"none\",background:\"transparent\",color:\"#666666\",textDecoration:\"underline\",fontSize:12,cursor:\"pointer\"},children:\"Entfernen\"})]})]},item.key))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",borderTop:`1px solid ${borderColor}`,paddingTop:10,fontSize:14},children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Subtotal\"}),/*#__PURE__*/_jsx(\"strong\",{children:formatPrice(totals.subtotal)})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",disabled:!checkoutEndpoint||cart.length===0||isCheckingOut,onClick:handleCheckout,style:{border:`1px solid ${!checkoutEndpoint||cart.length===0?borderColor:\"#000000\"}`,background:!checkoutEndpoint||cart.length===0?\"#F2F2F2\":\"#000000\",color:!checkoutEndpoint||cart.length===0?\"#666666\":\"#FFFFFF\",padding:\"10px 12px\",borderRadius:Math.max(6,cornerRadius-2),fontSize:14,cursor:!checkoutEndpoint||cart.length===0?\"not-allowed\":\"pointer\"},children:!checkoutEndpoint?\"Checkout wird vorbereitet\":isCheckingOut?\"Weiterleitung…\":\"Checkout\"}),checkoutError?/*#__PURE__*/_jsx(\"span\",{role:\"alert\",style:{color:\"#B00020\",fontSize:12},children:checkoutError}):null]})]});}addPropertyControls(PrintPurchasePanel,{productId:{type:ControlType.String,title:\"Product ID\",defaultValue:\"cms-product-id\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Editorial Print\"},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"},isPhysicalPrint:{type:ControlType.Boolean,title:\"Physical\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},smallLabel:{type:ControlType.String,title:\"Small Label\",defaultValue:\"Small\"},smallPrice:{type:ControlType.Number,title:\"Small Price\",defaultValue:90,min:0,max:1e4,step:1},mediumLabel:{type:ControlType.String,title:\"Medium Label\",defaultValue:\"Medium\"},mediumPrice:{type:ControlType.Number,title:\"Medium Price\",defaultValue:140,min:0,max:1e4,step:1},largeLabel:{type:ControlType.String,title:\"Large Label\",defaultValue:\"Large\"},largePrice:{type:ControlType.Number,title:\"Large Price\",defaultValue:220,min:0,max:1e4,step:1},presetPrice:{type:ControlType.Number,title:\"Preset Price\",defaultValue:120,min:0,max:1e4,step:1},currency:{type:ControlType.String,title:\"Currency\",defaultValue:\"EUR\"},checkoutEndpoint:{type:ControlType.String,title:\"Checkout API\",defaultValue:\"\",placeholder:\"https://...\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#000000\"},surfaceColor:{type:ControlType.Color,title:\"Surface\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#000000\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#EAEAEA\"},cornerRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:10,min:0,max:32,step:1}});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}function extractUrlsFromBackgroundImage(backgroundImage){if(!backgroundImage||backgroundImage===\"none\")return[];const matches=[...backgroundImage.matchAll(/url\\((['\"]?)(.*?)\\1\\)/g)];return matches.map(match=>match[2]).filter(Boolean);}function isElementVisible(element){if(typeof window===\"undefined\")return true;const style=window.getComputedStyle(element);if(style.display===\"none\"||style.visibility===\"hidden\"||style.opacity===\"0\"){return false;}const rect=element.getBoundingClientRect();return rect.width>0&&rect.height>0;}function getElementUrls(element){const urls=[];if(element instanceof HTMLImageElement){const imageUrl=element.currentSrc||element.src;if(imageUrl)urls.push(imageUrl);}if(typeof window!==\"undefined\"){const computedStyle=window.getComputedStyle(element);urls.push(...extractUrlsFromBackgroundImage(computedStyle.backgroundImage||\"\"));}return urls;}function collectGalleryEntries(root){const entries=[];const nodes=root.querySelectorAll(\"*\");nodes.forEach(node=>{if(!isElementVisible(node))return;const urls=getElementUrls(node);urls.forEach(url=>{entries.push({url,element:node});});});return entries;}export function withGalleryLightboxNavigation(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store]=useStore();const rootRef=useRef(null);const portalRef=useRef(null);const[isOpen,setIsOpen]=useState(false);const[urls,setUrls]=useState([]);const[index,setIndex]=useState(0);const setRootRef=useCallback(node=>{rootRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&\"current\"in ref){ref.current=node;}},[ref]);const closeLightbox=useCallback(()=>{startTransition(()=>{setIsOpen(false);});},[]);const goPrevious=useCallback(()=>{startTransition(()=>{setIndex(prev=>{if(urls.length===0)return 0;return(prev-1+urls.length)%urls.length;});});},[urls.length]);const goNext=useCallback(()=>{startTransition(()=>{setIndex(prev=>{if(urls.length===0)return 0;return(prev+1)%urls.length;});});},[urls.length]);const currentUrl=useMemo(()=>urls[index]??\"\",[urls,index]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const portalNode=document.createElement(\"div\");portalNode.setAttribute(\"data-gallery-lightbox-portal\",\"true\");document.body.appendChild(portalNode);portalRef.current=portalNode;return()=>{if(portalRef.current?.parentNode){portalRef.current.parentNode.removeChild(portalRef.current);}portalRef.current=null;};},[]);useEffect(()=>{if(!isOpen||typeof window===\"undefined\")return;const onKeyDown=event=>{if(event.key===\"Escape\"){event.preventDefault();closeLightbox();}else if(event.key===\"ArrowLeft\"){event.preventDefault();goPrevious();}else if(event.key===\"ArrowRight\"){event.preventDefault();goNext();}};window.addEventListener(\"keydown\",onKeyDown);return()=>{window.removeEventListener(\"keydown\",onKeyDown);};},[closeLightbox,goNext,goPrevious,isOpen]);useEffect(()=>{if(typeof document===\"undefined\")return;const previousOverflow=document.body.style.overflow;if(isOpen){document.body.style.overflow=\"hidden\";}else{document.body.style.overflow=previousOverflow;}return()=>{document.body.style.overflow=previousOverflow;};},[isOpen]);const onGridClickCapture=useCallback(event=>{props.onClickCapture?.(event);if(event.defaultPrevented)return;const root=rootRef.current;const target=event.target;if(!root||!target||!root.contains(target))return;const entries=collectGalleryEntries(root);if(entries.length===0)return;let clickedIndex=-1;let cursor=target;while(cursor&&cursor!==root&&clickedIndex===-1){clickedIndex=entries.findIndex(entry=>entry.element===cursor||cursor.contains(entry.element));cursor=cursor.parentElement;}if(clickedIndex===-1){clickedIndex=entries.findIndex(entry=>target.contains(entry.element));}if(clickedIndex===-1)return;event.preventDefault();event.stopPropagation();const nativeEvent=event.nativeEvent;nativeEvent.stopImmediatePropagation?.();startTransition(()=>{setUrls(entries.map(entry=>entry.url));setIndex(clickedIndex);setIsOpen(true);});},[props]);const overlay=isOpen&&portalRef.current?/*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"div\",{role:\"dialog\",\"aria-modal\":\"true\",\"aria-label\":\"Image gallery lightbox\",style:{position:\"fixed\",inset:0,background:store.backdropColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:2147483647},onClick:closeLightbox,children:[/*#__PURE__*/_jsx(\"button\",{\"aria-label\":\"Close gallery\",onClick:event=>{event.stopPropagation();closeLightbox();},style:{position:\"absolute\",top:20,right:20,width:44,height:44,borderRadius:999,border:\"1px solid rgba(0, 0, 0, 0.12)\",background:\"#FFFFFF\",color:\"#000000\",fontSize:24,lineHeight:\"1\",cursor:\"pointer\"},children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"button\",{\"aria-label\":\"Previous image\",onClick:event=>{event.stopPropagation();goPrevious();},style:{position:\"absolute\",left:store.arrowOffset,top:\"50%\",transform:\"translateY(-50%)\",width:48,height:48,borderRadius:0,border:\"none\",background:\"transparent\",color:store.arrowColor,fontSize:store.arrowSize,lineHeight:\"1\",cursor:\"pointer\"},children:\"‹\"}),/*#__PURE__*/_jsx(\"button\",{\"aria-label\":\"Next image\",onClick:event=>{event.stopPropagation();goNext();},style:{position:\"absolute\",right:store.arrowOffset,top:\"50%\",transform:\"translateY(-50%)\",width:48,height:48,borderRadius:0,border:\"none\",background:\"transparent\",color:store.arrowColor,fontSize:store.arrowSize,lineHeight:\"1\",cursor:\"pointer\"},children:\"›\"}),/*#__PURE__*/_jsx(\"div\",{style:{maxWidth:`min(${store.imageMaxWidth}vw, 1400px)`,maxHeight:`${store.imageMaxHeight}vh`},onClick:event=>event.stopPropagation(),children:currentUrl?/*#__PURE__*/_jsx(\"img\",{src:currentUrl,alt:`Gallery image ${index+1}`,style:{display:\"block\",maxWidth:\"100%\",maxHeight:`${store.imageMaxHeight}vh`,objectFit:\"contain\"}}):null})]}),portalRef.current):null;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{ref:setRootRef,...props,onClickCapture:onGridClickCapture}),overlay]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withGalleryLightboxNavigation\":{\"type\":\"reactHoc\",\"name\":\"withGalleryLightboxNavigation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GalleryLightboxSettings\":{\"type\":\"reactComponent\",\"name\":\"GalleryLightboxSettings\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"PrintPurchasePanel\":{\"type\":\"reactComponent\",\"name\":\"PrintPurchasePanel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"wQAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,CAAM,CAAC,CAAC,CAAC,EACjD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,KAAK,GAAG,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,CAAQ,CAAC,CAAE,EACjI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,CAAM,CAAC,EAAE,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,CAAU,GAAG,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,CAAQ,CAAC,EAAE,EACjJ,EAAa,QAAQ,GAAQ,EAAO,CAAU,CAAC,CAAE,EACjD,SAAS,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUA,EAAS,CAAU,EAKzC,OAHA,OACA,EAAa,IAAI,CAAQ,MAAY,EAAa,OAAO,CAAQ,GAAI,CAAC,CAAC,EACpE,EAAe,IAAI,IAAM,EAAe,EAAQ,CAAC,EAAU,MAAM,CAAY,GAC1E,CAAC,EAAM,CAAa,CAAG,CAAC,OAAO,CAAS,iBAfT,IAAwC,kCEAhE,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EAWI,CADA,GAAG,CACO,sBELX,SAAgB,EAAwB,EAAM,C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