PageSourceSearch

https://relab.co.nz/assets/BlogApp-DjwPbq1s.js

js relab.co.nz collected 2026-10-06 04:15:26 UTC 10,914 bytes, 1 lines download raw bytes

1import{N as t,B as s,S as a}from"./Newsletter-DexltBpf.js";import{n as e,u as i,z as o,b as l,c as r,I as c,J as d}from"./vendor-vue-8SjYD1x1.js";import{B as n}from"./BlogCategory-DHi1w_ZM.js";import"./vendor-utils-B2oefgZ_.js";import"./vendor-CQUfwsML.js";import"./vendor-charts-CbwU_qbh.js";import"./vendor-maps-Ca8kSFaK.js";const m=e({name:"blogapp",components:{SearchBox:a,BlogCards:s,BlogFeaturedCards:e({name:"BlogFeaturedCards",data:()=>({isLoading:!1,newsFeed:null,mobileWidth:window.innerWidth,mobileHeight:window.innerHeight}),methods:{LoadRecentFeed(t){let s=`${window.APIURL}news/feed?category=${t}&isTag=true`;s+="&take=3",this.axios.get(s,{headers:{weblang:window.locale}}).then(t=>{this.newsFeed=t.data.NewsFeeds}).catch(()=>{})}},mounted(){this.LoadRecentFeed("featured")}},function(){var t=this,s=t._self._c;return s("div",{staticClass:"blog-section"},[t.mobileWidth<875?s("div",[s("div",{staticClass:"p-3 pt-0"},[null!=t.newsFeed?s("div",[s("loading",{attrs:{active:t.isLoading,"is-full-page":!1},on:{"update:active":function(s){t.isLoading=s}}}),s("h3",{staticClass:"h1 Recife-italic mb-0"},[t._v("Featured Articles")]),t._l(t.newsFeed,function(a){return s("div",{key:a.Id,staticClass:"mb-5 mt-10"},[s("div",{staticClass:"container p-0"},[s("div",{staticClass:"blog-intro"},[s(i,{staticClass:"card",attrs:{flat:""}},[s(o,{staticClass:"p-0"},[s(l,{attrs:{align:"center",justify:"center"}},[s(r,{staticClass:"pt-0",attrs:{cols:"12"}},[s("div",{staticClass:"post p-0"},[s("div",[s("div",{directives:[{name:"lazy-container",rawName:"v-lazy-container",value:{selector:"img"},expression:"{ selector: 'img' }"}]},[s("router-link",{attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("img",{staticClass:"blog-image img-fluid w-150",attrs:{"data-src":a.PostThumb,alt:""}})])],1)]),s("div",{staticClass:"px-5"},[null!=a.CatDescription&&""!=a.CatDescription?s("p",{staticClass:"cat-words text-center fw-500 mb-0 px-3"},[t._v(" "+t._s(a.CatDescription)+" ")]):s("div",{staticClass:"cat"},[s("p",{staticClass:"cat-words text-center fw-500 mb-0 px-3"},[t._v(" "+t._s(a.Category)+" ")])]),s("div",{},[s("p",{staticClass:"pt-5"},[s("router-link",{staticClass:"text-dark title",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("p",{staticClass:"Beatrice-Medium"},[t._v(" "+t._s(a.Post_Title)+" ")])])],1),s("p",{staticClass:"card-text mb-5"},[s("router-link",{staticClass:"desc text-dark Roboto text-muted",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[t._v(" "+t._s(a.Post_Content)+" ")])],1)])])])])],1)],1)],1)],1)])])})],2):t._e()])]):s("div",[s("div",{staticClass:"pt-5 mt-5 d-flex justify-content-center"},[null!=t.newsFeed?s("div",[s("loading",{attrs:{active:t.isLoading,"is-full-page":!1},on:{"update:active":function(s){t.isLoading=s}}}),t._m(0),s("div",{staticClass:"container-fluid px-5 m-0"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"row"},t._l(t.newsFeed,function(a){return s("div",{key:a.Id,staticClass:"mt-10 col-4"},[s(i,{staticClass:"card",attrs:{flat:""}},[s(o,{staticClass:"p-0"},[s(l,[s(r,{staticClass:"pt-0",attrs:{cols:"12"}},[s("div",{directives:[{name:"lazy-container",rawName:"v-lazy-container",value:{selector:"img"},expression:"{ selector: 'img' }"}]},[s("router-link",{attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("img",{staticClass:"blog-image img-fluid w-150",attrs:{"data-src":a.PostThumb,alt:""}})])],1),s("div",{staticClass:"px-3",staticStyle:{height:"290px"}},[null!=a.CatDescription&&""!=a.CatDescription?s("div",{staticClass:"mb-0"},[s("p",{staticClass:"cat-words ml-0 text-center fw-500 px-3 py-1 mb-0"},[t._v(" "+t._s(a.CatDescription)+" ")])]):s("div",{staticClass:"cat"},[s("p",{staticClass:"cat-words ml-0 text-center fw-500 px-3 py-1 mb-0"},[t._v(" "+t._s(a.Category)+" ")])]),s("div",{staticClass:"px-3"},[s("p",{staticClass:"pt-5"},[s("router-link",{staticClass:"text-dark title",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("p",{staticClass:"Beatrice-Medium"},[t._v(" "+t._s(a.Post_Title)+" ")])])],1),s("p",{staticClass:"card-text"},[s("router-link",{staticClass:"desc text-dark Roboto text-muted",attrs:{to:{name:"post",params:{id:a.Post_Name}}}}
1,[t._v(" "+t._s(a.Post_Content)+" ")])],1)])])])],1)],1)],1)],1)}),0)])])])],1):t._e()])])])},[function(){var t=this._self._c;return t("div",[t("h3",{staticClass:"h1 Recife-italic mb-0"},[this._v("Featured Articles")])])}],!1,null,"a810fe5b").exports,BlogCategory:n,Newsletter:t,BlogRecents:e({name:"BlogRecents",components:{},data:()=>({isLoading:!1,newsFeed:null,mobileWidth:window.innerWidth,mobileHeight:window.innerHeight,model:0}),methods:{LoadRecentFeed(t){let s=window.APIURL+"news/feed?category="+t;s+="&take=3",this.axios.get(s,{headers:{weblang:window.locale}}).then(t=>{this.newsFeed=t.data.NewsFeeds}).catch(()=>{})}},mounted(){this.LoadRecentFeed("")}},function(){var t=this,s=t._self._c;return s("div",{staticClass:"blog-section"},[t.mobileWidth<875?s("div",[s("div",{staticClass:"recent blog-section px-3"},[null!=t.newsFeed?s("div",{staticClass:"mb-5"},[s("loading",{attrs:{active:t.isLoading,"is-full-page":!0},on:{"update:active":function(s){t.isLoading=s}}}),s("div",{staticClass:"carousel-app backdrop-blur"},[s(c,{staticClass:"c-item py-0",attrs:{"hide-delimiter-background":"",height:"auto","show-arrows":!1,"delimiter-icon":"fas fa-minus"},model:{value:t.model,callback:function(s){t.model=s},expression:"model"}},t._l(t.newsFeed,function(a){return s(d,{key:a.Id,staticClass:"mb-5 py-0",attrs:{height:"auto"}},[s("div",{staticClass:"container p-0 card"},[s("div",{staticClass:"blog-intro"},[s(l,{attrs:{align:"center",justify:"center"}},[s(r,{staticClass:"pt-0",attrs:{cols:"12"}},[s("div",{staticClass:"post p-0"},[s("div",{},[s("div",{directives:[{name:"lazy-container",rawName:"v-lazy-container",value:{selector:"img"},expression:"{ selector: 'img' }"}]},[s("router-link",{staticClass:"text-dark",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("img",{staticClass:"blog-image img-fluid",attrs:{"data-src":a.PostThumb,alt:""}})])],1)]),s("div",{staticClass:"px-5 mb-0"},[null!=a.CatDescription&&""!=a.CatDescription?s("p",{},[t._v(" "+t._s(a.CatDescription)+" ")]):s("div",{staticClass:"cat"},[s("p",{staticClass:"cat-words ml-0 pl-4 py-1 text-center fw-500"},[t._v(" "+t._s(a.Category)+" ")])]),s("p",{},[s("router-link",{staticClass:"text-dark title",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("p",{staticClass:"Beatrice-Medium"},[t._v(" "+t._s(a.Post_Title)+" ")])])],1),s("p",{staticClass:"card-text mb-0"},[s("router-link",{staticClass:"desc text-dark Roboto text-muted",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[t._v(" "+t._s(a.Post_Content)+" ")])],1)])])])],1)],1)])])}),1)],1)],1):t._e()])]):s("div",[s("div",{staticClass:"recent blog-section px-3"},[null!=t.newsFeed?s("div",{staticClass:"mb-5"},[s("loading",{attrs:{active:t.isLoading,"is-full-page":!0},on:{"update:active":function(s){t.isLoading=s}}}),s("div",{staticClass:"carousel-app backdrop-blur mx-3"},[s(c,{staticClass:"c-item py-0",attrs:{"hide-delimiter-background":"",height:"auto","show-arrows-on-hover":"","delimiter-icon":""},model:{value:t.model,callback:function(s){t.model=s},expression:"model"}},t._l(t.newsFeed,function(a){return s(d,{key:a.Id,staticClass:"mb-5 py-0",attrs:{height:"auto"}},[s("div",{staticClass:"container p-0 col-12 card"},[s("div",{staticClass:"blog-intro container-fluid p-0"},[s("div",{staticClass:"post p-0 row"},[s("div",{staticClass:"col-7 pl-0"},[s("div",{directives:[{name:"lazy-container",rawName:"v-lazy-container",value:{selector:"img"},expression:"{ selector: 'img' }"}],staticClass:"col-12 py-0"},[s("router-link",{staticClass:"text-dark",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("img",{staticClass:"blog-image col-12 p-0",attrs:{"data-src":a.PostThumb,alt:""}})])],1)]),s("div",{staticClass:"mb-0 px-0 col-5"},[s("div",{staticClass:"words col-10 pt-5 px-0"},[null!=a.CatDescription&&""!=a.CatDescription?s("p",{},[t._v(" "+t._s(a.CatDescription)+" ")]):s("div",{staticClass:"cat"},[s("p",{staticClass:"cat-words ml-0 pl-4 py-1 text-center"},[t._v(" "+t._s(a.Category)+" ")])]),s("p",{staticClass:"pt-5"},[s("router-link",{staticClass:"text-dark title",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[s("h3",{staticClass:"Beatrice-Medium"},[t._v(" "+t._s(a.Post_Title)+" ")])])],1),s("p",{staticClass:"card-text mb-0"},[s("router-link",{staticClass:"desc text-dark Roboto text-muted",attrs:{to:{name:"post",params:{id:a.Post_Name}}}},[t._v(" "+t._s(a.Post_Content)+" ")])],1)])])])])])])}),1)],1)],1):t._e()])])])},[],!1,null,"dbe3af58").exports,BlogTitle:e({name:"BlogTitle"},function(){var t=this,s=t._self._c;return s("div",{staticClass:"titledesc pt-5"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-11 pl-3"},[s("h1",[s("span",{staticClass:"Recife-italic title-dt"},[t._v(t._s(t.$t("blog.latest")))]),s("u",{staticClass:"Beatrice-Medium title-dt"},[t._v(t._s(t.$t("blog.relab")))]),s("b",[t._v(t._s(t.$t("blog.degree")))])]),s("p",{staticClass:"h4 desc Roboto font-weight-normal"},[t._v(" "+t._s(t.$t("blog.discover"))+" ")])])])])},[],!1,null,"8bb43c5a").exports},data:()=>({blogDesc:"",searchInput:"",query:""}),methods:{handleSearch(t){this.searchInput=t,this.$router.replace({query:{id:t}})}},watch:{$route(t){"blogcategory"==t.name?1==this.$refs.blogCards.currentPage&&this.$refs.blogCards.LoadFeed(this.$route.params.id):"blog"==t.name?1==this.$refs.blogCards.currentPage&&this.$refs.blogCards.LoadFeed(""):"blogsearch"==t.name&&1==this.$refs.blogCards.currentPage&&this.$refs.blogCards.SearchBlog(this.$route.params.id)}},mounted(){"blogsearch"==this.$route.name?this.$refs.blogCards.SearchBlog(this.$route.params.id):"blog"!=this.$route.name&&"blogcategory"!=this.$route.name&&"blogtag"!=this.$route.name||this.$refs.blogCards.LoadFeed("blogcategory"==this.$route.name?this.$route.params.id:""),document.addEventListener("lang-change",()=>{location.reload()})}},function(){var t=this._self._c;return t("div",{staticStyle:{"background-color":"#f4f2f0"}},[t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-12 top-items my-5 pt-5"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-8"},[t("div",{staticClass:"d-flex flex-row"},[t("BlogTitle")],1)]),t("div",{staticClass:"col-md-4 mb-search-cntnr"},[t("div",{staticClass:"d-flex flex-row-reverse search-mb pt-5 mt-5"},[t("SearchBox",{on:{submitQuery:this.handleSearch}}
1)],1)])])]),t("div",{staticClass:"col-12 recents"},[t("BlogRecents")],1),t("div",{staticClass:"col-12 features"},[t("BlogFeaturedCards")],1),t("div",{staticClass:"col-sm-10 cat-dt"},[t("BlogCategory")],1),t("div",{staticClass:"col-12 pt-0 pb-5 posts feed height-load"},[t("BlogCards",{ref:"blogCards"})],1),t("div",{staticClass:"col-12"}),t("div",{staticClass:"col-12 ml-auto pt-6 order-sm-0 newsletter"},[t("Newsletter")],1)])])])},[],!1,null,"ad78b184").exports;export{m 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.