{"version":3,"file":"AppleGlassStack_1.CIWL6eMJ.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/RH4OwAktzatBl8gk3QAB/yJKCI7DjB38nDVsHDYT6/AppleGlassStack_1.js"],"sourcesContent":["// User instructions: center the cards (not aligned to the right) and allow choosing how many cards are placed across the screen (cards per row).\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";import*as React from\"react\";function clampInt(value,min,max){return Math.max(min,Math.min(max,Math.round(value)));}/**\n * @framerIntrinsicWidth 900\n * @framerIntrinsicHeight 500\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AppleGlassStack(props){const isStatic=useIsStaticRenderer();const{items,cardsPerRow,gap,containerPadding,allowOverflow,cardMaxWidth,cardMinHeight,glassColor,glassOpacity,blur,borderRadius,strokeSize,strokeColor,showShine,shineColor,titleFont,bodyFont,titleColor,bodyColor,hoverLift,style}=props;const columns=clampInt(cardsPerRow,1,12);return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",boxSizing:\"border-box\",padding:`${containerPadding}px`,overflow:allowOverflow?\"visible\":\"hidden\",display:\"grid\",gap:`${gap}px`,gridTemplateColumns:`repeat(${columns}, minmax(0, 1fr))`,justifyContent:\"center\",justifyItems:\"center\",alignContent:\"start\"},children:items.map((item,index)=>/*#__PURE__*/_jsx(GlassCard,{item:item,isStatic:isStatic,cardMaxWidth:cardMaxWidth,cardMinHeight:cardMinHeight,glassColor:glassColor,glassOpacity:glassOpacity,blur:blur,borderRadius:borderRadius,strokeSize:strokeSize,strokeColor:strokeColor,showShine:showShine,shineColor:shineColor,titleFont:titleFont,bodyFont:bodyFont,titleColor:titleColor,bodyColor:bodyColor,hoverLift:hoverLift},index))});}function GlassCard(props){const{item,isStatic,cardMaxWidth,cardMinHeight,glassColor,glassOpacity,blur,borderRadius,strokeSize,strokeColor,showShine,shineColor,titleFont,bodyFont,titleColor,bodyColor,hoverLift}=props;const[hovering,setHovering]=React.useState(false);const runMotion=!isStatic;const image=item.image??{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient\"};return /*#__PURE__*/_jsxs(motion.article,{style:{position:\"relative\",width:\"100%\",maxWidth:`${cardMaxWidth}px`,minHeight:`${cardMinHeight}px`,borderRadius:`${borderRadius}px`,overflow:\"hidden\",boxSizing:\"border-box\",cursor:\"default\",transform:\"translateZ(0)\"},initial:false,whileHover:runMotion?{y:-hoverLift,scale:1.01}:undefined,transition:{duration:.25,ease:\"easeOut\"},\"aria-label\":item.title,onHoverStart:runMotion?()=>{React.startTransition(()=>setHovering(true));}:undefined,onHoverEnd:runMotion?()=>{React.startTransition(()=>setHovering(false));}:undefined,children:[item.image?.src?/*#__PURE__*/_jsx(\"img\",{src:item.image.src,srcSet:item.image.srcSet,alt:item.image.alt??\"\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",opacity:1}}):null,/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundColor:glassColor,opacity:glassOpacity,backdropFilter:blur>0?`blur(${blur}px)`:undefined,WebkitBackdropFilter:blur>0?`blur(${blur}px)`:undefined}}),showShine?/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:0,pointerEvents:\"none\",background:`linear-gradient(90deg, transparent 0%, ${shineColor} 48%, ${shineColor} 52%, transparent 100%)`,mixBlendMode:\"screen\",x:\"-120%\"},initial:false,animate:runMotion&&hovering?{x:[\"-120%\",\"120%\"]}:{x:\"-120%\"},transition:runMotion&&hovering?{duration:1.1,ease:[.25,.1,.25,1],repeat:Infinity,repeatDelay:.8}:{duration:.2}}):null,strokeSize>0?/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,border:`${strokeSize}px solid ${strokeColor}`,borderRadius:`${borderRadius}px`,pointerEvents:\"none\"}}):null,/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:1,width:\"100%\",height:\"100%\",boxSizing:\"border-box\",padding:\"28px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,color:titleColor,...titleFont,width:\"max-content\",maxWidth:\"100%\"},children:item.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:bodyColor,...bodyFont,maxWidth:520},children:item.body})]})]});}addPropertyControls(AppleGlassStack,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Glass Card\"},body:{type:ControlType.String,title:\"Body\",defaultValue:\"Liquid glass style card.\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"}}},defaultValue:[{title:\"Innovation\",body:\"Experience the future of design with liquid glass aesthetics.\"},{title:\"Performance\",body:\"Smooth animations and seamless interactions.\"},{title:\"Design\",body:\"Glassmorphism inspired by modern UI systems.\"}]},cardsPerRow:{type:ControlType.Number,title:\"Cards / row\",defaultValue:3,min:1,max:12,step:1},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:20,min:0,max:120,step:1,unit:\"px\"},containerPadding:{type:ControlType.Number,title:\"Padding\",defaultValue:20,min:0,max:160,step:1,unit:\"px\"},allowOverflow:{type:ControlType.Boolean,title:\"Overflow\",defaultValue:true,enabledTitle:\"Visible\",disabledTitle:\"Hidden\"},cardMaxWidth:{type:ControlType.Number,title:\"Card max W\",defaultValue:320,min:160,max:1200,step:10,unit:\"px\"},cardMinHeight:{type:ControlType.Number,title:\"Card min H\",defaultValue:200,min:120,max:900,step:10,unit:\"px\"},glassColor:{type:ControlType.Color,title:\"Glass\",defaultValue:\"rgba(255, 255, 255, 0.1)\"},glassOpacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.85,min:0,max:1,step:.05},blur:{type:ControlType.Number,title:\"Blur\",defaultValue:14,min:0,max:60,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:24,min:0,max:64,step:1,unit:\"px\"},strokeSize:{type:ControlType.Number,title:\"Stroke\",defaultValue:1,min:0,max:10,step:.5,unit:\"px\"},strokeColor:{type:ControlType.Color,title:\"Stroke color\",defaultValue:\"rgba(255, 255, 255, 0.18)\"},showShine:{type:ControlType.Boolean,title:\"Shine\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},shineColor:{type:ControlType.Color,title:\"Shine color\",defaultValue:\"rgba(255, 255, 255, 0.22)\",hidden:({showShine})=>!showShine},titleFont:{type:ControlType.Font,title:\"Title font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Semibold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}},bodyFont:{type:ControlType.Font,title:\"Body font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},titleColor:{type:ControlType.Color,title:\"Title\",defaultValue:\"#FFFFFF\"},bodyColor:{type:ControlType.Color,title:\"Body\",defaultValue:\"rgba(255, 255, 255, 0.8)\"},hoverLift:{type:ControlType.Number,title:\"Hover lift\",defaultValue:8,min:0,max:40,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AppleGlassStack\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"500\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"900\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppleGlassStack_1.map"],"mappings":"iPAC+L,SAAS,EAAS,EAAM,EAAI,EAAI,CAAC,OAAO,KA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