{"version":3,"file":"ReasonTabs.CGl8aVGy.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/xiLalJoDPDqXtKwESzbb/kZgJ8FmBaJvdUcH2baOA/ReasonTabs.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ReasonTabs — vertical clickable tabs.\n * Buttons left (bordered, rounded), text right that swaps on click.\n * Collapses to vertical once the component's own width drops under `stackBelow`.\n *\n * SEO: every item's title AND body is always rendered into the DOM. Inactive\n * panels are visually hidden (not removed) so crawlers index all of the copy.\n *\n * Fonts: Inter, sizes follow the /Area Page/ breakpoint scale. Panel title is\n * H3-sized (not H2). A highlighted \"book a walkthrough\" CTA scrolls to the top\n * of the page (the hero form). The CTA pins to the bottom only in the wide\n * layout; when stacked (phone) it flows below the text so it never overlaps.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n */export default function ReasonTabs(props){const{items,activeColor,idleBorderColor,idleTextColor,activeTextColor,titleColor,bodyColor,ctaLabel,ctaColor,ctaTextColor,radius,gap,stackBelow,fontFamily}=props;const[active,setActive]=useState(0);const[vertical,setVertical]=useState(false);const ref=useRef(null);useEffect(()=>{const el=ref.current;if(!el||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(entries=>{for(const e of entries)setVertical(e.contentRect.width<stackBelow);});ro.observe(el);return()=>ro.disconnect();},[stackBelow]);const list=Array.isArray(items)&&items.length?items:[];const idx=Math.min(active,Math.max(list.length-1,0));const scrollTop=()=>{if(typeof window!==\"undefined\")window.scrollTo({top:0,behavior:\"smooth\"});};return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{display:\"flex\",flexDirection:vertical?\"column\":\"row\",gap:gap,width:\"100%\",height:\"100%\",fontFamily,boxSizing:\"border-box\",alignItems:\"stretch\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes reasonTabsFade {\n                    from { opacity: 0; transform: translateY(6px); }\n                    to   { opacity: 1; transform: translateY(0); }\n                }\n                .rt-tab{font-size:16px}\n                .rt-title{font-size:20px;font-weight:700;line-height:1.25}\n                .rt-body{font-size:17px;line-height:1.6}\n                .rt-cta{align-self:flex-start;display:inline-flex;align-items:center;gap:9px;border:none;cursor:pointer;padding:16px 30px;border-radius:100px;font-weight:700;font-size:15px;letter-spacing:-0.01em;box-shadow:0 10px 24px rgba(49,49,101,0.32);transition:transform .2s ease,box-shadow .2s ease}\n                .rt-cta:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(49,49,101,0.44)}\n                .rt-cta .rt-arr{transition:transform .2s ease}\n                .rt-cta:hover .rt-arr{transform:translateX(4px)}\n                @media(max-width:1000px){.rt-title{font-size:19px}.rt-body{font-size:17px}}\n                @media(max-width:810px){.rt-tab{font-size:16px}.rt-title{font-size:18px}.rt-body{font-size:15px}.rt-cta{font-size:14px}}\n                @media(max-width:480px){.rt-tab{font-size:15px}.rt-title{font-size:17px}.rt-body{font-size:14px}}\n            `}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:12,flex:vertical?\"none\":\"0 0 38%\",width:vertical?\"100%\":\"38%\"},children:list.map((item,i)=>{const isActive=i===idx;return /*#__PURE__*/_jsx(\"button\",{className:\"rt-tab\",onClick:()=>setActive(i),style:{display:\"block\",width:\"100%\",textAlign:\"left\",cursor:\"pointer\",padding:\"16px 20px\",borderRadius:radius,border:`1px solid ${isActive?activeColor:idleBorderColor}`,background:isActive?activeColor:\"transparent\",color:isActive?activeTextColor:idleTextColor,fontFamily,fontWeight:600,lineHeight:1.3,transition:\"background 0.2s ease, border-color 0.2s ease, color 0.2s ease\",outline:\"none\"},onMouseEnter:ev=>{if(!isActive)ev.currentTarget.style.borderColor=activeColor;},onMouseLeave:ev=>{if(!isActive)ev.currentTarget.style.borderColor=idleBorderColor;},children:item.title},i);})}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",flex:\"1 1 auto\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-start\",paddingTop:vertical?8:4},children:[list.map((item,i)=>{const isActive=i===idx;const titleEl=/*#__PURE__*/_jsx(\"div\",{className:\"rt-title\",style:{color:titleColor,fontFamily,marginBottom:14},children:item.title});const bodyEl=/*#__PURE__*/_jsx(\"div\",{className:\"rt-body\",style:{color:bodyColor,fontFamily,fontWeight:400},children:item.body});if(!isActive){return /*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",width:1,height:1,padding:0,margin:-1,overflow:\"hidden\",clipPath:\"inset(50%)\",border:0,pointerEvents:\"none\"},children:[titleEl,bodyEl]},i);}return /*#__PURE__*/_jsxs(\"div\",{style:{animation:\"reasonTabsFade 0.3s ease both\"},children:[titleEl,bodyEl]},i);}),ctaLabel?/*#__PURE__*/_jsxs(\"button\",{className:\"rt-cta\",onClick:scrollTop,style:{background:ctaColor,color:ctaTextColor,fontFamily,marginTop:vertical?22:\"auto\"},children:[ctaLabel,/*#__PURE__*/_jsx(\"span\",{className:\"rt-arr\",\"aria-hidden\":\"true\",children:\"→\"})]}):null]})]});}ReasonTabs.defaultProps={width:900,height:380,activeColor:\"rgb(49, 49, 101)\",idleBorderColor:\"rgba(49, 49, 101, 0.18)\",idleTextColor:\"rgb(27, 27, 27)\",activeTextColor:\"rgb(255, 255, 255)\",titleColor:\"rgb(49, 49, 101)\",bodyColor:\"rgb(85, 85, 85)\",ctaLabel:\"Book a free walkthrough\",ctaColor:\"rgb(49, 49, 101)\",ctaTextColor:\"rgb(255, 255, 255)\",radius:12,gap:40,stackBelow:680,fontFamily:\"Inter, sans-serif\",items:[{title:\"Protect Your Hardware & Data\",body:\"Servers, drives and workstations are expensive and fragile. Unio Tech labels, packs and transports every device the right way, and retired drives are wiped or destroyed with certificates — so nothing is damaged, lost or left exposed.\"},{title:\"Minimize Downtime\",body:\"Every hour your team can't work costs money. We plan the move so equipment is disconnected, transported and reconnected on a tight schedule — often evenings and weekends — and tested before your first day back.\"},{title:\"One Point of Accountability\",body:\"Furniture movers move desks, not technology. We own the whole move — the plan, the cabling, the reconnection and the cleanup — so there's no finger-pointing when something doesn't power back on.\"},{title:\"Reconnected & Ready\",body:\"Hundreds of monitors, docks, phones and cables don't reconnect themselves. We rebuild each workstation exactly as it was, manage the cabling, and fine-tune until every user is working — so you walk in and just go.\"}]};addPropertyControls(ReasonTabs,{items:{type:ControlType.Array,title:\"Reasons\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},body:{type:ControlType.String,title:\"Body\",displayTextArea:true}}}},ctaLabel:{type:ControlType.String,title:\"CTA Label\"},activeColor:{type:ControlType.Color,title:\"Active BG\"},idleBorderColor:{type:ControlType.Color,title:\"Idle Border\"},idleTextColor:{type:ControlType.Color,title:\"Idle Text\"},activeTextColor:{type:ControlType.Color,title:\"Active Text\"},titleColor:{type:ControlType.Color,title:\"Heading Color\"},bodyColor:{type:ControlType.Color,title:\"Body Color\"},ctaColor:{type:ControlType.Color,title:\"CTA BG\"},ctaTextColor:{type:ControlType.Color,title:\"CTA Text\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:40,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",min:0,max:120,unit:\"px\"},stackBelow:{type:ControlType.Number,title:\"Stack Below\",min:320,max:1200,unit:\"px\",description:\"Width at which it switches to vertical\"},fontFamily:{type:ControlType.String,title:\"Font\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReasonTabs\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReasonTabs.map"],"mappings":"6MAeG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,kBAAgB,gBAAc,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