PageSourceSearch

https://www.metlink.org.nz/_resources/app/client/dist/assets/Suburb-DdSShvke.js

js metlink.org.nz collected 2026-09-24 09:11:44 UTC 3,732 bytes, 1 lines download raw bytes

1import{W as g,X as f,Z as c,O as r,a4 as u,Q as n,a2 as t,m as o,a5 as l,F as _,a6 as m,S as k,a0 as h}from"./vendor-DKuO0rbx.js";import{_ as y,S as B,d as I,s as T}from"./main-C7_BwmDx.js";import{m as M}from"./mobileDragPane-Buu24bkf.js";import{M as C}from"./MapIcon-8OBpRq0F.js";import{F}from"./FavouritesButton-BRTNPNQF.js";import"./lodash-pUwldgrz.js";import"./timezone-support-C-mnkNYX.js";import"./vue-tools-BAyj-N1r.js";const P={name:"suburb",mixins:[M,I,T],components:{MapIcon:C,FavouritesButton:F,Badge:B},head(){var s;return this.makeHead({title:`Suburb ${(s=this.selectedSuburb)==null?void 0:s.name} | Metlink`})},data(){return{isLoading:!1,currentTab:null,tabs:["Stops","Services"]}},computed:{...f({currentUser:s=>s.currentUser,selectedSuburb:s=>s.selectedSuburb,stops:s=>s.gtfs.stops,services:s=>s.gtfs.services,suburbs:s=>s.suburbs}),filteredStops(){return this.stops.filter(s=>this.selectedSuburb.stops.includes(s.stop_id))},filteredServices(){return this.services.filter(s=>this.selectedSuburb.services.includes(s.route_id.toString()))}},async mounted(){this.suburbs.length||await this.$store.dispatch("getRegionsAndSuburbs"),this.$nextTick(()=>{this.setSelectedSuburbBySlug(this.$route.params.id),this.currentTab=this.tabs[1]})},unmounted(){this.setSelectedSuburbBySlug(null)},methods:{...g(["setSelectedSuburbBySlug"])}},w={key:0,class:"top-card"},x={class:"top-card__body top-card__body--suburb"},N={class:"suburb__heading"},V={class:"suburb__heading-info"},A={class:"suburb__name-wrapper"},D={class:"suburb__name"},H={class:"suburb__tabs"},L=["onClick","aria-selected"],U=t("div",{class:"suburb-tab-heading"},"Stops in this suburb",-1),$={key:0,class:"suburb-pane-inner"},z=t("span",{class:"icon-stop"},null,-1),E={class:"list-item__id"},O={class:"list-item__name"},Q=t("div",{class:"suburb-tab-heading"},"Services in this suburb",-1),R={key:0,class:"suburb-pane-inner"},W={class:"list-item__name"};function X(s,a,Z,j,i,d){const S=c("MapIcon"),b=c("FavouritesButton"),p=c("router-link"),v=c("Badge");return s.selectedSuburb?(n(),r("div",w,[t("div",{class:"pane-header",onTouchstart:a[0]||(a[0]=e=>s.dragMobilePane(!0))},[t("div",x,[t("div",N,[t("div",V,[t("div",A,[o(S,{icon:"suburbs"}),t("div",D,l(this.selectedSuburb.name),1)])]),o(b,{suburbId:s.selectedSuburb.id},null,8,["suburbId"])])]),t("div",H,[(n(!0),r(_,null,m(i.tabs,e=>(n(),r("button",{class:k(["suburb__tab btn--input",{"suburb__tab--active":i.currentTab===e}]),key:e,onClick:q=>i.currentTab=e,"aria-selected":i.currentTab===e},l(e),11,L))),128))])],32),i.currentTab==="Stops"?(n(),r("div",{key:0,class:"pane-content",onTouchstart:a[1]||(a[1]=e=>s.dragMobilePane(!1))},[U,d.filteredStops.length?(n(),r("div",$,[(n(!0),r(_,null,m(d.filteredStops,e=>(n(),r("div",{key:e.stop_id,class:"list-item"},[z,o(p,{to:{name:"stop",params:{id:e.stop_id}},class:"list-item__text","aria-label":e.stop_name},{default:h(()=>[t("span",E,l("Stop "+e.stop_id),1),t("span",O,l(e.stop_name),1)]),_:2},1032,["to","aria-label"]),o(b,{stopId:e.stop_id},null,8,["stopId"])]))),128))])):u("",!0)],32)):u("",!0),i.currentTab==="Services"?(n(),r("div",{key:1,class:"pane-content",onTouchstart:a[2]||(a[2]=e=>s.dragMobilePane(!1))},[Q,d.filteredServices.length?(n(),r("div",R,[(n(!0),r(_,null,m(d.filteredServices,e=>(n(),r("div",{key:e.route_id,class:"list-item"},[o(v,{routeId:e.route_id},null,8,["routeId"]),o(p,{to:{name:"timetable",params:{id:e.route_short_name}},class:"list-item__text","aria-label":e.route_short_name+" "+e.route_long_name},{default:h(()=>[t("span",W,l(e.route_long_name),1)]),_:2},1032,["to","aria-label"]),o(b,{routeId:e.route_id},null,8,["routeId"])]))),128))])):u("",!0)],32)):u("",!0)])):u("",!0)}const ne=y(P,[["render",X]]);export{ne 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.