{"version":3,"file":"AllLocationsMap.DbGcpuqL.mjs","names":["useState","useRef","useMemo","startTransition","__esmMin","window","pe","te","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","c","ce","motion","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_DJ_0WPVq","ControlType","InfoPopup","variant","orientation","item","onClose","AllLocationsMap","defaultLocations","props","selectedIndex","setSelectedIndex","mapLoaded","setMapLoaded","mapRef","mapContainerRef","markersRef","center","initialLongitude","initialLatitude","locations","\"mapboxgl\"","script","link","zoomLevel","MAPBOX_TOKEN","marker","el","isSelected","i","location","t","style","reverseColumns","justMap","listTitle","popupOrientation","init_AllLocationsMap","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/fEuaeuFCfGJQHl5zYH84/i5OG9buljRrcyWFy1blB/AllLocationsMap.js"],"sourcesContent":["// Location map with Mapbox and list of main locations\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useMemo,useRef,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";const defaultLocations=[{name:\"Cardiff Central\",latitude:51.4759573,longitude:-3.1816041,address:\"Cardiff CF10 1EP\",what3Words:\"placeholder.placeholder.placeholder\",phoneNumber:\"02920103090\",email:\"\",link:\"https://example.com/cardiff-central\",image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Cardiff Central\"}},{name:\"Grangetown\",latitude:51.4674804,longitude:-3.1922408,address:\"Clive St, Cardiff CF11 7JB\",what3Words:\"placeholder.placeholder.placeholder\",phoneNumber:\"\",email:\"\",link:\"https://example.com/grangetown\",image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Grangetown\"}}];const MAPBOX_TOKEN=\"pk.eyJ1Ijoic2FtdHJhbXNoZWR0ZWNoMSIsImEiOiJjbWRyN2c0YXcwZDcyMmlxcWQ3ZG84OHI2In0.D1A2PUskFr-T_wBXNp0VTw\";function InfoPopup({item,onClose,orientation=\"horizontal\",variant}){const isDesktop=variant===\"Desktop\";return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",...isDesktop?{top:\"50%\",right:24,transform:\"translateY(-50%)\"}:{bottom:24,left:\"50%\",transform:\"translateX(-50%)\"},width:\"100%\",minWidth:orientation===\"horizontal\"?400:259,maxWidth:orientation===\"horizontal\"?400:259,zIndex:10,overflow:\"hidden\"},\"aria-live\":\"polite\",children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:item.image?orientation===\"horizontal\"?\"row\":\"column\":\"column\",gap:0,minHeight:item.image&&orientation===\"horizontal\"?120:\"auto\"},children:[item.image&&/*#__PURE__*/_jsx(\"div\",{style:{width:orientation===\"horizontal\"?124:\"100%\",height:orientation===\"vertical\"?193:\"auto\",overflow:\"hidden\",flexShrink:0},children:/*#__PURE__*/_jsx(\"img\",{src:item.image.src,alt:item.image.alt||\"Location image\",style:{width:\"100%\",height:\"auto\",objectFit:\"cover\",display:\"block\"}})}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,paddingTop:17,paddingBottom:17,paddingLeft:item.image&&orientation===\"horizontal\"?12:17,paddingRight:17,width:\"100%\",background:\"#F0E5D3\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:700,fontSize:\"1.25rem\",color:\"#222\",marginBottom:10,lineHeight:\"120%\",fontFamily:\"Space Grotesk\",textTransform:\"uppercase\"},children:item.name}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"0.75rem\",lineHeight:\"120%\",color:\"#222\",fontWeight:500,fontFamily:\"Space Grotesk\"},children:/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"0.75rem\",lineHeight:1.4,fontWeight:400,fontFamily:\"Space Grotesk\",wordBreak:\"break-word\"},children:item.address})}),item.phoneNumber&&/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"0.75rem\",color:\"#222\",lineHeight:\"120%\",fontFamily:\"Space Grotesk\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{fontWeight:500,fontFamily:\"Space Grotesk\",lineHeight:\"120%\"},children:[\"Call:\",\" \"]}),/*#__PURE__*/_jsx(\"a\",{href:\"tel:\"+item.phoneNumber,target:\"_blank\",style:{fontWeight:400,fontFamily:\"Space Grotesk\",color:\"#222\",lineHeight:\"120%\"},children:item.phoneNumber})]})}),item.email&&/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"0.75rem\",color:\"#222\",fontFamily:\"Space Grotesk\",lineHeight:\"120%\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{fontWeight:500,fontFamily:\"Space Grotesk\",lineHeight:\"120%\"},children:[\"Email:\",\" \"]}),/*#__PURE__*/_jsx(\"a\",{href:\"mailto:\"+item.email,target:\"_blank\",style:{fontWeight:500,fontFamily:\"Space Grotesk\",color:\"#222\",lineHeight:\"120%\"},children:item.email})]})}),item.what3Words&&/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"0.75rem\",color:\"#222\",fontFamily:\"Space Grotesk\",lineHeight:\"120%\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{fontWeight:500,fontFamily:\"Space Grotesk\",lineHeight:\"120%\"},children:[\"What3Words:\",\" \"]}),/*#__PURE__*/_jsx(\"a\",{href:\"https://what3words.com/\"+item.what3Words,target:\"_blank\",style:{fontWeight:500,fontFamily:\"Space Grotesk\",color:\"#222\"},children:item.what3Words})]})}),/*#__PURE__*/_jsx(\"button\",{style:{position:\"absolute\",top:8,right:8,background:\"transparent\",border:\"none\",fontSize:18,color:\"#999\",cursor:\"pointer\",padding:4,lineHeight:1,fontFamily:\"Space Grotesk\"},onClick:onClose,children:\"\\xd7\"})]})]})});}/**\n * Location Map with list of main locations\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AllLocationsMap(props){const{justMap,locations=defaultLocations,style,reverseColumns=false,zoomLevel=12,variant,popupOrientation=\"horizontal\",listTitle=\"Our Locations\",initialLatitude,initialLongitude}=props;const[selectedIndex,setSelectedIndex]=useState(null);const[mapLoaded,setMapLoaded]=useState(false);const mapRef=useRef(null);const mapContainerRef=useRef(null);const markersRef=useRef([]);const center=useMemo(()=>{if(initialLongitude!=null&&initialLatitude!=null){return[initialLongitude,initialLatitude];}if(locations.length>0){return[locations[0].longitude,locations[0].latitude];}return[4.899431,52.379189];},[initialLatitude,initialLongitude,locations]);// 1. Load Mapbox script + CSS once\nuseEffect(()=>{if(typeof window===\"undefined\")return;// @ts-ignore\nif(window[\"mapboxgl\"]){setMapLoaded(true);return;}const script=document.createElement(\"script\");script.src=\"https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js\";script.onload=()=>setMapLoaded(true);document.head.appendChild(script);const link=document.createElement(\"link\");link.href=\"https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css\";link.rel=\"stylesheet\";document.head.appendChild(link);},[]);// 2. Initialise the map once Mapbox is ready and the container is in the DOM\nuseEffect(()=>{// @ts-ignore\nif(!mapLoaded||!mapContainerRef.current||!window[\"mapboxgl\"]||mapRef.current)return;// @ts-ignore\nmapRef.current=new window[\"mapboxgl\"].Map({container:mapContainerRef.current,style:\"mapbox://styles/mapbox/streets-v12\",center,zoom:zoomLevel,accessToken:MAPBOX_TOKEN});// Give the container a moment to settle its dimensions\nsetTimeout(()=>{mapRef.current?.resize();},200);// Cleanup on unmount\nreturn()=>{mapRef.current?.remove();mapRef.current=null;};},[mapLoaded])// intentionally omit center/zoomLevel — we only want to init once\n;// 3. Add / refresh markers whenever locations or selection changes\nuseEffect(()=>{if(!mapRef.current)return;// Remove old markers\nmarkersRef.current.forEach(marker=>marker.remove());markersRef.current=[];locations.forEach((location,i)=>{const el=document.createElement(\"div\");const isSelected=selectedIndex===i;el.innerHTML=`\n                <svg width=\"${isSelected?38:32}\" height=\"${isSelected?47:40}\" viewBox=\"0 0 32 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                    <path d=\"M16 0C7.163 0 0 7.163 0 16C0 24 16 40 16 40S32 24 32 16C32 7.163 24.837 0 16 0Z\" fill=\"${isSelected?\"#47A2FF\":\"#EA4335\"}\"/>\n                    <circle cx=\"16\" cy=\"16\" r=\"8\" fill=\"white\"/>\n                </svg>\n            `;el.style.width=isSelected?\"38px\":\"32px\";el.style.height=isSelected?\"47px\":\"40px\";el.style.cursor=\"pointer\";el.style.filter=\"drop-shadow(0 2px 4px rgba(0,0,0,0.3))\";el.style.transition=\"width 0.15s, height 0.15s\";el.title=location.name;el.onclick=()=>startTransition(()=>{setSelectedIndex(i);mapRef.current?.flyTo({center:[location.longitude,location.latitude],zoom:zoomLevel,duration:1200,essential:true,curve:1.42,easing:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2});});// @ts-ignore\nconst marker=new window[\"mapboxgl\"].Marker(el).setLngLat([location.longitude,location.latitude]).addTo(mapRef.current);markersRef.current.push(marker);});return()=>{markersRef.current.forEach(marker=>marker.remove());markersRef.current=[];};},[locations,selectedIndex,mapLoaded,zoomLevel]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:variant===\"Mobile\"?\"column\":reverseColumns?\"row-reverse\":\"row\",background:\"transparent\",overflow:\"hidden\"},children:[justMap===false&&/*#__PURE__*/_jsx(\"div\",{style:{width:variant===\"Desktop\"?\"50%\":\"100%\",minWidth:200,maxWidth:variant===\"Desktop\"?\"50%\":\"100%\",background:\"transparent\",transition:\"width 0.2s cubic-bezier(.4,1,.4,1)\",display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,overflowY:\"auto\",padding:\"24px 20px\",display:\"flex\",flexDirection:\"column\",justifyContent:\"flex-start\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:700,fontSize:\"1.5rem\",color:\"#222\",marginBottom:14,userSelect:\"none\",fontFamily:\"Space Grotesk\",textTransform:\"uppercase\",lineHeight:\"120%\"},children:listTitle}),locations.map((location,i)=>/*#__PURE__*/_jsxs(motion.div,{onClick:()=>startTransition(()=>{setSelectedIndex(i);mapRef.current?.flyTo({center:[location.longitude,location.latitude],zoom:zoomLevel,duration:1200,essential:true,curve:1.42,easing:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2});}),whileHover:{opacity:.7},style:{padding:\"12px 0\",cursor:\"pointer\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",borderBottom:\"0.5px solid #ECECEC\"},tabIndex:0,\"aria-selected\":selectedIndex===i,role:\"button\",children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"Space Grotesk\",fontWeight:selectedIndex===i?600:400,fontSize:\"0.875rem\",lineHeight:\"150%\",color:selectedIndex===i?\"#47A2FF\":\"#222\",transition:\"color 0.2s ease\"},children:location.name}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"Space Grotesk\",fontSize:\"0.75rem\",lineHeight:\"150%\",color:\"#727272\"},children:location.address})]},i))]})}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,position:\"relative\",height:\"100%\",width:variant===\"Desktop\"?\"50%\":\"100%\",transition:\"width 0.2s cubic-bezier(.4,1,.4,1)\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"div\",{ref:mapContainerRef,style:{width:\"100%\",height:\"100%\",flex:1,background:\"transparent\",overflow:\"auto\"}}),selectedIndex!==null&&locations[selectedIndex]&&/*#__PURE__*/_jsx(InfoPopup,{item:locations[selectedIndex],orientation:popupOrientation,variant:variant,onClose:()=>startTransition(()=>setSelectedIndex(null))})]})]});}addPropertyControls(AllLocationsMap,{justMap:{type:ControlType.Boolean,title:\"Just Map\",defaultValue:false},reverseColumns:{type:ControlType.Boolean,title:\"Reverse Columns\",defaultValue:false,enabledTitle:\"Map Left\",disabledTitle:\"List Left\"},listTitle:{type:ControlType.String,title:\"List Title\",defaultValue:\"Our Locations\"},locations:{type:ControlType.Array,title:\"Locations\",control:{type:ControlType.Object,controls:{name:{type:ControlType.String,title:\"Name\",defaultValue:\"Location Name\"},latitude:{type:ControlType.Number,title:\"Latitude\",defaultValue:51.4759573,min:-90,max:90,step:1e-6},longitude:{type:ControlType.Number,title:\"Longitude\",defaultValue:-3.1816041,min:-180,max:180,step:1e-6},address:{type:ControlType.String,title:\"Address\",defaultValue:\"123 Main Street\"},phoneNumber:{type:ControlType.String,title:\"Phone Number\",defaultValue:\"\"},email:{type:ControlType.String,title:\"Email\",defaultValue:\"\"},what3Words:{type:ControlType.String,title:\"What3Words\",defaultValue:\"\"},link:{type:ControlType.String,title:\"Link\",defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"}}},defaultValue:defaultLocations,maxCount:20},zoomLevel:{type:ControlType.Number,title:\"Zoom Level\",defaultValue:12,min:0,max:22},variant:{type:ControlType.Enum,title:\"Variant\",options:[\"Desktop\",\"Mobile\"],optionTitles:[\"Desktop\",\"Mobile\"],default:\"Desktop\"},popupOrientation:{type:ControlType.Enum,title:\"Popup Orientation\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal (Image Left)\",\"Vertical (Image Top)\"],defaultValue:\"horizontal\"},initialLatitude:{type:ControlType.Number,title:\"Start Latitude\",defaultValue:51.4759573,min:-90,max:90,step:1e-6,description:\"Map centre on load. Defaults to first location.\"},initialLongitude:{type:ControlType.Number,title:\"Start Longitude\",defaultValue:-3.1816041,min:-180,max:180,step:1e-6,description:\"Map centre on load. Defaults to first location.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AllLocationsMap\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-pr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