1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[1372],{17090:function(e,t,a){a.d(t,{A:function(){return d}});var n=a(20641),o=a(90033);const r=["id"],i={class:"o-wb-shell"};function l(e,t,a,l,s,c){const u=(0,n.g2)("WebsiteSectionHead");return(0,n.uX)(),(0,n.CE)("section",{id:a.id,class:(0,o.C4)(["o-w-section",{"o-wb-surface-alt":a.alt}])},[(0,n.Lk)("div",i,[(0,n.bF)(u,{eyebrow:a.eyebrow,"show-eyebrow":a.showEyebrow,icon:a.icon,title:a.title,subtitle:a.subtitle,editing:a.editing,onUpdate:t[0]||(t[0]=t=>e.$emit("update",t))},null,8,["eyebrow","show-eyebrow","icon","title","subtitle","editing"]),(0,n.RG)(e.$slots,"default",{},void 0,!0)])],10,r)}var s=a(92736),c={name:"WebsiteSection",components:{WebsiteSectionHead:s.A},props:{id:{type:String,default:null},eyebrow:{type:String,default:null},showEyebrow:{type:Boolean,default:!0},icon:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},alt:{type:Boolean,default:!1},editing:{type:Boolean,default:!1}},emits:["update"]},u=a(66262);const p=(0,u.A)(c,[["render",l],["__scopeId","data-v-7a3f38c8"]]);var d=p},51372:function(e,t,a){a.r(t),a.d(t,{default:function(){return v}});var n=a(20641),o=a(90033);const r={class:"o-w-chapters__map"},i={class:"o-w-chapters__more"};function l(e,t,a,l,s,c){const u=(0,n.g2)("LocalCenterMap"),p=(0,n.g2)("WebsiteIcon"),d=(0,n.g2)("router-link"),m=(0,n.g2)("WebsiteSection");return(0,n.uX)(),(0,n.Wv)(m,{id:"chapters",alt:"",eyebrow:a.eyebrow||e.$t("Our chapters"),"show-eyebrow":a.showEyebrow,icon:"map-location-dot",title:a.title||e.$t("Find a chapter near you"),subtitle:a.subtitle||e.$t("Local groups active in their own communities. Explore the map or browse the list to get involved."),editing:a.editing,onUpdate:t[0]||(t[0]=t=>e.$emit("update",t))},{default:(0,n.k6)(()=>[(0,n.Lk)("div",r,[e.tenant?((0,n.uX)(),(0,n.Wv)(u,{key:0,"is-map-view":!0,"is-iframe":!0,"tenant-slug":e.tenant.slug},null,8,["tenant-slug"])):(0,n.Q3)("",!0)]),(0,n.Lk)("div",i,[(0,n.bF)(d,{class:"o-wb-btn o-wb-btn--primary",to:{name:"ChaptersPublic"}},{default:(0,n.k6)(()=>[(0,n.eW)((0,o.v_)(e.$t("See all chapters"))+" ",1),(0,n.bF)(p,{name:"arrow-right"})]),_:1})])]),_:1},8,["eyebrow","show-eyebrow","title","subtitle","editing"])}var s=a(40834),c=a(17090),u=a(19318),p=a(66741),d={name:"WebsiteChapters",components:{WebsiteSection:c.A,LocalCenterMap:p.A,WebsiteIcon:u.A},props:{editing:{type:Boolean,default:!1},eyebrow:{type:String,default:null},showEyebrow:{type:Boolean,default:!0},title:{type:String,default:null},subtitle:{type:String,default:null}},emits:["update"],computed:{...(0,s.L8)(["tenant"])}},m=a(66262);const h=(0,m.A)(d,[["render",l],["__scopeId","data-v-487e42c9"]]);var v=h},66741:function(e,t,a){a.d(t,{A:function(){return A}});var n=a(20641),o=a(53751),r=a(90033);const i={class:"o-maxwidth"},l={key:0,class:"map-container"},s={class:"card p-4 local-center-hover-card"},c={class:"local-center-hover-name"},u={key:0,class:"local-center-hover-meta"},p={class:"icon is-small"},d={key:1,class:"local-center-hover-meta"},m={key:2,class:"local-center-hover-meta"},h={key:3,class:"local-center-hover-meta"},v={key:4,class:"local-center-hover-description"},w={class:"local-center-hover-action"};function f(e,t,a,f,g,b){const k=(0,n.g2)("l-tile-layer"),y=(0,n.g2)("l-marker"),L=(0,n.g2)("l-map"),M=(0,n.g2)("font-awesome-icon"),S=(0,n.gN)("safe-html");return(0,n.uX)(),(0,n.CE)("section",i,[(0,n.bF)(o.eB,{name:"map-collapse",onAfterEnter:b.invalidateMapSize},{default:(0,n.k6)(()=>[a.isMapView?((0,n.uX)(),(0,n.CE)("div",l,[(0,n.bF)(L,{ref:"leafletMap",zoom:b.zoom,center:b.center,options:b.mapOptions,class:"vue2leafmap",onReady:b.onMapReady},{default:(0,n.k6)(()=>[(0,n.bF)(k,{url:e.url,attribution:e.attribution},null,8,["url","attribution"]),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(b.markerData,(t,a)=>((0,n.uX)(),(0,n.Wv)(y,{key:a,"lat-lng":t,onClick:e=>b.openLocalCenter(t),onMouseover:e=>b.onMarkerHover(t,e),onMouseout:e.closeHoverPreview},null,8,["lat-lng","onClick","onMouseover","onMouseout"]))),128))]),_:1},8,["zoom","center","options","onReady"]),e.hoverPreview?((0,n.uX)(),(0,n.CE)("div",{key:0,class:"map-hover-preview",style:(0,r.Tr)(e.hoverPreviewStyle)},[(0,n.Lk)("div",s,[(0,n.Lk)("p",c,[(0,n.Lk)("strong",null,(0,r.v_)(e.hoverPreview.marker.name),1)]),e.hoverPreview.marker.town&&e.hoverPreview.marker.name!==e.hoverPreview.marker.town?((0,n.uX)(),(0,n.CE)("p",u,[(0,n.Lk)("span",p,[(0,n.bF)(M,{icon:"fa-light fa-location-dot"})]),(0,n.Lk)("span",null,(0,r.v_)(e.hoverPreview.marker.town),1)])):(0,n.Q3)("",!0),e.hoverPreview.marker.address?((0,n.uX)(),(0,n.CE)("p",d,(0,r.v_)(e.hoverPreview.marker.address),1)):(0,n.Q3)("",!0),e.hoverPreview.marker.phone?((0,n.uX)(),(0,n.CE)("p",m,(0,r.v_)(e.hoverPreview.marker.phone),1)):(0,n.Q3)("",!0),e.hoverPreview.marker.email?((0,n.uX)(),(0,n.CE)("p",h,(0,r.v_)(e.hoverPreview.marker.email),1)):(0,n.Q3)("",!0),e.hoverPreview.marker.mapDescription?(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",v,null,512)),[[S,b.nl2br(e.hoverPreview.marker.mapDescription)]]):(0,n.Q3)("",!0),(0,n.Lk)("p",w,(0,r.v_)(b.canOpenLocalCenter?e.$t("details"):e.$t("Log in to see more")),1)])],4)):(0,n.Q3)("",!0)])):(0,n.Q3)("",!0)]),_:1},8,["onAfterEnter"])])}a(44114),a(18111),a(61701);var g=a(95256);function b(e,t){const a="string"===typeof e?parseFloat(e):e,n="string"===typeof t?parseFloat(t):t;return!Number.isFinite(a)||!Number.isFinite(n)||a<-90||a>90||n<-180||n>180?null:{lat:a,lng:n}}var k=a(55657),y=a(40834),L=a(53481),M=a.n(L),S=a(18249),C=a(37024),_=a(91071),P=a(68061),E=a(66261);delete M().Icon.Default.prototype._getIconUrl,M().Icon.Default.mergeOptions({iconRetinaUrl:S,iconUrl:C,shadowUrl:_});var $={mixins:[E.A],props:["isMapView","isIframe","tenantSlug"],data(){return{mapItems:[],isLoaded:!1,...(0,k.l0)(k.zV)}},watch:{isMapView(e){e&&!this.isLoaded&&this.loadMapData(),e&&this.$nextTick(()=>{this.invalidateMapSize()})}},mounted(){this.isMapView&&this.loadMapData()},computed:{...(0,y.L8)(["user","tenant"]),mapOptions(){return k.Yp},canOpenLocalCenter(){return!this.isIframe&&!!this.user?.id},zoom(){return this.tenant?.country?.mapZoom||3},center(){const[e,t]=String(this.tenant?.country?.geoLatLong||"").split(",");return M().latLng(parseFloat(e)||0,parseFloat(t)||0)},markerData(){let e=[];for(let t of this.mapItems){let a=null,n=null;if(t.geoLocation&&t.geoLocation.length>0){const e=t.geoLocation.split(",");a=e[0]?e[0].trim():null,n=e[1]?e[1].trim():null}else t.town&&t.town.latitude&&(a=t.town.latitude,n=t.town.longitude);const o=b(a,n);null!==o&&e.push({lat:o.lat,lng:o.lng,name:t.name,town:t.town?.name?t.town.name:"",address:t.postalAddress,phone:t.contactPhone,email:t.contactEmail,mapDescription:t.mapDescription,id:t.id})}return e}},methods:{nl2br:g.HA,onMapReady(e){(0,k.c_)(e)},onMarkerHover(e,t){this.openHoverPreview(e,t,this.$refs.leafletMap?.leafletObject)},openLocalCenter(e){this.canOpenLocalCenter&&e?.id&&this.$router.push({name:"LocalCenterShow",params:{item:e.id}})},loadMapData(){let e="/local-centers-map";this.isIframe&&this.tenantSlug&&(e="/local-centers-map-public?tenantSlug="+this.tenantSlug),this.$http.plain.get(e).then(e=>{this.mapItems=e.data,this.isLoaded=!0,this.$nextTick(()=>{this.invalidateMapSize()})}).catch(e=>{console.error(e)})},fitMapToMarkers(){const e=this.$refs.leafletMap?.leafletObject;if(!e)return;if((0,k.i0)(e,this.tenant))return;if(0===this.markerData.length)return;const t=M().latLngBounds(this.markerData.map(e=>[e.lat,e.lng]));e.fitBounds(t,{padding:[40,40],maxZoom:14})},invalidateMapSize(){this.$nextTick(()=>{const e=this.$refs.leafletMap?.leafletObject;e&&(e.invalidateSize(),this.$nextTick(()=>{this.fitMapToMarkers()}))})}},components:{LMap:P.Do,LTileLayer:P.a,LMarker:P.li}},F=a(66262);const I=(0,F.A)($,[["render",f],["__scopeId","data-v-666c124a"]]);var A=I}}]);
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.