PageSourceSearch

https://kutno.net.pl/_nuxt/DzS32ht_.js

js kutno.net.pl collected 2026-09-25 04:23:16 UTC 4,274 bytes, 1 lines download raw bytes

1import{_ as s,a as e,C as a}from"./C9o5zXj1.js";import{d as t,a as i,j as l,b as r,e as o,c,i as n,k as d}from"./Cm2J8wJT.js";import{u as p}from"./vNA1_wLl.js";import{ah as u,L as g,ar as m,M as f,$ as h,Q as y,O as w,V as _,U as k,J as v}from"./Cw52Jb_b.js";import"./P0-QQU1d.js";import"./BXJDBrdV.js";import"./oPzPbeIq.js";import"./Dv5-W7ly.js";const C=t({name:"ClassifiedsSearch",setup:()=>({store:i()}),components:{AdPlacement:l,ClassifiedsTop:s,ClassifiedsList:e,ClassifiedsFullTile:a},asyncData:async()=>{let s,e;const a=i(),t=d(),l=p(),u=r().params.uid,g={};for(const[i,r]of l.searchParams)g[i]=r;const m={query:g.q,category:u};let f=[];try{const t=([s,e]=o((()=>c("classifieds-categories",(()=>$fetch("/api/classifieds/categories"))))),s=await s,e(),s).data.value;t&&(f=t.categories.sort(((s,e)=>s.placement-e.placement)),a.setClassifiedsCategories(f))}catch(v){}m.categories=[{title:"Wszystkie kategorie",uid:"wszystkie"},...f];const h=f.find((s=>s.uid===u));let y=[];"wszystkie"!==u&&h&&y.push(`category_id=${h.id}`),g.page&&y.push(`page=${g.page}`),g.q&&y.push(`q=${encodeURIComponent(g.q)}`);const{title:w,shorttitle:_}=a.settings,k=a&&a.metaDefaults?a.metaDefaults:{meta:[],link:[]};n({...k,title:`Znajdź ogłoszenie - ${_||w}`,meta:[...k.meta,{name:"robots",content:"noindex, nofollow, max-image-preview:large"}],link:[...k.link]});try{const a=`${t.globalApi}/classifieds/${t.public.portalId}?${y.join("&")}`,i=([s,e]=o((()=>$fetch(a))),s=await s,e(),s);if(i&&i.data){const s=i.data;m.classifieds={pending:!1,error:{status:!1,messageClient:"",messageTech:""},list:s},m.helpers={pending:!1,currentPage:1,perPage:9,totalRows:i.maxRows,pageData:s,isMobile:!1}}}catch(v){}return m},data:()=>({type:"search",categorySlug:null,helpers:{pending:!1,currentPage:1,perPage:20,totalRows:0,pageData:null,isMobile:!1},category:null,query:null,searchPhrase:null,classified:{data:null},classifieds:{pending:!0,error:{status:!1,messageClient:"",messageTech:""},list:[]}}),computed:{settings(){return this.store.settings},ads(){return this.store.ads},placements(){return this.store&&this.store.placements}},methods:{getSearchWords(){return this.searchPhrase.split("-").join(" ")},getShareUrl:()=>window&&window.location?window.location.href:"",isElementInQuery:s=>!0,getCategoryNameForValue(s){for(let e of this.categories)if(e.uid===s)return e.title;return""}},mounted(){window&&(this.helpers.isMobile=window.innerWidth<1290)}},"$o0SnhdWMCh"),j={class:"classifieds__container"},z={class:"classifieds__wrapper classifieds__wrapper--top"},$={class:"container-custom container-custom--top classifieds__topContainer"},q={class:"classifieds__wrapper"},b={class:"container-custom"},P={key:1,class:"classifieds__search-title"},x={key:0},R={key:1},S={class:"classifieds__search-count"},D={key:3,class:"col-custom-12 text-center"};const M=u(C,[["render",function(a,t,i,r,o,c){const n=s,d=l,p=e;return v(),g("div",j,[t[2]||(t[2]=m('<div class="classifieds__wrapper"><div class="container-custom mt-4"><div class="classifieds__breadcrumb"><ul><li><a href="/">Portal</a></li><li><a href="/ogloszenia">Ogłoszenia</a></li><li><a href="/ogloszenia/szukaj">Szukaj</a></li></ul></div></div></div>',1)),f("div",z,[f("div",$,[h(n,{categories:a.categories,defaultCategory:a.category,defaultQuery:a.query},null,8,["categories","defaultCategory","defaultQuery"])])]),f("div",q,[f("div",b,[f("div",{class:y(`classified classified-${a.type}`)},[a.settings.programmatic_classifieds?(v(),w(d,{key:0,placement:a.placements.classifieds.slot_top_1},null,8,["placement"])):_("",!0),a.query||a.category?(v(),g("h3",P,[t[0]||(t[0]=f("span",null,"Znalezi
1one ogłoszenia ",-1)),a.query?(v(),g("span",x,' dla frazy "'+k(a.query)+'" ',1)):_("",!0),a.category&&"wszystkie"!==a.category?(v(),g("span",R,' w kategorii "'+k(a.getCategoryNameForValue(a.category))+'"',1)):_("",!0),f("span",S,k(a.helpers.totalRows??"0"),1)])):_("",!0),a.classifieds&&a.classifieds.list&&a.classifieds.list.length?(v(),w(p,{key:2,items:a.classifieds&&a.classifieds.list?a.classifieds.list:[],maxRows:a.helpers.totalRows,type:"search"},null,8,["items","maxRows"])):(v(),g("div",D,t[1]||(t[1]=[f("div",{class:"alert alert-primary text-center",role:"alert"}," Brak wyników wyszukiwania. ",-1)])))],2)])])])}]]);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.