PageSourceSearch

https://www.allnatura.de/_nuxt/BuwMg81I.js

js allnatura.de collected 2026-09-24 22:05:34 UTC 5,416 bytes, 1 lines download raw bytes

1import{u as k,i as $,bl as R,E as C,au as P,J as V,bk as F}from"./CvDJfsLU.js";import{n as D,k as y,V as t,W as r,a1 as i,a8 as n,Y as O,aa as u,a7 as c,L as a,C as d,N as B,a0 as S,$ as N,u as A,a6 as G,am as z}from"./aGX58C66.js";import{_ as I}from"./CCftVgFY.js";import M from"./DfsV4eH0.js";import E from"./Dvi1z7lT.js";import{u as j}from"./BfW8_sRw.js";const H={class:"flex flex-col gap-2"},T={class:"clip-full flex flex-col gap-3 bg-dark-grey pb-4 shadow-[0_0_0_100vmax_#E3DEDA]"},J={class:"flex flex-col lg:flex-row flex-wrap items-baseline gap-4 mr-auto mt-4 lg:mt-1"},W={class:"flex flex-row items-top gap-2"},Y={class:"font-heading text-4xl font-semibold leading-[115%] lg:leading-[100%] md:text-5xl text-black"},q={class:"flex gap-2 items-center py-3 px-5 bg-white rounded-md w-fit"},K={class:"flex flex-col gap-1 text-base"},Q={key:0,class:"flex flex-col gap-6"},U=D({name:"ReviewsOverlay",__name:"ReviewsOverlay",props:{preloadedReviews:{},preloadedCursor:{},options:{},fetchOptions:{},rating:{},count:{}},setup(e){const{t:L}=k(),l=e,{fetchReviews:w}=j(),s=y([]),m=y(l.preloadedCursor);s.value=[...l.preloadedReviews];const h=async()=>{l.count&&await w({...l.fetchOptions,count:l.count-s.value.length>=5?5:l.count-s.value.length,after:m.value},{immediate:!0}).then(({data:f})=>{const o=f.value?.items;o?.length&&(m.value=o[o.length-1].id,s.value.push(...o))})};return(f,o)=>{const p=$,_=R,b=C,g=I,v=M;return t(),r(v,{id:"reviews-overlay",type:"overlay","header-color":"#E3DEDA"},{default:i(()=>[n("div",H,[n("div",T,[e.options?.headline?.length?(t(),r(p,{key:0,intent:"h2"},{default:i(()=>[O(u(e.options.headline),1)]),_:1})):c("",!0),n("div",J,[n("div",W,[n("div",Y,u((e.rating??0).toLocaleString("de-DE",{minimumFractionDigits:1,maximumFractionDigits:2})),1),a(_,{rating:e.rating},null,8,["rating"])]),n("div",q,[a(b,{name:"ic_check_new",size:"xs",class:"text-light-green"}),n("div",K,[e.count?(t(),d("button",{key:0,class:"w-fit underline underline-offset-[6px] outline-1 outline-offset-2 outline-focus-dark hover:no-underline focus-visible:outline",tabindex:"0",onClick:o[0]||(o[0]=x=>f.toggle(!0))},u(e.options.linkLabel),1)):c("",!0)])])])]),s.value?.length?(t(),d("div",Q,[(t(!0),d(B,null,S(s.value,x=>(t(),r(E,{key:`overlay-review-${x.id}`,review:x,class:"rounded-none border-b border-black-300",tabbable:!1,"show-full-review":!0,"show-reply":!0},null,8,["review"]))),128))])):c("",!0),s.value?.length&&e.count?(t(),r(g,{key:1,"count-label":e.options.reviewsCountLabel.replace("${loadedReviews}",s.value.length.toString()).replace("${totalReviews}",e.count?.toLocaleString("de-DE")||"undefined"),"show-button":s.value.length!==e.count,"button-label":e.options.loadMoreButton,class:"py-10",onClick:o[1]||(o[1]=x=>h())},null,8,["count-label","show-button","button-label"])):c("",!0)])]),_:1})}}}),X=Object.assign(U,{__name:"ReviewsOverlay"}),Z={class:"block overflow-hidden py-6 lg:py-8 2xl:overflow-visible"},ee={class:"2xl:clip-full bg-dark-grey px-4 py-6 md:px-8 2xl:mx-auto 2xl:max-w-8xl 2xl:px-0 2xl:shadow-[0_0_0_100vmax_#E3DEDA]"},te={class:"flex flex-col lg:flex-row items-baseline gap-4 mr-auto mt-4 lg:mt-1"},ne={class:"flex flex-row items-top gap-2"},oe={class:"font-heading text-4xl font-semibold leading-[115%] lg:leading-[100%] md:text-5xl text-black"},se={class:"flex gap-2 items-center py-3 px-5 bg-white rounded-md w-fit"},le={class:"flex flex-col gap-1 text-base"},ie=D({name:"BaseReviews",__name:"BaseReviews",props:{preloadedCursor:{},reviews:{},options:{},fetchOptions:{},rating:{},count:{}},setup(e){const{t:L}=k(),{toggle:l}=P("reviews-overlay"),w=y({scrollbar:{hide:!1,draggable:!0,snapOnRelease:!1},freeMode:!0,mousewheel:{forceToAxis:!0},slidesPerView:1.1,slidesPerGroup:1,spaceBetween:16,breakpoints:{768:{slidesPerView:2.1,slidesPerGroup:2,spaceBetween:16},992:{slidesPerView:3.1,slidesPerGroup:3,spaceBetween:24},1440:{slidesPerView:4,slidesPerGroup:4,spaceBetween:24}}});return(s,m)=>{const h=$,f=R,o=C,p=z,_=V,b=F;return t(),d("section",Z,[n("div",ee,[e.options.headline?(t(),r(h,{key:0,intent:"h2"},{default:i(()=>[O(u(e.options.headline),1)]),_:1})):c("",!0),a(_,{settings:w.value,"ssr-container-classes":"!gap-x-4",class:"w-full"},N({_:2},[e.count||e.rating?{name:"reviews",fn:i(()=>
1[n("div",te,[n("div",ne,[n("div",oe,u((e.rating??0).toLocaleString("de-DE",{minimumFractionDigits:1,maximumFractionDigits:2})),1),a(f,{rating:e.rating},null,8,["rating"])]),n("div",se,[a(o,{name:"ic_check_new",size:"xs",class:"text-light-green"}),n("div",le,[e.count?(t(),d("button",{key:0,class:"w-fit underline underline-offset-[6px] outline-1 outline-offset-2 outline-focus-dark hover:no-underline focus-visible:outline",tabindex:"0",onClick:m[0]||(m[0]=g=>A(l)(!0))},u(e.options.linkLabel),1)):c("",!0)])])])]),key:"0"}:void 0,e.reviews?.length?{name:"default",fn:i(({ssrSlideClass:g})=>[(t(!0),d(B,null,S(e.reviews,v=>(t(),r(p,{key:v.id,class:G(["!h-auto shrink-0",g])},{default:i(()=>[a(E,{review:v},null,8,["review"])]),_:2},1032,["class"]))),128))]),key:"1"}:void 0]),1032,["settings"])]),a(b,null,{default:i(()=>[e.reviews?.length?(t(),r(X,{key:0,"preloaded-reviews":e.reviews,"preloaded-cursor":e.preloadedCursor,rating:e.rating,count:e.count,"fetch-options":e.fetchOptions,options:e.options},null,8,["preloaded-reviews","preloaded-cursor","rating","count","fetch-options","options"])):c("",!0)]),_:1})])}}}),fe=Object.assign(ie,{__name:"BaseReviews"});export{fe 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.