PageSourceSearch

https://www.penny.at/_nuxt/DmrgL1hC.js

js penny.at collected 2026-09-24 09:47:44 UTC 4,292 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C1ak6q2p.js","./Cd1Zd1U9.js","./5TQJ3fzz.js","./BpTVF4It.js","./BK53tKGP.js","./C9Z41gEb.js","./entry.DHWjIExn.css","./96wVROSt.js","./D6j_4Kib.js","./BKRS8239.js","./BNIV_b_X.js","./Ddqj9abs.js","./lazy-load-image.Bj26ZR5O.css","./banner.BpX2jfwK.css","./BpuCMN6g.js","./DG4YWzmg.js","./Cud6-E__.js","./DrEatFVW.js","./nMIUYhGG.js","./VSkeletonLoader._6lkchy0.css","./CM2-cwu-.js","./CDHw8HG9.js","./DsQPStvC.js","./CZGg5nIu.js","./DL7JO2kz.js","./cms-components-content.BiXbMhI8.css","./CSWy6TMZ.js","./Ch76DfIG.js","./results-content.DEpcJ-W-.css"])))=>i.map(i=>d[i]);
2import{as as j,cQ as q,cV as M,df as k,bL as Q,ak as i,ct as e,ai as p,aj as l,ah as z,bq as _,g as R,an as G,c4 as J,cn as A,c9 as T,ar as L,c3 as $,ae as x,cv as P,V,bR as o,dg as K}from"./C9Z41gEb.js";import{_ as X}from"./C42QYgOd.js";import Y from"./C_guJTsS.js";import{u as Z}from"./Bax1mx7B.js";import{u as B}from"./DmeudmvA.js";import"./BK53tKGP.js";import"./CqbYTHn5.js";import"./D13RsIoM.js";import"./BC0wvUV-.js";import"./B4lM67F-.js";import"./DWbcKD40.js";import"./OU7tP38v.js";import"./CsmPXbsj.js";import"./DsQPStvC.js";import"./CZGg5nIu.js";import"./DL7JO2kz.js";import"./DuM5zR8n.js";import"./C30rFPta.js";const I={class:"ws-search-term"},ee={class:"container"},ve=j({__name:"search-term",async setup(te){let n,u;const E=L(()=>V(()=>import("./C1ak6q2p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)),v=L(()=>V(()=>import("./BpuCMN6g.js"),__vite__mapDeps([14,15,16,17,5,6,18,19,20,21,22,23,24,25,26,27,4,28]),import.meta.url));Z(".ws-search-term");const{$componentConfigs:{searchConfig:m},$coreContent:{usePageStore:F},$ofetch:w,$search:C,$t:d,$webView:U}=q();F().setPageFromConfig(m);const D=$(!1),s=$([]),b=M(),h=m.pageSearchTypes||[];Array.isArray(h)&&h.length&&(s.value=h.filter(t=>C.availableTypes[t.type.toLowerCase()]&&t.type.toLowerCase()!=="categories").sort((t,a)=>t.order-a.order).map(t=>{const a=t.type.toLowerCase();return{component:{...t,type:a},paramsFn:C.availableTypes[a].paramsFn,type:a,title:d(`search.parts.${a}.headline`),urlSlug:a}}));const r=x(()=>typeof b.params.term=="string"?b.params.term:""),{data:y}=([n,u]=k(()=>P(`search-banner-${r.value}`,async()=>w.$get(`/api/content/search/${encodeURIComponent(r.value)}/banner`).catch(()=>{}),{watch:[r]})),n=await n,u(),n),{data:W,refresh:S}=([n,u]=k(async()=>P(`search-term-${r.value}`,async()=>{const t={};return await Promise.all(s.value.map(async a=>{const c=await a.paramsFn(),f=["products","categories","brands"].includes(a.urlSlug)?`product-discovery/${a.urlSlug}`:a.urlSlug;return w.$get(`/api/${f}/search/${encodeURIComponent(r.value)}`,{params:c}).catch(()=>({total:0})).then(O=>{t[a.urlSlug]=O.total})})),t},{watch:[r]})),n=await n,u(),n),N=x(()=>s.value.map(t=>({title:t.title,urlSlug:t.urlSlug,count:W.value?.[t.urlSlug]??0}))),g=$(null);Q(()=>{D.value||g.value?.focus()});const H=t=>`tab-item-${t}`;return(t,a)=>(o(),i("div",I,[e(U).isEnabled?l("",!0):(o(),p(X,{key:0,class:"container mb-sm-3",breadcrumbs:e(m).breadcrumbs},null,8,["breadcrumbs"])),z("div",ee,[e(y)&&Object.keys(e(y)).length?(o(),p(e(E),_({key:0,class:"mb-10"},e(y)),null,16)):l("",!0),Array.isArray(e(s))?(o(),i(R,{key:1},[e(s).length>1?(o(),p(Y,{key:0,class:"mt-4",items:e(N),"fill-width":!1},G({_:2},[J(e(s),(c,f)=>({name:H(f),fn:K(()=>[e(r)&&c.type!=="products"?(o(),i("h1",{key:0,ref_key:"searchTermHeadlineRef",ref:g,tabindex:"-1",class:"h2","data-test":"ws-search-term"},A(e(d)("search.results.headline",[e(r)])),513)):l("",!0),(o(),p(T(c.type==="content"?e(v):t.$extensions.search.results.page[`WsResults${e(B)(c.type)}`]),_({"data-test":`search-${c.type}`},c.component,{onUpdate:e(S)}),null,16,["data-test","onUpdate"]))])}))]),1032,["items"])):e(s).length===1?(o(),i(R,{key:1},[e(r)&&e(s)[0].type!=="products"?(o(),i("h1",{key:0,ref_key:"searchTermHeadlineRef",ref:g,tabindex:"-1",class:"h2","data-test":"ws-search-term"},A(e(d)("search.results.headline",[e(r)])),513)):l("",!0),(o(),p(T(e(s)[0].type==="content"?e(v):t.$extensions.search.results.page[`WsResults${e(B)(e(s)[0].type)}`]),_({"data-test":`search-${e(s)[0].type}`},e(s)[0].component,{onUpdate:e(S)}),null,16,["data-test","onUpdate"]))],64)):l("",!0)],64)):l("",!0)])]))}});
2export{ve 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.