{"version":3,"file":"What_changes.Dfzvkd_2.mjs","names":["useRef","useState","useEffect","_jsx","_jsxs","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","p","_e","de","addPropertyControls","init_framer_ChujFWHC","ControlType","imgSrc","image","useContainerWidth","ref","w","setW","ro","entries","e","OperationalCarousel","props","items","labelFont","numberFont","descFont","accent","labelColor","activeBg","activeLabel","divider","tabRadius","tabPaddingY","tabPaddingX","gap","style","active","setActive","width","list","stacked","currentItem","src","currentTitle","objectPosition","tabList","it","i","on","prevOn","showDivider","open","panel","init_What_changes"],"sources":["https:/framerusercontent.com/modules/cYqF1vpBBWbk8IaT2GZZ/3qWeTc67MMIGvDoNo7Ou/What_changes.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function imgSrc(image){if(!image)return\"\";if(typeof image===\"string\")return image;return image.src||\"\";}function useContainerWidth(){const ref=useRef(null);const[w,setW]=useState(1024);useEffect(()=>{if(!ref.current)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setW(e.contentRect.width);});ro.observe(ref.current);return()=>ro.disconnect();},[]);return[ref,w];}export default function OperationalCarousel(props){const{items,labelFont,numberFont,descFont,accent,labelColor,activeBg,activeLabel,divider,tabRadius,tabPaddingY,tabPaddingX,gap,style}=props;const[active,setActive]=useState(0);const[ref,width]=useContainerWidth();const list=items&&items.length?items:[];const stacked=width<900;const currentItem=list[Math.min(active,list.length-1)]||{};const src=imgSrc(currentItem.image);const currentTitle=currentItem.title||\"\";const objectPosition=currentItem.imagePosition||\"center\";const tabList=/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",width:\"100%\"},children:list.map((it,i)=>{const on=i===active;const prevOn=i-1===active;const showDivider=i>0&&!on&&!prevOn;const open=on;return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setActive(i),style:{display:\"flex\",alignItems:\"flex-start\",gap:16,width:\"100%\",textAlign:\"left\",cursor:\"pointer\",border:\"none\",background:on?activeBg:\"transparent\",borderRadius:tabRadius,borderTop:showDivider?`1px solid ${divider}`:\"1px solid transparent\",padding:`${tabPaddingY}px ${tabPaddingX}px`,transition:\"background 160ms ease\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{...numberFont,color:accent,fontVariantNumeric:\"tabular-nums\",paddingTop:2},children:String(i+1).padStart(2,\"0\")}),/*#__PURE__*/_jsx(\"span\",{style:{...labelFont,color:on?activeLabel:labelColor},children:it.title})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateRows:open?\"1fr\":\"0fr\",opacity:open?1:0,transition:\"grid-template-rows 260ms ease, opacity 220ms ease\"},children:/*#__PURE__*/_jsx(\"p\",{style:{overflow:\"hidden\",margin:0,padding:`0 ${tabPaddingX}px`,marginTop:open?tabPaddingY/2:0,marginBottom:open?tabPaddingY/2:0,color:accent,...descFont},children:it.description})})]},i);})});const panel=src?/*#__PURE__*/_jsx(\"img\",{src:src,alt:currentTitle,style:{width:\"100%\",maxWidth:620,display:\"block\",borderRadius:12,objectFit:\"cover\",objectPosition,aspectRatio:\"16 / 10\"}}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",maxWidth:620,aspectRatio:\"16 / 10\",borderRadius:12,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"rgba(20,40,60,0.4)\",fontFamily:\"Inter, sans-serif\",fontSize:13,letterSpacing:\"0.04em\",textTransform:\"uppercase\",background:\"repeating-linear-gradient(45deg, rgba(20,40,60,0.05) 0 12px, rgba(20,40,60,0.02) 12px 24px)\"},children:\"Add image in Framer\"});return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{display:\"flex\",flexDirection:stacked?\"column\":\"row\",alignItems:\"flex-start\",gap:stacked?Math.min(gap,28):gap,width:\"100%\",...style},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:stacked?\"none\":\"0 0 42%\",width:stacked?\"100%\":\"42%\"},children:tabList}),/*#__PURE__*/_jsx(\"div\",{style:{flex:stacked?\"none\":\"1 1 auto\",width:stacked?\"100%\":\"auto\"},children:panel})]});}OperationalCarousel.defaultProps={accent:\"#34B3C5\",labelColor:\"#16283A\",activeBg:\"#FFFFFF\",activeLabel:\"#16283A\",divider:\"#E3E7EB\",tabRadius:10,tabPaddingY:20,tabPaddingX:22,gap:44,labelFont:{fontFamily:\"Inter\",fontWeight:700,fontSize:\"21px\",lineHeight:\"1.25em\",letterSpacing:\"-0.01em\"},numberFont:{fontFamily:\"Inter\",fontWeight:600,fontSize:\"15px\",lineHeight:\"1.5em\"},descFont:{fontFamily:\"Inter\",fontWeight:600,fontSize:\"20px\",lineHeight:\"1.35em\",letterSpacing:\"-0.01em\"},items:[{title:\"Protect People\",description:\"Build location confidence, understand exposure and support people wherever they operate.\",image:null},{title:\"Coordinate Response\",description:\"Bring people, workflows and incident management together in one operational environment.\",image:null},{title:\"Communicate at Scale\",description:\"Reach the right people quickly and move from message to coordinated action.\",image:null},{title:\"Manage Travel Risk\",description:\"Connect travel, workforce and threat intelligence to understand exposure throughout every journey.\",image:null},{title:\"Run High-Risk Operations\",description:\"Connect people, sites, assets and risk across complex and distributed environments.\",image:null},{title:\"Accelerate Decisions with Operational AI\",description:\"Use live operational context to surface what matters and recommend next actions.\",image:null}]};addPropertyControls(OperationalCarousel,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Title\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"Description\"},image:{type:ControlType.Image,title:\"Image\"},imagePosition:{type:ControlType.Enum,title:\"Position\",defaultValue:\"center\",options:[\"left top\",\"center top\",\"right top\",\"left center\",\"center\",\"right center\",\"left bottom\",\"center bottom\",\"right bottom\"],optionTitles:[\"Top Left\",\"Top Center\",\"Top Right\",\"Center Left\",\"Center\",\"Center Right\",\"Bottom Left\",\"Bottom Center\",\"Bottom Right\"]}}}},labelFont:{type:ControlType.Font,title:\"Label Text\",controls:\"extended\",defaultFontType:\"sans\",defaultValue:{fontFamily:\"Inter\",fontWeight:700,fontSize:\"21px\",lineHeight:\"1.25em\",letterSpacing:\"-0.01em\"}},numberFont:{type:ControlType.Font,title:\"Number Text\",controls:\"extended\",defaultFontType:\"sans\",defaultValue:{fontFamily:\"Inter\",fontWeight:600,fontSize:\"15px\",lineHeight:\"1.5em\"}},descFont:{type:ControlType.Font,title:\"Description Text\",controls:\"extended\",defaultFontType:\"sans\",defaultValue:{fontFamily:\"Inter\",fontWeight:600,fontSize:\"20px\",lineHeight:\"1.35em\",letterSpacing:\"-0.01em\"}},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"#34B3C5\"},labelColor:{type:ControlType.Color,title:\"Label\",defaultValue:\"#16283A\"},activeLabel:{type:ControlType.Color,title:\"Active Label\",defaultValue:\"#16283A\"},activeBg:{type:ControlType.Color,title:\"Active Tab\",defaultValue:\"#FFFFFF\"},divider:{type:ControlType.Color,title:\"Divider\",defaultValue:\"#E3E7EB\"},tabRadius:{type:ControlType.Number,title:\"Tab Radius\",min:0,max:40,step:1,defaultValue:10},tabPaddingY:{type:ControlType.Number,title:\"Tab Height\",min:6,max:60,step:1,defaultValue:20},tabPaddingX:{type:ControlType.Number,title:\"Tab Padding X\",min:0,max:48,step:1,defaultValue:22},gap:{type:ControlType.Number,title:\"Column Gap\",min:0,max:120,step:2,defaultValue:44}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OperationalCarousel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./What_changes.map"],"mappings":"A,+LAA0J,SAASgB,EAAOC,EAAM,CAA4D,OAAvDA,EAAkB,OAAOA,GAAQ,SAAgBA,EAAaA,EAAM,KAAK,GAA7D,EAAgE,CAAC,SAASC,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