1"use strict";(globalThis["webpackChunkgk_jss_app"]=globalThis["webpackChunkgk_jss_app"]||[]).push([[9969],{71627:(e,a,s)=>{s.d(a,{A:()=>C});s(20116);const r=s.p+"img/Cluster.1e05d385.svg",l=s.p+"img/Belhaven-cluster.423ab205.svg",n=s.p+"img/Crafted-cluster.e26dfbe6.svg",t=s.p+"img/ChefBrewer-cluster.850fb6cc.svg",u=s.p+"img/FarmhouseInns-cluster.a0026a9c.svg",i=s.p+"img/FarmhouseKitchen-cluster.d82e6b3e.svg",o=s.p+"img/GreeneKing-cluster.3e279c7b.svg",c=s.p+"img/HungryHorse-cluster.1565e09c.svg",p=s.p+"img/Metro-cluster.59b97b67.svg",m=s.p+"img/Everly-cluster.932f9ae1.svg",d=s.p+"img/FlamingGrill-cluster.3499ec6b.svg",g=s.p+"img/default-cluster.1e05d385.svg",v=s.p+"img/default.06bd94d2.svg",f=s.p+"img/default.9050dd72.svg",h=s.p+"img/default.d68aa994.svg",w={Belhaven:{cluster:l},ChefBrewer:{cluster:t},FarmhouseInns:{cluster:u},FarmhouseKitchen:{cluster:i},GreeneKing:{cluster:o},HungryHorse:{cluster:c},Metro:{cluster:p},Crafted:{cluster:n},WackyWarehouse:{cluster:g},Everly:{cluster:m},FlamingGrill:{cluster:d},default:{mapPinIconNormal:v,mapPinIconSelected:f,mapPinIconHover:h,cluster:g},Cluster:r},b={Belhaven:["Belhaven","BelhavenPubs"],ChefBrewer:["ChefBrewer","ChefAndBrewer"],FarmhouseInns:["FarmhouseInns"],FarmhouseKitchen:["FarmhouseKitchen"],GreeneKing:["GreeneKing"],GreeneKingInns:["GreeneKingInns"],HungryHorse:["HungryHorse"],Metro:["Metro"],Crafted:["Crafted","CraftedPubs"],WackyWarehouse:["WackyWarehouse"],Everly:["Everly"],FlamingGrill:["FlamingGrill"]},y=e=>{const a=Object.entries(b).find((([,a])=>a.includes(e)))?.[0];return w[a]??w["default"]},C=y},77101:(e,a,s)=>{s.r(a),s.d(a,{default:()=>v});s(61701);var r=s(50953),l=s(20641),n=s(99940),t=s(9520),u=s(71627),i=s(25114),o=s(30843);const c={key:0,class:"interactive-map"},p="mapPinIconNormal",m="default",d={__name:"InteractiveMap",props:{fields:{type:Object,default:()=>({})},rendering:{type:Object},params:{type:Object,default:()=>({})}},setup(e){const a=(0,i.C)(),s=(0,o.B)(),d=e,g=(0,r.KR)(null),v=(0,l.EW)((()=>!(!d.fields.venueLatitude?.value||!d.fields.venueLongitude?.value)));(0,l.sV)((()=>{s.woosmapApiKey&&v.value&&a.isMapApiLoaded&&f()}));const f=()=>{const e=v.value?Number.parseFloat(d.fields.venueLatitude?.value):null,a=v.value?Number.parseFloat(d.fields.venueLongitude?.value):null,s=new window.woosmap.map.Map(g.value,{center:{lat:e,lng:a},zoom:17}),r=new window.woosmap.map.Marker({position:{lat:e,lng:a},icon:{url:d.fields.mapPin?.value||(0,u.A)(m)[p],scaledSize:new window.woosmap.map.Size(35,35)}});v.value&&r.setMap(s)};return!a.isMapApiLoaded&&s.woosmapApiKey&&v.value&&(0,t.u)({script:[{key:"map-api",src:`https://sdk.woosmap.com/map/map.js?key=${s.woosmapApiKey}`,defer:!0,onload:()=>{f(),a.setMapApiLoaded()}}]},{mode:"client"}),(e,a)=>v.value||!(0,r.R1)(n.isServer)()&&(0,r.R1)(n.isEditorActive)()?((0,l.uX)(),(0,l.CE)("section",c,[(0,l.Lk)("div",{ref_key:"mapContainer",ref:g,class:"interactive-map__map"},null,512)])):(0,l.Q3)("",!0)}},g=d,v=g}}]); 2//# sourceMappingURL=InteractiveMap.1a0c2387.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.