PageSourceSearch

https://www.metlink.org.nz/_resources/app/client/dist/assets/MapFeature-C1KCZmS2.js

js metlink.org.nz collected 2026-09-24 09:11:37 UTC 2,057 bytes, 1 lines download raw bytes

1import{_,l as m,s as h,L as f}from"./main-C7_BwmDx.js";import{af as y,Z as i,O as r,Q as a,$ as n,a4 as d,a2 as e,a5 as c,S as g}from"./vendor-DKuO0rbx.js";import{M as b}from"./MapIcon-8OBpRq0F.js";import"./vue-tools-BAyj-N1r.js";import"./lodash-pUwldgrz.js";import"./timezone-support-C-mnkNYX.js";const k={components:{Loader:f,MapIcon:b},mixins:[m,h],head(){return this.makeHead({title:"Map feature | Metlink"})},computed:{...y(["getLayerFeatureById"]),id(){return this.$route.params.featureId},feature(){return this.getLayerFeatureById(this.id)},icon(){return this.feature.properties.icon},title(){return this.feature.properties.title},description(){return this.feature.properties.description}},created(){this.id&&(this.finishLoading(),this.$emit("updatePanelHeight"))},methods:{startJourneyToPoint(){this.$store.commit("SET_JOURNEY_END",{name:this.title,nameDisplay:this.title,addressDisplay:this.description,position:this.feature.geometry.coordinates}),this.$router.push({name:"journey-options",query:{showBack:!0}})}}},v={key:1,class:"top-card pane-header"},L={class:"top-card__body"},B={class:"map-feature__heading"},M={class:"map-feature__heading-icon"},I={class:"map-feature__heading-info"},P={class:"map-feature__name",tabindex:"0"},j={class:"map-feature__id",tabindex:"0"},x={class:"mt-3"},C=e("i",{class:"icon-journey mr-2","aria-hidden":"true"},null,-1),D=e("span",null,"Plan a journey",-1),E=[C,D];function J(s,o,N,T,F,t){const u=i("Loader"),p=i("MapIcon");return a(),r("div",{class:g({"panel__body--fullheight":s.isLoading})},[s.isLoading?(a(),n(u,{key:0,class:"loader--panel"})):t.feature?(a(),r("div",v,[e("div",L,[e("div",B,[e("div",M,[t.icon?(a(),n(p,{key:0,icon:t.icon},null,8,["icon"])):d("",!0)]),e("div",I,[e("div",P,c(t.title),1),e("div",j,c(t.description),1)])]),e("div",x,[e("button",{type:"button",class:"btn btn--icon btn--primary-75 btn--normal justify-content-center w-100",onClick:o[0]||(o[0]=(...l)=>t.startJourneyToPoint&&t.startJourneyToPoint(...l))},E)])])])):d("",!0)],2)}const q=_(k,[["render",J]]);export{q as default};

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.