PageSourceSearch

https://www.onwish.ai/_nuxt/BhF0t3_p.js

js onwish.ai collected 2026-10-05 12:32:05 UTC 1,791 bytes, 1 lines download raw bytes

1import{_ as R}from"./BOemG_jx.js";import{f as V,u as k,W as C,R as I,l as r,r as L,U as S,m as o,o as U,c as x,a as h,b as v,V as q,G as B}from"./DYiYvntX.js";import{a as N}from"./DxHtBhvS.js";import{u as A}from"./voTzZ2ms.js";const D={key:0},$={class:"blog-list-component"},z={class:"blog-pagination-list"},F=V({__name:"List",async setup(E){let n,g;const u=k(),f=C(),{data:t}=([n,g]=I(async()=>N("insightsList",async()=>{const e=parseInt(u.query.page,10)||1,a=24;let{list:p,total:l}=await A({pageSize:a,page:e,type:"insights",sort:"-content_published_date"});const m=p.map(i=>{if(!i.cover)return i;const s=new URL(i.cover);s.searchParams.set("w","600"),s.searchParams.set("q","60");const _=new URL(s.toString());_.searchParams.set("fm","webp");const d=new URL(s.toString());return d.searchParams.set("fm","avif"),{...i,avif:d.toString(),webp:_.toString(),cover:s.toString()}});return{currentPage:e,perPage:a,totalItems:l,pagination_list:m}},{watch:[()=>u.query.page]})),n=await n,g(),n),w=r(()=>{var e;return((e=t.value)==null?void 0:e.perPage)??2}),P=r(()=>{var e;return((e=t.value)==null?void 0:e.totalItems)??0}),y=r(()=>{var e;return((e=t.value)==null?void 0:e.pagination_list)??[]}),c=L(r(()=>{var e;return((e=t.value)==null?void 0:e.currentPage)??1}));function b(e){f.push(`/insights?page=${e}`),window.scrollTo({top:0,behavior:"smooth"})}return(e,a)=>{const p=R,l=S("vue-awesome-paginate");return o(t)?(U(),x("div",D,[h("div",$,[v(p,{pagination_list:o(y)},null,8,["pagination_list"])]),h("div",z,[v(l,{"total-items":o(P),"items-per-page":o(w),"max-pages-shown":5,modelValue:o(c),"onUpdate:modelValue":a[0]||(a[0]=m=>q(c)?c.value=m:null),type:"link",onClick:b,"link-url":"/insights?page=[page]"},null,8,["total-items","items-per-page","modelValue"])])])):B("",!0)}}});export{F as _};

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.