{"version":3,"file":"What_changes.CemcsOso.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","p","_e","de","addPropertyControls","init_framer_DKtAEkcX","ControlType","imgSrc","image","useContainerWidth","ref","w","setW","ro","e","entries","OperationalCarousel","props","active","setActive","width","list","items","stacked","currentItem","src","currentTitle","objectPosition","tabList","on","i","prevOn","showDivider","open","activeBg","tabRadius","divider","tabPaddingY","tabPaddingX","numberFont","accent","labelFont","activeLabel","labelColor","it","descFont","panel","gap","style","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,SAASa,EAAO,EAAM,CAA4D,OAAvDC,EAAkB,OAAOA,GAAQ,SAAgBA,EAAaA,EAAM,KAAK,GAA7D,EAAgE,CAAC,SAASC,GAAmB,CAAC,IAAMC,EAA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