{"version":3,"file":"YP_Experts.DLd7txOc.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/67niDqMGv0V0XCJi1nKR/U832Ba27Tfn5U6U9Txkd/YP_Experts.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Sideways — Experts Section\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function YP_Experts(props){const{eyebrow=\"Meet the experts\",headline=\"Content built by\\nreal operators\",intro=\"Every video and course is created by people who've actually worked in hospitality — not actors or lecturers. Real knowledge, delivered well.\",experts=defaultExperts,columns=4,columnsMobile=2,bgColor=\"#F4F2F1\",darkColor=\"#0F0F0F\",blueColor=\"#1900CC\",accentColor=\"#F6D0CB\",cardRadius=20,paddingV=100,paddingH=48,maxWidth=1280,headlineFont=\"Beaches And Cream Regular\"}=props;const headlineFF=`\"${String(headlineFont).replace(/['\"]/g,\"\").trim()}\", serif`;const{ref,narrow}=useNarrow(760);const padV=narrow?Math.min(paddingV,64):paddingV;const padH=narrow?20:paddingH;const cardCols=narrow?`repeat(${columnsMobile}, 1fr)`:`repeat(${columns}, 1fr)`;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{width:\"100%\",background:bgColor,position:\"relative\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth,margin:\"0 auto\",padding:`${padV}px ${padH}px`,boxSizing:\"border-box\",fontFamily:\"Montserrat, sans-serif\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:narrow?\"1fr\":\"1fr 1fr\",gap:narrow?20:80,alignItems:\"start\",marginBottom:narrow?36:64},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(EyebrowPill,{label:eyebrow,blueColor:blueColor}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:headlineFF,fontWeight:400,fontSize:narrow?\"clamp(34px, 9vw, 48px)\":\"clamp(36px, 4.5vw, 62px)\",lineHeight:.98,letterSpacing:\"-0.02em\",textTransform:\"uppercase\",color:darkColor},children:headline.split(\"\\n\").map((line,i)=>/*#__PURE__*/_jsx(\"div\",{children:i===1?/*#__PURE__*/_jsx(\"span\",{style:{color:blueColor},children:line}):line},i))})]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:15,fontWeight:300,lineHeight:1.65,color:\"#3A3A3A\",margin:0,paddingTop:narrow?0:8,fontFamily:\"Montserrat, sans-serif\"},children:intro})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:cardCols,gap:narrow?12:16},children:experts.map((expert,i)=>{const imgSrc=typeof expert.image===\"string\"?expert.image:expert.image?.src??null;return /*#__PURE__*/_jsxs(\"div\",{style:{background:\"#FFFFFF\",borderRadius:cardRadius,overflow:\"hidden\",border:\"1.5px solid rgba(15,15,15,0.08)\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",aspectRatio:\"1\",background:expert.cardColor||accentColor,backgroundImage:imgSrc?`url(${imgSrc})`:\"none\",backgroundSize:\"cover\",backgroundPosition:\"center top\",flexShrink:0}}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:narrow?\"16px 16px 18px\":\"20px 24px 24px\",display:\"flex\",flexDirection:\"column\",gap:6,flex:1},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:headlineFF,fontWeight:400,fontSize:24,lineHeight:1,color:darkColor,letterSpacing:\"-0.01em\"},children:expert.name}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"Montserrat, sans-serif\",fontWeight:500,fontSize:11,letterSpacing:\"0.08em\",textTransform:\"uppercase\",color:blueColor},children:expert.role}),expert.description&&/*#__PURE__*/_jsx(\"p\",{style:{fontSize:12,fontWeight:300,lineHeight:1.6,color:\"#3A3A3A\",margin:\"8px 0 0 0\",fontFamily:\"Montserrat, sans-serif\"},children:expert.description}),expert.topics&&expert.topics.length>0&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:6,marginTop:12},children:expert.topics.map((topic,ti)=>/*#__PURE__*/_jsx(\"span\",{style:{padding:\"4px 10px\",borderRadius:999,background:\"rgba(15,15,15,0.06)\",fontFamily:\"Montserrat, sans-serif\",fontSize:11,fontWeight:500,color:darkColor},children:topic},ti))})]})]},i);})})]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:-5,left:\"50%\",transform:\"translateX(-50%)\",width:\"100%\",height:10,backgroundImage:\"url(https://framerusercontent.com/images/iDrlOYszhHrSmrgaFKo5G5kRV8.svg)\",backgroundRepeat:\"no-repeat\",backgroundPosition:\"center\",backgroundSize:\"contain\",zIndex:1,pointerEvents:\"none\"}})]});}function useNarrow(bp=760){const ref=useRef(null);const[narrow,setNarrow]=useState(false);useEffect(()=>{const el=ref.current;if(!el)return;const update=()=>setNarrow(el.offsetWidth<bp);update();const ro=new ResizeObserver(update);ro.observe(el);return()=>ro.disconnect();},[bp]);return{ref,narrow};}function EyebrowPill({label,blueColor=\"#1900CC\"}){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:8,background:`${blueColor}0F`,border:`1px solid ${blueColor}26`,borderRadius:999,padding:\"6px 14px 6px 10px\",marginBottom:20,fontFamily:\"Montserrat, sans-serif\",fontSize:12,fontWeight:600,letterSpacing:\"0.08em\",textTransform:\"uppercase\",color:blueColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:8,height:8,borderRadius:\"50%\",background:blueColor,flexShrink:0,display:\"inline-block\"}}),label]});}const defaultExperts=[{name:\"MM\",role:\"Leadership\",description:\"Real-world leadership and management skills for hospitality teams.\",topics:[\"Leadership\",\"Management\",\"Culture\"],cardColor:\"#E8E4F0\"},{name:\"Gary\",role:\"P&L\",description:\"Hospitality finance doesn't have to be intimidating. Gary breaks down P&L, cost of sales, and labour ratios into plain language every manager can act on.\",topics:[\"P&L\",\"Finance\",\"Growth\"],cardColor:\"#F4E8D0\"},{name:\"Paddy\",role:\"Mental Health\",description:\"Practical mental health support built specifically for hospitality.\",topics:[\"Wellbeing\",\"Mental health\"],cardColor:\"#D0EAF4\"},{name:\"Gabriel\",role:\"Founders\",description:\"For those building something in the industry.\",topics:[\"Founders\",\"Business\"],cardColor:\"#D0F4DC\"}];addPropertyControls(YP_Experts,{headlineFont:{type:ControlType.String,title:\"Headline Font\",defaultValue:\"Beaches And Cream Regular\",description:\"Framer registers uploaded fonts as '[Name] Regular'\"},eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"Meet the experts\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"Content built by\\nreal operators\",displayTextArea:true},intro:{type:ControlType.String,title:\"Intro Text\",defaultValue:\"Every video and course is created by people who've actually worked in hospitality.\",displayTextArea:true},experts:{type:ControlType.Array,title:\"Experts\",maxCount:8,control:{type:ControlType.Object,controls:{name:{type:ControlType.String,title:\"Name\",defaultValue:\"Expert Name\"},role:{type:ControlType.String,title:\"Role / Topic\",defaultValue:\"Leadership\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Photo\"},cardColor:{type:ControlType.Color,title:\"Card BG (no photo)\",defaultValue:\"#F6D0CB\"},topics:{type:ControlType.Array,title:\"Topic Tags\",control:{type:ControlType.String,title:\"Topic\"},defaultValue:[]}}},defaultValue:defaultExperts},columns:{type:ControlType.Number,title:\"Columns (desktop)\",defaultValue:4,min:1,max:6,step:1,displayStepper:true},columnsMobile:{type:ControlType.Number,title:\"Columns (mobile)\",defaultValue:2,min:1,max:3,step:1,displayStepper:true},bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F4F2F1\"},darkColor:{type:ControlType.Color,title:\"Dark\",defaultValue:\"#0F0F0F\"},blueColor:{type:ControlType.Color,title:\"Blue\",defaultValue:\"#1900CC\"},accentColor:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#F6D0CB\"},cardRadius:{type:ControlType.Number,title:\"Card Radius\",defaultValue:20,min:0,max:48,step:4,unit:\"px\"},paddingV:{type:ControlType.Number,title:\"Padding V\",defaultValue:100,min:20,max:240,step:8,unit:\"px\"},paddingH:{type:ControlType.Number,title:\"Padding H\",defaultValue:48,min:0,max:200,step:4,unit:\"px\"},maxWidth:{type:ControlType.Number,title:\"Max Width\",defaultValue:1280,min:800,max:1800,step:40,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YP_Experts\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YP_Experts.map"],"mappings":"0LAKG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,UAAQ,mBAAmB,WAAS;gBAAmC,QAAM,+IAA+I,UAAQ,EAAe,UAAQ,EAAE,gBAAc,EAAE,UAAQ,UAAU,YAAU,UAAU,YAAU,UAAU,cAAY,UAAU,aAAW,GAAG,WAAS,IAAI,WAAS,GAAG,WAAS,KAAK,eAAa,6BAA6B,EAAY,EAAW,IAAI,OAAO,EAAa,CAAC,QAAQ,QAAQ,GAAG,CAAC,MAAM,CAAC,UAAe,CAAC,MAAI,UAAQ,EAAU,IAAI,CAAO,EAAK,EAAO,KAAK,IAAI,EAAS,GAAG,CAAC,EAAe,EAAK,EAAO,GAAG,EAAe,EAAS,EAAO,UAAU,EAAc,QAAQ,UAAU,EAAQ,QAAQ,OAAoB,EAAM,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,WAAW,EAAQ,SAAS,WAAW,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,WAAS,OAAO,SAAS,QAAQ,GAAG,EAAK,KAAK,EAAK,IAAI,UAAU,aAAa,WAAW,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