PageSourceSearch

https://conversations.merri-bek.vic.gov.au/application/js/dist/legacy/chunks/53.9a528121eae4bf35.js

js merri-bek.vic.gov.au collected 2026-09-24 21:27:03 UTC 5,863 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ae05ab22-0729-5875-8ad0-7a8c7949898a")}catch(e){}}();
3(self.webpackChunkthe_hive_legacy=self.webpackChunkthe_hive_legacy||[]).push([[53],{60053:function(t,e,a){a.r(e),a.d(e,{default:function(){return s}});var i={name:"ProjectPanel",props:["activeProjects","activeProjectIndex","displayLocationTags","displayProjectStatus","displayProjectImage","displayUpdatedDate","isMobile","loadingData"],data:function(){return{panelExpanded:!1}},filters:{formatDateStr:function(t){return moment(t).format("LL")},formatDateNum:function(t){return moment(t).format("L")}},created:function(){window.addEventListener("resize",this.resizeActions),this.resizeActions()},destroyed:function(){window.removeEventListener("resize",this.resizeActions)},mounted:function(){var t=this;this.$emit("maintainFocus"),this.$nextTick((function(){t.resizeActions()}))},updated:function(){var t=this;this.$emit("maintainFocus"),this.$nextTick((function(){t.resizeActions()}))},methods:{checkTagLength:function(){$(".project-map-card").each((function(){var t=this;$(t).find(".location-tag.hidden").removeClass("hidden"),$(t).find(".location-ellipsis").remove();var e=$(t).find(".project-map-card-body").width(),a=e-35;if($(t).find(".tag-list").width()>e){var i=[],s=!1,c=0;$(t).find(".location-tag").each((function(){var t=this;c+($(t).width()+16)<a?c+=$(t).width()+16:(s||(s=t),i.push($(t).data("location")),$(t).addClass("hidden"))}));var n=i.join(", "),o=$("<li></li>");o.html(" ... "),o.addClass("project-map-tag location-tag small location-ellipsis"),o.attr("data-toggle","tooltip"),o.attr("data-placement","top"),o.attr("title",n),$(o).tooltip(),0==$(t).find(".tag-list").find(".location-ellipsis").length&&$(t).find(".tag-list").append(o)}}))},resizeActions:function(){this.checkTagLength()},projectImage:function(t){return t.project_thumbnail?t.project_thumbnail:"/application/themes/the_hive/img/default.jpg"},togglePanel(){this.panelExpanded=!this.panelExpanded},closeMapPanel(){this.$emit("closeMapPanel")},prevProject:function(t){var e=this.activeProjects[0==t?this.activeProjects.length-1:t-1].id;this.$emit("prevProject",e)},nextProject:function(t){var e=this.activeProjects[t==this.activeProjects.length-1?0:t+1].id;this.$emit("nextProject",e)}}},s=(0,a(14486).A)(i,(function(){var t=this,e=t._self._c;return!t.loadingData&&t.activeProjects?e("article",{staticClass:"project-map-card project-map-panel",class:[{"mobile-ui":t.isMobile},{collapsed:!t.panelExpanded},{"project-map-panel-no-image":0==t.displayProjectImage},{"project-map-panel-no-status":0==t.displayProjectStatus}],attrs:{id:"project-card-"+t.activeProjects[t.activeProjectIndex].id}},[e("button",{staticClass:"btn handle-bar hidden-sm hidden-md hidden-lg",on:{click:t.togglePanel}},[e("span",{class:t.panelExpanded?"hive-chevron-down":"hive-chevron-up",attrs:{"aria-hidden":"true"}}),e("span",{staticClass:"read-more"},[t._v(t._s(t.$t("readMore")))])]),t._v(" "),e("button",{staticClass:"btn btn-close btn-cancel",class:[{"btn-style-light":1==t.displayProjectImage}],attrs:{"aria-label":t.$t("close")},on:{click:t.closeMapPanel}},[e("i",{staticClass:"fa-solid fa-xmark",attrs:{"data-v-0de54094":"","aria-hidden":"true"}})]),t._v(" "),e("div",{staticClass:"project-map-panel-card-container"},[1==t.displayProjectImage?e("div",{staticClass:"project-map-panel-media"},[e("div",{staticClass:"project-map-media",style:{backgroundImage:"url("+t.projectImage(t.activeProjects[t.activeProjectIndex])+")"}})]):t._e(),t._v(" "),e("div",{staticClass:"project-map-card-body"},[e("h4",{staticClass:"project-map-card-title ljs"},[t._v(t._s(t.activeProjects[t.activeProjectIndex].name))]),t._v(" "),1==t.displayProjectStatus?e("p",{staticClass:"project-map-tag project-map-status",class:t.activeProjects[t.activeProjectIndex].attributes.project_status[0]},[t._v(t._s(t.activeProjects[t.activeProjectIndex].attributes.project_status[0]))]):t._e(),t._v(" "),1==t.displayUp
3datedDate?e("p",{staticClass:"project-map-byline text-muted small"},[t._v(t._s(t.$t("updated"))+" "),e("time",{staticClass:"datetime",attrs:{datetime:t._f("formatDateNum")(t.activeProjects[t.activeProjectIndex].last_updated)}},[t._v(t._s(t._f("formatDateStr")(t.activeProjects[t.activeProjectIndex].last_updated)))])]):t._e(),t._v(" "),e("p",{staticClass:"project-map-card-description ljs"},[t._v(t._s(t.activeProjects[t.activeProjectIndex].description))]),t._v(" "),""!==t.activeProjects[t.activeProjectIndex].attributes.project_location[0]&&1==t.displayLocationTags?e("div",{staticClass:"tag-container"},[e("ul",{staticClass:"tag-list"},t._l(t.activeProjects[t.activeProjectIndex].attributes.project_location,(function(a){return e("li",{staticClass:"project-map-tag location-tag small ljs",attrs:{"data-location":a}},[e("span",[t._v(t._s(a))])])})),0)]):t._e()])]),t._v(" "),e("div",{staticClass:"project-map-card-footer"},[e("a",{staticClass:"visit-project small",attrs:{href:t.activeProjects[t.activeProjectIndex].url,"aria-label":t.$t("visitProject",{name:t.activeProjects[t.activeProjectIndex].name})}},[t._v(t._s(t.$t("visitProjectCta")))]),t._v(" "),t.activeProjects.length>1?[e("button",{staticClass:"btn btn-link prev",attrs:{"aria-label":t.$t("previous")},on:{click:function(e){return t.prevProject(t.activeProjectIndex)}}},[e("i",{staticClass:"hive-arrow-button-left"})]),t._v(" "),e("button",{staticClass:"btn btn-link next",attrs:{"aria-label":t.$t("next")},on:{click:function(e){return t.nextProject(t.activeProjectIndex)}}},[e("i",{staticClass:"hive-arrow-button-right"})])]:t._e()],2)]):t._e()}),[],!1,null,null,null).exports}}]);
4//# debugId=ae05ab22-0729-5875-8ad0-7a8c7949898a

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.