PageSourceSearch

https://www.oliveiratrust.com.br/_nuxt/BIKGtSye.js

js oliveiratrust.com.br collected 2026-10-05 04:10:53 UTC 1,296 bytes, 1 lines download raw bytes

1import{R as o}from"./Fxu6FeGw.js";import{c as r}from"./Co2EL3KR.js";const l=o("blogStore",{state(){return{posts:[],queriedPosts:[],loading:!0,loadingMore:!1,page:1,filter:"",savedPostsId:[],isPaginationFinished:!1,period:"",dateRange:["",""]}},getters:{lastFourPosts:s=>s.posts.slice(0,4),filteredPosts:s=>!s.filter&&!s.period&&!s.dateRange?s.posts:s.queriedPosts,savedPosts:s=>s.savedPostsId.length?s.posts.filter(({id:t})=>s.savedPostsId.includes(String(t))):[]},actions:{async fetchPosts({fetchMore:s=!1}){try{if(this.posts.length&&!s)return;this.loading=!s,s&&(this.loadingMore=!0,this.page++);const{data:t,maxPages:e}=await $fetch("/api/blog",{query:{page:this.page,per_page:12}});this.page>=e&&(this.isPaginationFinished=!0),this.posts=s?this.posts.concat(t):t,this.queriedPosts=this.posts}catch{this.posts=[],this.page=1}finally{this.loading=!1,this.loadingMore=!1}},async fetchQueriedPosts(){const[s,t]=this.dateRange,e=Object.fromEntries(Object.entries({per_page:30,s:this.filter,period:this.period,start_date:s,end_date:t}).filter(([i,a])=>!r.isEmpty(a)));try{this.loading=!0;const{data:i}=await $fetch("/api/blog",{query:e});this.queriedPosts=i}catch{this.queriedPosts=[]}finally{this.loading=!1}},clearFilter(){this.filter="",this.period="",this.dateRange=["",""]}}});export{l as u};

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.