{"version":3,"file":"FeatureColumnsSection.Key4LU2X.mjs","names":["React.useId","React.useRef","React.useState","__esmMin","init_npm_react_18_3_1","_e","de","p","c","init_jsx_runtime","ie","ce","addPropertyControls","init_framer_Bf4_tcb2","ControlType","RenderTarget","init_FeatureText","FeatureText","FeatureColumnsSection","DEFAULT_ITEMS","props","list","parseItems","items","hasHead","tagline","title","text","id","onCanvas","ref","inView","setInView","reveal","el","io","mb","mobileBreakpoint","tb","tabletBreakpoint","ease","css","background","columns","columnGap","i","img","im","style","showImages","imageBack","imageBackAlt","imageFront","imageFrontAlt","f","init_FeatureColumnsSection","src","line","x"],"sources":["https:/framerusercontent.com/modules/IWOKchdrr3zv8FVyXjql/1UCmwHFhoup1kbvhTO9E/FeatureColumnsSection.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import FeatureText from\"https://framerusercontent.com/modules/It4fP0GndW2wmTMQhT23/RWNTCfgUw9Jd77eWkpTS/FeatureText.js\";/**\n * Fleethand: Feature columns section (Figma \"Special section\", Options 15, 16 and 19)\n * Centred feature columns with glass icons, an optional heading above and an optional pair of overlapping photos.\n *   Option 15 (About, \"What we are building toward\"): heading, two photos, three columns 32 apart.\n *   Option 16 (About, \"What we believe\"): heading, six columns in two rows, 40 apart.\n *   Option 19 (Partners): no heading, three columns 80 apart.\n * Blocks sit 80 apart with padding 80. Narrow: padding 40 12, blocks and columns 40 apart, one column,\n * smaller icons, photos stacked with an overlap.\n * Items: one per line, written as \"icon | Title | Text\". Leave tagline, title and text empty to hide the heading.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */const DEFAULT_ITEMS=\"compass-03 | Vision | A transport office where the routine decisions are already made, and the working day belongs to the ones that need judgement.\\ntarget-04 | Mission | Give European hauliers software that closes the loop. Not another dashboard to read, but a system that acts and shows its work.\\nroute | Strategy | Build in Vilnius, stay close to the fleets that run on us, and prove every agent on real trucks before we call it a feature.\";const parseItems=src=>String(src||\"\").split(/\\n/).map(line=>line.split(\"|\").map(x=>x.trim())).filter(p=>p.length>=2&&p[1]).map(p=>({icon:p[0],title:p[1],text:p.slice(2).join(\" | \")}));export default function FeatureColumnsSection(props){const{tagline=\"Where it goes\",title=\"What we are building toward\",text=\"The direction, the daily work, and how we get from one to the other.\",imageBack,imageBackAlt=\"\",imageFront,imageFrontAlt=\"\",showImages=false,items=DEFAULT_ITEMS,columns=3,columnGap=32,tone=\"strong\",background=\"#FFFFFF\",reveal=true,mobileBreakpoint=768,tabletBreakpoint=1100,style}=props;const list=parseItems(items);const hasHead=!!(tagline||title||text);const id=\"fh-fc-\"+React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const onCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=React.useRef(null);const[inView,setInView]=React.useState(onCanvas||!reveal);React.useEffect(()=>{if(onCanvas||!reveal)return;const el=ref.current;if(!el||typeof IntersectionObserver===\"undefined\")return setInView(true);const io=new IntersectionObserver(([e])=>{if(e.isIntersecting){setInView(true);io.disconnect();}},{threshold:.12});io.observe(el);return()=>io.disconnect();},[onCanvas,reveal]);const mb=mobileBreakpoint-.02;const tb=Math.max(mb,tabletBreakpoint-.02);const ease=\"cubic-bezier(0.22,1,0.36,1)\";const css=`\n.${id}{container-type:inline-size;width:100%;}\n.${id} .s{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:80px;padding:80px;background:${background};font-family:\"Inter\",\"Inter Placeholder\",sans-serif;}\n.${id} .h{display:flex;flex-direction:column;gap:24px;width:100%;max-width:1280px;text-align:center;}\n.${id} .eb{margin:0;color:#1D4ED8;font-weight:600;font-size:14px;line-height:20px;text-transform:uppercase;}\n.${id} h2{margin:0;color:#000;font-weight:600;font-size:36px;line-height:44px;letter-spacing:-0.02em;text-wrap:balance;}\n.${id} .sub{margin:0;color:#404040;font-size:18px;line-height:28px;text-wrap:pretty;}\n.${id} .md{display:flex;align-items:center;width:100%;max-width:1280px;}\n.${id} .ph{position:relative;flex:1 1 0;min-width:0;border-radius:24px;overflow:hidden;background:#F5F5F5;}\n.${id} .ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}\n.${id} .p1{height:520px;margin-right:-80px;}\n.${id} .p2{height:640px;z-index:1;box-shadow:0 4px 4px -2px rgba(0,0,0,0.04),0 24px 48px -12px rgba(0,0,0,0.18);}\n.${id} .g{display:grid;grid-template-columns:repeat(${columns},minmax(0,1fr));gap:40px ${columnGap}px;width:100%;max-width:1280px;margin:0;padding:0;list-style:none;}\n.${id} .g > li{display:flex;min-width:0;transition:opacity 600ms ease,transform 700ms ${ease};}\n${list.map((_,i)=>`.${id} .g > li:nth-child(${i+1}){transition-delay:${Math.min(i,8)*70}ms;}`).join(\"\")}\n.${id} .h > *,.${id} .ph{transition:opacity 700ms ease,transform 900ms ${ease};}\n.${id} .h > :nth-child(2){transition-delay:60ms;}\n.${id} .h > :nth-child(3){transition-delay:120ms;}\n.${id} .p2{transition-delay:120ms;}\n.${id} .out .h > *{opacity:0;transform:translateY(16px);}\n.${id} .out .p1{opacity:0;transform:translateX(-32px);}\n.${id} .out .p2{opacity:0;transform:translateX(32px);}\n.${id} .out .g > li{opacity:0;transform:translateY(24px);}\n@container (max-width:${tb}px){\n  .${id} .s{padding:64px 40px;gap:56px;}\n  .${id} .p1{height:360px;margin-right:-48px;}\n  .${id} .p2{height:440px;}\n  .${id} .g{gap:40px 24px;${columns>3?\"grid-template-columns:repeat(2,minmax(0,1fr));\":\"\"}}\n}\n@container (max-width:${mb}px){\n  .${id} .s{padding:40px 12px;gap:40px;}\n  .${id} .h{gap:16px;}\n  .${id} h2{font-size:30px;line-height:38px;letter-spacing:0;}\n  .${id} .sub{font-size:16px;line-height:24px;}\n  .${id} .md{flex-direction:column;align-items:stretch;}\n  .${id} .ph{flex:none;height:320px;}\n  .${id} .p1{margin:0 24px -80px 0;}\n  .${id} .p2{margin:0 0 0 24px;}\n  .${id} .out .p1,.${id} .out .p2{transform:translateY(24px);}\n  .${id} .g{grid-template-columns:minmax(0,1fr);gap:40px;}\n  .${id} .g .fh-ft-m{transform:scale(0.8334);margin:-4px;}\n}\n@media (prefers-reduced-motion:reduce){\n  .${id} .g > li,.${id} .h > *,.${id} .ph{transition:none;}\n  .${id} .out .h > *,.${id} .out .ph,.${id} .out .g > li{opacity:1;transform:none;}\n}\n`;const img=(im,alt)=>im?.src?/*#__PURE__*/_jsx(\"img\",{src:im.src,srcSet:im.srcSet,sizes:\"(min-width: 768px) 50vw, 100vw\",alt:alt,loading:\"lazy\",decoding:\"async\"}):null;return /*#__PURE__*/_jsxs(\"section\",{ref:ref,className:id,\"aria-label\":title||undefined,style:{...style,height:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(\"div\",{className:`s${inView?\"\":\" out\"}`,children:[hasHead&&/*#__PURE__*/_jsxs(\"div\",{className:\"h\",children:[tagline&&/*#__PURE__*/_jsx(\"p\",{className:\"eb\",children:tagline}),title&&/*#__PURE__*/_jsx(\"h2\",{children:title}),text&&/*#__PURE__*/_jsx(\"p\",{className:\"sub\",children:text})]}),showImages&&/*#__PURE__*/_jsxs(\"div\",{className:\"md\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"ph p1\",children:img(imageBack,imageBackAlt)}),/*#__PURE__*/_jsx(\"div\",{className:\"ph p2\",children:img(imageFront,imageFrontAlt)})]}),/*#__PURE__*/_jsx(\"ul\",{className:\"g\",children:list.map((f,i)=>/*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(FeatureText,{layout:\"topCentered\",media:\"featured\",featuredType:\"glass\",icon:f.icon,title:f.title,text:f.text,tone:tone,headingTag:\"h3\"})},i))})]})]});}FeatureColumnsSection.displayName=\"Feature columns section\";addPropertyControls(FeatureColumnsSection,{tagline:{type:ControlType.String,title:\"Tagline\",defaultValue:\"Where it goes\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"What we are building toward\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"The direction, the daily work, and how we get from one to the other.\"},showImages:{type:ControlType.Boolean,title:\"Photos\",defaultValue:false},imageBack:{type:ControlType.ResponsiveImage,title:\"Photo behind\",hidden:p=>!p.showImages},imageBackAlt:{type:ControlType.String,title:\"Alt behind\",defaultValue:\"\",hidden:p=>!p.showImages},imageFront:{type:ControlType.ResponsiveImage,title:\"Photo in front\",hidden:p=>!p.showImages},imageFrontAlt:{type:ControlType.String,title:\"Alt in front\",defaultValue:\"\",hidden:p=>!p.showImages},items:{type:ControlType.String,title:\"Items\",displayTextArea:true,defaultValue:DEFAULT_ITEMS,description:\"One per line: icon | Title | Text.\"},columns:{type:ControlType.Number,title:\"Columns\",defaultValue:3,min:1,max:4,step:1,displayStepper:true},columnGap:{type:ControlType.Number,title:\"Column gap\",defaultValue:32,min:16,max:120,step:4,unit:\"px\"},tone:{type:ControlType.Enum,title:\"Tone\",options:[\"default\",\"strong\"],optionTitles:[\"Default\",\"Strong\"],displaySegmentedControl:true,defaultValue:\"strong\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},reveal:{type:ControlType.Boolean,title:\"Reveal\",defaultValue:true},tabletBreakpoint:{type:ControlType.Number,title:\"Tablet below\",defaultValue:1100,min:600,max:1440,unit:\"px\"},mobileBreakpoint:{type:ControlType.Number,title:\"Mobile below\",defaultValue:768,min:320,max:1024,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FeatureColumnsSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,oQAY6oB,SAAwBkB,EAAsB,EAAM,CAAC,GAAK,CAAC,UAAQ,gBAAgB,QAAM,8BAA8B,OAAK,uEAAuE,YAAU,eAAa,GAAG,aAAW,gBAAc,GAAG,aAAW,GAAM,QAAMC,EAAc,UAAQ,EAA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