{"version":3,"file":"PreviewCard.Ona2jRba.mjs","names":["useState","useId","startTransition"],"sources":["https:/framerusercontent.com/modules/qI6HQ6jbcivJiNxwqwPi/yUMWGpsvrfTF05wmtczU/PreviewCard.js"],"sourcesContent":["// PreviewCard — Home/Works project thumbnail cards · uny.sketch portfolio\n// Public card: accent top-border, 16:9 thumbnail, title + role, hover lift + image scale.\n// Locked (NDA) card: inline \"Project Locked / RELEASING SOON\" SVG placeholder in the\n//   media area + body title + \"◆ filename\" (no image, not clickable).\n// Thumbnail source: thumbnailUrl string takes priority, else Framer image asset.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useId,startTransition}from\"react\";const ACCENT={blue:\"rgb(68, 136, 255)\",pink:\"rgb(255, 51, 102)\",cyan:\"rgb(0, 255, 204)\",yellow:\"rgb(255, 204, 0)\"};function lockedThumbSVG(uid){return`<svg viewBox=\"0 0 680 383\" width=\"100%\" height=\"100%\" preserveAspectRatio=\"xMidYMid slice\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"Project locked — releasing soon\">\n<defs>\n<clipPath id=\"${uid}c\"><rect x=\"0\" y=\"0\" width=\"680\" height=\"383\" rx=\"8\"/></clipPath>\n<linearGradient id=\"${uid}v\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#0d0f0e\"/><stop offset=\"0.55\" stop-color=\"#0a0b0a\"/><stop offset=\"1\" stop-color=\"#060706\"/></linearGradient>\n<mask id=\"${uid}m\" maskUnits=\"userSpaceOnUse\"><rect x=\"0\" y=\"0\" width=\"680\" height=\"383\" fill=\"white\"/><rect x=\"230.53\" y=\"232.5\" width=\"218.94\" height=\"38\" fill=\"black\" rx=\"2\"/><rect x=\"250.43\" y=\"277\" width=\"179.15\" height=\"18\" fill=\"black\" rx=\"2\"/><rect x=\"207.67\" y=\"342.5\" width=\"264.66\" height=\"16\" fill=\"black\" rx=\"2\"/></mask>\n</defs>\n<g clip-path=\"url(#${uid}c)\">\n<rect x=\"0\" y=\"0\" width=\"680\" height=\"383\" fill=\"url(#${uid}v)\"/>\n<g stroke=\"#16201c\" stroke-width=\"0.5\">\n<line x1=\"0\" y1=\"96\" x2=\"680\" y2=\"96\"/>\n<line x1=\"0\" y1=\"287\" x2=\"680\" y2=\"287\" mask=\"url(#${uid}m)\"/>\n<line x1=\"170\" y1=\"0\" x2=\"170\" y2=\"383\"/>\n<line x1=\"510\" y1=\"0\" x2=\"510\" y2=\"383\"/>\n</g>\n<rect x=\"14\" y=\"14\" width=\"652\" height=\"355\" rx=\"6\" fill=\"none\" stroke=\"#2bd9a8\" stroke-width=\"0.5\" opacity=\"0.35\"/>\n<g transform=\"translate(36,28)\"><rect x=\"0\" y=\"0\" width=\"7\" height=\"7\" rx=\"1.5\" fill=\"#2bd9a8\"/><text x=\"18\" y=\"7\" font-family=\"ui-monospace,Menlo,monospace\" font-size=\"11\" letter-spacing=\"3\" fill=\"#7f8a85\">UNYSKETCH</text></g>\n<text x=\"644\" y=\"35\" text-anchor=\"end\" font-family=\"ui-monospace,Menlo,monospace\" font-size=\"11\" letter-spacing=\"2\" fill=\"#5a6360\">EST. 2026</text>\n<g transform=\"translate(340,168)\">\n<circle cx=\"0\" cy=\"0\" r=\"46\" fill=\"none\" stroke=\"#1c2a25\" stroke-width=\"0.5\"/>\n<circle cx=\"0\" cy=\"0\" r=\"46\" fill=\"none\" stroke=\"#2bd9a8\" stroke-width=\"1.5\" stroke-dasharray=\"170 120\" opacity=\"0.85\" transform=\"rotate(-90)\"/>\n<rect x=\"-15\" y=\"-3\" width=\"30\" height=\"22\" rx=\"4\" fill=\"none\" stroke=\"#2bd9a8\" stroke-width=\"1.5\"/>\n<path d=\"M-9 -3 v-7 a9 9 0 0 1 18 0 v7\" fill=\"none\" stroke=\"#2bd9a8\" stroke-width=\"1.5\"/>\n<circle cx=\"0\" cy=\"6\" r=\"2.5\" fill=\"#2bd9a8\"/>\n<line x1=\"0\" y1=\"8.5\" x2=\"0\" y2=\"13\" stroke=\"#2bd9a8\" stroke-width=\"1.5\"/>\n</g>\n<text x=\"340\" y=\"262\" text-anchor=\"middle\" font-family=\"Georgia,serif\" font-size=\"30\" letter-spacing=\"1\" fill=\"#f2f4f3\">Project Locked</text>\n<text x=\"340\" y=\"290\" text-anchor=\"middle\" font-family=\"ui-monospace,Menlo,monospace\" font-size=\"12\" letter-spacing=\"5\" fill=\"#2bd9a8\">RELEASING SOON</text>\n<g transform=\"translate(340,328)\"><rect x=\"-95\" y=\"0\" width=\"190\" height=\"3\" rx=\"1.5\" fill=\"#16201c\"/><rect x=\"-95\" y=\"0\" width=\"120\" height=\"3\" rx=\"1.5\" fill=\"#2bd9a8\"/></g>\n<text x=\"340\" y=\"354\" text-anchor=\"middle\" font-family=\"ui-monospace,Menlo,monospace\" font-size=\"10\" letter-spacing=\"2\" fill=\"#5a6360\">UNDER WRAPS \\xb7 NDA-PROTECTED WORK</text>\n</g>\n</svg>`;}/**\n * PreviewCard — uny.sketch portfolio\n *\n * @framerIntrinsicWidth 360\n * @framerIntrinsicHeight 220\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function PreviewCard(props){const{title=\"Project Title\",role=\"Compositor\",accent=\"blue\",thumbnailUrl=\"\",thumbnail={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"\"},link=\"\",openInNewTab=false,locked=false,fileName=\"\",style}=props;const[hovered,setHovered]=useState(false);const accentColor=ACCENT[accent];const rawId=useId();const uid=\"pc\"+rawId.replace(/[^a-zA-Z0-9]/g,\"\");const imageSrc=thumbnailUrl.trim()?thumbnailUrl.trim():thumbnail.src;const imageSrcSet=thumbnailUrl.trim()?undefined:thumbnail.srcSet;return /*#__PURE__*/_jsxs(\"a\",{href:!locked&&link?link:undefined,target:openInNewTab?\"_blank\":\"_self\",rel:openInNewTab?\"noopener noreferrer\":undefined,\"aria-label\":title,onMouseEnter:()=>startTransition(()=>setHovered(true)),onMouseLeave:()=>startTransition(()=>setHovered(false)),style:{position:\"relative\",display:\"flex\",flexDirection:\"column\",width:\"100%\",backgroundColor:\"#0D0D1A\",borderRadius:8,overflow:\"hidden\",border:`1px solid ${hovered?\"#252545\":\"#1A1A2E\"}`,transform:hovered?\"translateY(-3px)\":\"translateY(0)\",transition:\"border-color 250ms ease, transform 250ms ease\",textDecoration:\"none\",cursor:!locked&&link?\"pointer\":\"default\",...style},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:\"100%\",height:2,backgroundColor:accentColor,flexShrink:0}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",aspectRatio:\"16 / 9\",overflow:\"hidden\",flexShrink:0,backgroundColor:\"#0A0A14\"},children:locked?/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\"},dangerouslySetInnerHTML:{__html:lockedThumbSVG(uid)}}):/*#__PURE__*/_jsx(\"img\",{src:imageSrc,srcSet:imageSrcSet,alt:thumbnail.alt||\"\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\",transform:hovered?\"scale(1.03)\":\"scale(1)\",transition:\"transform 350ms ease-out\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"11px 13px 13px\",display:\"flex\",flexDirection:\"column\",gap:4},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:\"Syne, sans-serif\",fontWeight:700,fontSize:13,letterSpacing:\"-0.02em\",lineHeight:\"115%\",color:\"#F4F4F7\",overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},children:title}),locked?/*#__PURE__*/_jsxs(\"span\",{style:{display:\"flex\",alignItems:\"center\",gap:7,fontFamily:'\"Space Mono\", monospace',fontSize:10,letterSpacing:\"0.04em\",color:\"#8B8A93\",lineHeight:\"150%\"},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{width:7,height:7,backgroundColor:accentColor,borderRadius:1,transform:\"rotate(45deg)\",flexShrink:0}}),fileName||role]}):/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:'\"Space Mono\", monospace',fontWeight:400,fontSize:9,letterSpacing:\"0.14em\",textTransform:\"uppercase\",color:\"#45444F\",lineHeight:\"150%\"},children:role})]})]});}addPropertyControls(PreviewCard,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Project Title\"},role:{type:ControlType.String,title:\"Role\",defaultValue:\"Compositor\"},accent:{type:ControlType.Enum,title:\"Accent\",options:[\"blue\",\"pink\",\"cyan\",\"yellow\"],optionTitles:[\"Blue\",\"Pink\",\"Cyan\",\"Yellow\"],defaultValue:\"blue\",displaySegmentedControl:true},thumbnailUrl:{type:ControlType.String,title:\"Thumbnail URL\",defaultValue:\"\",placeholder:\"https://… (overrides image asset)\",hidden:({locked})=>!!locked},thumbnail:{type:ControlType.ResponsiveImage,title:\"Thumbnail\",hidden:({locked})=>!!locked},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\",hidden:({locked})=>!!locked},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:({locked})=>!!locked},locked:{type:ControlType.Boolean,title:\"NDA / Locked\",defaultValue:false,enabledTitle:\"Locked\",disabledTitle:\"Public\"},fileName:{type:ControlType.String,title:\"File Name\",defaultValue:\"\",placeholder:\"project.aep\",hidden:({locked})=>!locked},lockedLabel:{type:ControlType.String,title:\"Locked Label\",defaultValue:\"RELEASING SOON\",hidden:({locked})=>!locked}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PreviewCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"220\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"360\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