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]="a1f0c1ec-2f95-5d4b-8d66-77f8626c5142")}catch(e){}}(); 3(self.webpackChunkthe_hive_legacy=self.webpackChunkthe_hive_legacy||[]).push([[781],{9781:function(t,a,e){e.r(a),e.d(a,{default:function(){return i}});var s={name:"ProjectList",props:["activeProjects","displayLocationTags","displayProjectStatus","displayProjectImage","displayUpdatedDate","loadingData","enableProgressiveLoading","projectDisplay"],data:function(){return{allProjectCount:this.activeProjects.length,loadingProjects:!1}},filters:{formatDateStr:function(t){return moment(t).format("LL")},formatDateNum:function(t){return moment(t).format("L")}},created:function(){this.allProjectCount=this.activeProjects.length,window.addEventListener("resize",this.resizeActions),this.resizeActions()},destroyed:function(){window.removeEventListener("resize",this.resizeActions)},mounted:function(){var t=this;this.$nextTick((function(){t.resizeActions()}))},updated:function(){var t=this;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 a=$(t).find(".project-map-card-body").width(),e=a-35;if($(t).find(".tag-list").width()>a){var s=[],i=!1,o=0;$(t).find(".location-tag").each((function(){var t=this;o+($(t).width()+16)<e?o+=$(t).width()+16:(i||(i=t),s.push($(t).data("location")),$(t).addClass("hidden"))}));var c=s.join(", "),r=$("<li></li>");r.html(" ... "),r.addClass("project-map-tag location-tag small location-ellipsis"),r.attr("data-toggle","tooltip"),r.attr("data-placement","top"),r.attr("title",c),$(r).tooltip(),0==$(t).find(".tag-list").find(".location-ellipsis").length&&$(t).find(".tag-list").append(r)}}))},loadMoreProjects(){this.loadingProjects=!0,this.$emit("loadMoreProjects"),this.loadingProjects=!1},resizeActions:function(){this.checkTagLength()},projectImage:function(t){return t.project_thumbnail?t.project_thumbnail:"/application/themes/the_hive/img/default.jpg"}},watch:{activeProjects:function(){this.allProjectCount=this.activeProjects.length}},computed:{projectsLoaded(){return 1==this.enableProgressiveLoading?this.activeProjects.slice(0,this.projectDisplay):this.activeProjects}}},i=(0,e(14486).A)(s,(function(){var t=this,a=t._self._c;return!t.loadingData&&t.projectsLoaded?a("div",{staticClass:"project-map-list"},[a("div",{staticClass:"project-map-cards"},t._l(t.projectsLoaded,(function(e){return a("article",{key:e.id,staticClass:"project-map-card grid-sm-1-3",attrs:{id:"project-card-"+e.id}},[a("a",{attrs:{href:e.url}},[1==t.displayProjectImage?a("div",{staticClass:"project-map-media",style:{backgroundImage:"url("+t.projectImage(e)+")"}}):t._e(),t._v(" "),a("div",{staticClass:"project-map-card-body"},[a("h4",{staticClass:"project-map-card-title ljs"},[t._v(t._s(e.name))]),t._v(" "),1==t.displayProjectStatus?a("p",{staticClass:"project-map-tag project-map-status",class:e.attributes.project_status[0]},[t._v(t._s(e.attributes.project_status[0]))]):t._e(),t._v(" "),1==t.displayUpdatedDate?a("p",{staticClass:"project-map-byline text-muted small"},[t._v(t._s(t.$t("updated"))+" "),a("time",{staticClass:"datetime",attrs:{datetime:t._f("formatDateNum")(e.last_updated)}},[t._v(t._s(t._f("formatDateStr")(e.last_updated)))])]):t._e(),t._v(" "),a("p",{staticClass:"project-map-card-description ljs"},[t._v(t._s(e.description))]),t._v(" "),""!==e.attributes.project_location[0]&&1==t.displayLocationTags?a("div",{staticClass:"tag-container"},[a("ul",{staticClass:"tag-list"},t._l(e.attributes.project_location,(function(e){return a("li",{staticClass:"project-map-tag location-tag small ljs",attrs:{"data-location":e}},[a("span",[t._v(t._s(e))])])})),0)]):t._e()])])])})),0),t._v(" "),1==t.enableProgressiveLoading?[t.projectDisplay<t.allProjectCount?a("div",{staticClass:"col-sm-12"},[a("div",{staticClass:"row"},[a("div",{staticClass:"news-show-more col-sm-6 col-sm-offset-3"}
3,[a("button",{staticClass:"btn btn-block btn-primary",class:{"is-loading":t.loadingProjects},attrs:{"aria-label":t.$t("showMore")},on:{click:function(a){return t.loadMoreProjects()}}},[a("span",[t._v(t._s(t.$t("showMore")))])])])])]):t._e()]:t._e()],2):t._e()}),[],!1,null,null,null).exports}}]); 4//# debugId=a1f0c1ec-2f95-5d4b-8d66-77f8626c5142
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.