{"version":3,"file":"BrandEcosystem.CNH15zmY.mjs","names":["useRef","useState","startTransition","__esmMin","window","te","init_ssg_sandbox_shims","_e","p","ce","init_npm_react_18_3_1","de","addPropertyControls","init_framer_BpuvUAiZ","ControlType","merge","v","logoValue","d","isExternal","href","BrandEcosystem","props","unwork","defaultUnwork","piixel","defaultPiixel","rootRef","width","setWidth","hovered","setHovered","canHover","setCanHover","el","update","ro","narrow","reveal","interactive","lh","logoHeight","renderBrand","active","key","dimmed","showCaption","b","Wrapper","linkProps","FONT","textColor","mutedColor","style","eyebrow","heading","body","accentColor","hint","brandControls","controls","init_BrandEcosystem","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/Frkak0NYVXV3DTlf7hzz/3xcbkqyBucEOEUgH3AIX/BrandEcosystem.js"],"sourcesContent":["// User request: show Unwork9 × Piixel together as one brand ecosystem.\n// A full-width section: eyebrow, heading, the two logos joined by \"×\", and a caption under each.\n// Desktop: hovering a brand lifts it, dims the other and reveals its caption + website link.\n// Touch / narrow screens: logos stack and captions are always visible.\n// Both logos keep their own colours; only the \"×\" connects them.\n// Width uses offsetWidth (layout width) so the Framer canvas zoom level doesn't trigger the stacked layout.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const FONT='\"Inter Display\", \"Inter Display Placeholder\", \"Inter\", sans-serif';const defaultUnwork={logo:\"https://framerusercontent.com/images/CsI15OCbyQjRa8z9Y49JsFQczg.png\",name:\"Unwork9\",caption:\"Creative & Growth\",link:\"/\",linkLabel:\"You are here\"};const defaultPiixel={logo:\"https://framerusercontent.com/images/XmL8NSsmnYcm2B8WQyPYV0AumU.png\",name:\"Piixel\",caption:\"Technology & Development\",link:\"\",linkLabel:\"\"};// Empty fields fall back to the defaults (an empty Piixel link means \"not linked yet\").\nfunction merge(d,p){const v=p||{};const logoValue=v.logo;const logo=typeof logoValue===\"string\"?logoValue:logoValue&&logoValue.src?logoValue.src:\"\";return{logo:logo||d.logo,name:v.name||d.name,caption:v.caption||d.caption,link:v.link!==undefined&&v.link!==null?v.link:d.link,linkLabel:v.linkLabel!==undefined&&v.linkLabel!==null?v.linkLabel:d.linkLabel};}function isExternal(href){return/^https?:\\/\\//i.test(href);}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */export default function BrandEcosystem(props){const{eyebrow=\"One ecosystem. Two capabilities.\",heading=\"\",body=\"\",hint=\"Hover over either brand to explore\",interactive=true,logoHeight=120,textColor=\"rgb(9, 9, 9)\",mutedColor=\"rgb(153, 153, 153)\",accentColor=\"rgb(237, 190, 61)\",style}=props;const unwork=merge(defaultUnwork,props.unwork);const piixel=merge(defaultPiixel,props.piixel);const rootRef=useRef(null);const[width,setWidth]=useState(1200);const[hovered,setHovered]=useState(null);const[canHover,setCanHover]=useState(true);useEffect(()=>{const el=rootRef.current;if(!el||typeof window===\"undefined\")return;const update=()=>startTransition(()=>setWidth(el.offsetWidth||el.clientWidth||1200));update();let ro=null;if(typeof ResizeObserver!==\"undefined\"){ro=new ResizeObserver(update);ro.observe(el);}if(window.matchMedia){startTransition(()=>setCanHover(window.matchMedia(\"(hover: hover)\").matches));}return()=>{if(ro)ro.disconnect();};},[]);const narrow=width<760;const reveal=interactive&&canHover&&!narrow;const lh=narrow?Math.round(logoHeight*.6):width<1100?Math.round(logoHeight*.75):logoHeight;const renderBrand=(key,b)=>{const active=hovered===key;const dimmed=reveal&&hovered!==null&&!active;const showCaption=!reveal||active;const href=b.link||\"\";const Wrapper=href?\"a\":\"div\";const linkProps=href?{href,target:isExternal(href)?\"_blank\":undefined,rel:isExternal(href)?\"noopener noreferrer\":undefined}:{};return /*#__PURE__*/_jsxs(Wrapper,{...linkProps,onMouseEnter:()=>reveal&&startTransition(()=>setHovered(key)),onMouseLeave:()=>reveal&&startTransition(()=>setHovered(null)),\"aria-label\":b.name,style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:18,textDecoration:\"none\",cursor:href?\"pointer\":\"default\",opacity:dimmed?.3:1,transform:active?\"scale(1.04)\":\"scale(1)\",transition:\"opacity 0.35s ease, transform 0.35s ease\",flex:narrow?\"0 0 auto\":\"1 1 0\",minWidth:0},children:[/*#__PURE__*/_jsx(\"img\",{src:b.logo,alt:b.name,draggable:false,style:{height:lh,width:\"auto\",maxWidth:\"100%\",objectFit:\"contain\",display:\"block\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:6,opacity:showCaption?1:0,transform:showCaption?\"translateY(0)\":\"translateY(-6px)\",transition:\"opacity 0.35s ease, transform 0.35s ease\",minHeight:40},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:FONT,fontWeight:600,fontSize:13,letterSpacing:\"0.14em\",textTransform:\"uppercase\",color:textColor},children:b.caption}),b.linkLabel?/*#__PURE__*/_jsxs(\"span\",{style:{fontFamily:FONT,fontWeight:500,fontSize:14,color:mutedColor},children:[b.linkLabel,href&&isExternal(href)?\" ↗\":\"\"]}):null]})]});};return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:{...style,width:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",textAlign:\"center\",gap:narrow?28:40,boxSizing:\"border-box\"},children:[eyebrow?/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:FONT,fontWeight:600,fontSize:13,letterSpacing:\"0.14em\",textTransform:\"uppercase\",color:mutedColor},children:eyebrow}):null,heading?/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontFamily:FONT,fontWeight:500,fontSize:narrow?32:49,lineHeight:1.05,letterSpacing:narrow?\"-0.8px\":\"-1.2px\",color:textColor,maxWidth:760},children:heading}):null,body?/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:FONT,fontWeight:500,fontSize:17,lineHeight:\"26px\",color:mutedColor,maxWidth:620},children:body}):null,/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:narrow?\"column\":\"row\",alignItems:narrow?\"center\":\"flex-start\",justifyContent:\"center\",gap:narrow?16:32},children:[renderBrand(\"unwork\",unwork),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{fontFamily:FONT,fontWeight:400,fontSize:narrow?32:56,lineHeight:`${lh}px`,height:lh,color:hovered?accentColor:textColor,transition:\"color 0.35s ease\",flex:\"0 0 auto\"},children:\"\\xd7\"}),renderBrand(\"piixel\",piixel)]}),reveal&&hint?/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:FONT,fontWeight:500,fontSize:13,color:mutedColor},children:hint}):null]});}BrandEcosystem.displayName=\"Brand Ecosystem\";function brandControls(title,d){return{type:ControlType.Object,title,controls:{logo:{type:ControlType.Image,title:\"Logo\"},name:{type:ControlType.String,title:\"Name\",defaultValue:d.name},caption:{type:ControlType.String,title:\"Caption\",defaultValue:d.caption},link:{type:ControlType.Link,title:\"Link\"},linkLabel:{type:ControlType.String,title:\"Link Label\",defaultValue:d.linkLabel}}};}const controls={eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"One ecosystem. Two capabilities.\"},heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"\"},body:{type:ControlType.String,title:\"Body\",displayTextArea:true,defaultValue:\"\"},hint:{type:ControlType.String,title:\"Hint\",defaultValue:\"Hover over either brand to explore\"},interactive:{type:ControlType.Boolean,title:\"Hover Reveal\",defaultValue:true},logoHeight:{type:ControlType.Number,title:\"Logo Height\",defaultValue:120,min:30,max:300,unit:\"px\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"rgb(9, 9, 9)\"},mutedColor:{type:ControlType.Color,title:\"Muted\",defaultValue:\"rgb(153, 153, 153)\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"rgb(237, 190, 61)\"},unwork:brandControls(\"Unwork9\",defaultUnwork),piixel:brandControls(\"Piixel\",defaultPiixel)};addPropertyControls(BrandEcosystem,controls);\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BrandEcosystem\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BrandEcosystem.map"],"mappings":"A,0MAOA,SAASe,EAAM,EAAE,EAAE,CAAC,IAAMC,EAAER,GAAG,CAAC,EAAQS,EAAUD,EAAE,KAAgG,MAAM,CAAC,MAAvF,OAAOC,GAAY,SAASA,EAAUA,GAAWA,EAAU,IAAIA,EAAU,IAAI,KAAqBC,EAAE,KAAK,KAAKF,EAAE,MAAME,EAAE,KAAK,QAAQF,EAAE,SAASE,EAAE,QAAQ,KAAKF,EAAE,OAAO,IAAA,IAAWA,EAAE,OAAO,KAAKA,EAAE,KAAKE,EAAE,KAAK,UAAUF,EAAE,YAAY,IAAA,IAAWA,EAAE,YAAY,KAAKA,EAAE,UAAUE,EAAE,SAAS,CAAE,CAAC,SAASC,EAAW,EAAK,CAAC,MAAM,gBAAgB,KAAKC,CAAI,CAAE,CAI3Z,SAAwBC,EAAe,EAAM,CAAC,GAAK,CAAC,UAAQ,mCAAmC,UAAQ,GAAG,OAAK,GAAG,OAAK,qCAAqC,cAAY,GAAK,aAAW,IAAI,YAAU,eAAe,aAAW,qBAAqB,cAAY,oBAAoB,SAAOC,EAAYC,EAAOR,EAAMS,EAAcF,EAAM,MAAM,EAAQG,EAAOV,EAAMW,EAAcJ,EAAM,MAAM,EAAQK,EAAQ3B,EAAO,IAAI,EAAO,CAAC4B,EAAMC,GAAU5B,EAAS,IAAI,EAAO,CAAC6B,EAAQC,GAAY9B,EAAS,IAAI,EAAO,CAAC+B,EAASC,GAAahC,EAAS,EAAI,EAAEQ,MAAc,CAAC,IAAMyB,EAAGP,EAAQ,QAAQ,GAAG,CAACO,G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