PageSourceSearch

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

js allnatura.de collected 2026-10-02 10:20:09 UTC 3,965 bytes, 1 lines download raw bytes

1import{u as j,x as E,l as W,L as F,bl as O,p as P,E as q,c5 as Q,N as T}from"./BSk9Edm7.js";import G from"./C0s3Ym5T.js";import{n as Y,C as h,a8 as d,W as _,a9 as $,u as x,a7 as y,L as b,a6 as J,Y as K,aa as w,a1 as U,k as m,q as R,V as o}from"./aGX58C66.js";import{u as X}from"./elC3reAt.js";import{a as Z}from"./-QSLWQK4.js";import"./wqJDIAjt.js";const ee=["script","style","svg"],te=(e,t)=>{if(!e.trim())return"";const a=[],r=/(\w+)(?:=(?:"([^"]*)"|'([^']*)'|([^\s>]*)))?/g;let l;for(;(l=r.exec(e))!==null;){const[,n,s,i,g]=l,u=s??i??g??"";if(t.includes(n.toLowerCase())){if(n.toLowerCase()==="href"&&u.toLowerCase().startsWith("javascript:"))continue;u?a.push(`${n}="${u}"`):a.push(n)}}return a.join(" ")},A=(e,t=[])=>e?e.replace(/<(\/*)(\w+)([^>]*)>/g,(a,r,l,n)=>{const s=l.toLowerCase();if(s==="br")return"<br />";if(!ee.includes(s)){if(r)return`</${s}>`;const i=te(n,t);return`<${s}${i?" ":""}${i}>`}return""}):"",ae={class:"flex h-full flex-col gap-4 rounded-[10px] bg-white outline-2 outline-offset-4 outline-focus-dark focus-visible:outline"},ne=["tabindex"],se=["innerHTML"],le=["innerHTML"],ie={class:"text-sm leading-[140%] text-black-800"},oe={key:0},re={class:"flex items-center justify-between gap-2 text-sm text-light-green mt-3"},ue={class:"flex items-center gap-1"},ce=Y({name:"Review",__name:"Review",props:{review:{},tabbable:{type:Boolean,default:!0},showFullReview:{type:Boolean,default:!1},showReply:{type:Boolean,default:!1}},setup(e){const t=e,a=m(!1),r=m(null),l=m(null),n=m(0),s=m(0),i=m({title:"",comment:""}),{localeProperties:g,t:u}=j(),{allLocales:V}=E().public,{show:k}=W(),p=R(()=>a.value?{...t.review,title:i.value.title||t.review.title,comment:i.value.comment||t.review.comment}:t.review),L=R(()=>g.value.language.split("-")[0]),C=R(()=>{const v=V.find(c=>c.trustedChannelId===t.review.channelRef);return v?v.language.split("-")[0]:null}),H=R(()=>C.value?C.value===L.value:!1),{fetchTranslatedReview:z}=X(),f=m(!1),D=async()=>{if(a.value){a.value=!1;return}I(),f.value=!0,await z({id:t.review.id,language:L.value,cachePage:Q()}).then(({data:v})=>{f.value=!1;const c=v?.value;c?.status==="success"&&c.translation?(i.value=c.translation,a.value=!0):c?.statusCode===500?k(u("pdp.reviews.error.status_code_500"),"",{type:T.ERROR}):k(u("pdp.reviews.error.status_code_general"),"",{type:T.WARN})})};function I(){r.value&&(n.value=r.value.getBoundingClientRect().height),l.value&&(s.value=l.value.getBoundingClientRect().height)}return(v,c)=>{const N=F,M=O,B=q,S=P;return o(),h("div",ae,[d("div",{class:"flex flex-col p-4",tabindex:e.tabbable?0:-1},[f.value?(o(),_(N,{key:0,intent:"text",style:$({height:`${n.value}px`})},null,8,["style"])):p.value.title?(o(),h("div",{key:1,ref_key:"titleRef",ref:r,class:"line-clamp-2 font-bold leading-[22px]",innerHTML:x(A)(p.value.title)},null,8,se)):y("",!0),b(M,{rating:e.review.rating,size:"2xs",class:"mt-1 mb-3"},null,8,["rating"]),f.value?(o(),_(N,{key:2,intent:"text",style:$({height:`${s.value}px`})},null,8,["style"])):(o(),h("div",{key:3,ref_key:"commentRef",ref:l,class:J(["text-sm leading-[140%]",{"line-clamp-2 mb-1":!e.showFullReview}]),innerHTML:x(A)(p.value.comment)},null,10,le)),d("div",ie,[K(w(x(Z)(e.review.submittedAt))+" ",1),e.review.customer?.firstName||e.review.customer?.lastName?(o(),h("span",oe,w(v.$t("pdp.reviews.from"))+" "+w(e.review.customer?.firstName)+" "+w(e.review.customer?.lastName?e.review.customer?.lastName.substring(0,1)+".":""),1)):y("",!0)]),d("div",re,[d("div",ue,[b(B,{name:"ic_check_new",size:"3xs"}),d("span",null,w(x(u)("pdp.reviews.verified_purchase")),1)]),!H.value&&p.value.comment?(o(),_(S,{key:0,intent:"link",class:"!w-fit !pb-1 !text-start text-sm",disabled:f.value,onClick:D},{default:U(()=>[b(B,{name:"ic_translate_new",size:"sm"})]),_:1},8,["disabled"])):y("",!0)])],8,ne),e.showReply&&e.review.reply?(o(),_(G,{key:0,reply:e.review.reply},null,8,["reply"])):y("",!0)])}}}),pe=Object.assign(ce,{__name:"CMSReview"});export{pe 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.