PageSourceSearch

https://www.zooplus.hu/_next/static/chunks/pages/feedback-31dbfecd5c0d0b45.js

js zooplus.hu collected 2026-09-25 00:09:03 UTC 12,120 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8949],{53157:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/feedback",function(){return a(65440)}])},58523:e=>{e.exports={vSpacer:"Feedback_vSpacer__CeDES",pagination:"Feedback_pagination__lYh3k",reviewButtons:"Feedback_reviewButtons__PEtTi",feedbackGrid:"Feedback_feedbackGrid__4EgOY",productImage:"Feedback_productImage__Vct19",details:"Feedback_details__vV_6b",reviewCount:"Feedback_reviewCount__htnyp",reviews:"Feedback_reviews__9nXea",horizontalRecommendationSlider:"Feedback_horizontalRecommendationSlider__rPzfp",reviewInsights:"Feedback_reviewInsights__sbi_e",reviewInsightsItem:"Feedback_reviewInsightsItem__FxSJH",reviewInsightsAISummaryCard:"Feedback_reviewInsightsAISummaryCard__otufj",loadMoreReviews:"Feedback_loadMoreReviews__TZEP5"}},65440:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>D,default:()=>z});var r=a(80263),i=a(19981),n=a(59813);let l=JSON.parse('{"UU":"@shop/feedback"}');var o=a(11230),s=a.n(o),d=a(81519),c=a.n(d),u=a(74636),p=a(22994),g=a.n(p),v=a(53239),m=a(44310),h=a(11621),f=a(77344),w=a(91650),b=a(80846),_=a(26944),k=a(50492),I=a(30788),x=a(45275),j=a(19212),y=a(95334),R=a(95677),E=a(29173),C=a(20354),P=a(21093),B=a(94668),F=a(58523),N=a.n(F);let S=e=>{var t;let{origin:a,pathname:r}=window.location,i=new URL("".concat(a).concat(r).concat(window.location.search));e.page?i.searchParams.set("page",e.page.toString()):""===e.page&&i.searchParams.delete("page"),e.stars?i.searchParams.set("stars",e.stars.toString()):""===e.stars&&i.searchParams.delete("stars"),e.sortBy?i.searchParams.set("sortBy",e.sortBy.toString()):""===e.sortBy&&i.searchParams.delete("sortBy"),(null==(t=e.filters)?void 0:t.length)?i.searchParams.set("filters",e.filters.join(",")):e.filters&&i.searchParams.delete("filters"),window.location.assign(i)},A=e=>{var t,a,l,o,d,p,F,A,z,D,L,T,O,V,M,U,W,G,K,q,H,X,J,Q,Y,Z,$,ee,et,ea,er,ei,en;let{feedback:el,shopIdentifier:eo,internationalFeedbackData:es}=e,{language:ed,domain:ec,locale:eu,siteId:ep,realm:eg,uri:{query:ev,protocol:em},path:eh,legacyLanguage:ef}=(0,B.Us)(),{t:ew}=(0,m.Bd)(),eb=(0,u.useRouter)(),{sid:e_}=(0,h.B_)(),ek=(0,b.On)(b.f$,_.sc.FEEDBACK_REVIEW,ec,eu,ep),eI=(0,b.A0)(ek),[ex,ej]=(0,v.useState)(null!=es?es:void 0),{breadcrumbs:ey}=el.categories,{siteId:eR,currency:eE}=null!=(ee=el.site)?ee:{},[eC,eP]=(0,v.useState)(),eB=(0,v.useRef)(null),eF="string"==typeof(null==ev?void 0:ev.filters)?ev.filters.split(",").map(e=>e.trim()).filter(Boolean):[],eN=eF[0],eS=!!((null==ev?void 0:ev.page)&&(null==ev?void 0:ev.page)!=="1"||(null==ev?void 0:ev.stars)||eF.length),{pagesCount:eA}=el.pagination,ez=parseInt(null==ev?void 0:ev.page,10)||1,eD="/feedback".concat(el.product.productInfo.path),eL="https://www.".concat(null==ev?void 0:ev.domain).concat(eD),eT=null==(t=el.product.feedbackAggregate)?void 0:t.reviewSummary,eO=null!=(et=el.product.reviewClusters)?et:[],eV=eI&&!!eO.length,eM=(null==(o=el.product.feedbackAggregate)||null==(l=o.numberOfReviews)||null==(a=l.perLanguage)?void 0:a.total)||0,eU=null!=(er=null!=(ea=null==ex||null==(d=ex.pagination)?void 0:d.total)?ea:null==ex||null==(p=ex.relatedReviews)?void 0:p.length)?er:0,eW=(0,y.Kg)(),eG=C.w;(0,v.useEffect)(()=>{if(e_){let e=window.location.href;(0,_.sx)({event:_.F3.PAGE_VIEW,page:_.sc.FEEDBACK_REVIEW,detail:{sid:e_,domain:ec,siteId:eR,locale:eu,currencyCode:eE,pageLocation:e,platform:"WEB",customer:{id:eW?"".concat(eW):void 0}}})}},[e_,ec,eR,eu,eE,eW]),(0,v.useEffect)(()=>{(0,C.CM)({pageType:"web_feedback",language:ef,siteId:el.site.siteId,productId:[eo],userId:(0,y.VV)(),customerId:eW,...(0,C.bl)(ey)}).then(e=>eP(e?e[0]:void 0))},[ef,el,eo,ey,eW]);let eK=()=>{(0,_.sx)({event:_.F3.CLICK,page:_.sc.FEEDBACK_REVIEW,detail:{locale:eu,domain:ec,siteId:ep,currencyCode:eE,customer:{id:eW?"".concat(eW):void 0},target:{name:"button",id:"write_review",value:"".concat(eo)}}})},eq=[E.Rt.EXTERNAL_SCRIPT_LOADER_URL],eH=async()=>{var e,t;let a=(null!=(t=null==ex||null==(e=ex.pagination)?void 0:e.page)?t:1)+1,r=parseInt(null==ev?void 0:ev.stars,10)||void 0,i="string"==typeof(null==ev?void 0:ev.sortBy)?ev.sortBy:void 0,l=await (0,n.Qs)({shopIdentifier:eo,domain:ec,language:ed,page:a,filterBy:r,sortBy:i,filters:eF.length?eF:void 0});l&&ej(e=>({...l,relatedReviews:[...(null==e?void 0:e.relatedReviews)||[],...l.relatedReviews||[]]}))},eX=(null!=(ei=null==ex||null==(F=ex.pagination)?void 0:F.total)?ei:0)>(null!=(en=null==ex||null==(A=ex.pagination)?void 0:A.page)?en:0)
1*20,eJ=()=>{S({page:"",stars:"",sortBy:"",filters:[]})},eQ=ey[ey.length-1].path;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.QM,{protocol:em,domain:ec,realm:eg,scriptUrls:eq,title:(null==(D=el.product.feedbackAggregate)||null==(z=D.metaInformation)?void 0:z.metaTitle)||el.product.meta.pageTitle,locale:eu,canonical:eD}),(0,r.jsxs)(c(),{children:[(0,r.jsx)("meta",{name:"Description",property:"og:description",content:(null==(T=el.product.feedbackAggregate)||null==(L=T.metaInformation)?void 0:L.description)||el.product.meta.description}),(0,r.jsx)("meta",{property:"og:title",content:(null==(V=el.product.feedbackAggregate)||null==(O=V.metaInformation)?void 0:O.metaTitle)||el.product.meta.pageTitle}),(0,r.jsx)("meta",{property:"og:image",content:el.product.productInfo.picture}),(0,r.jsx)("meta",{name:"robots",content:eS?"noindex, nofollow":"index, follow"}),(0,r.jsx)("meta",{name:"application-name",content:"shop","data-pg-id":el.product.productInfo.productGroupId,"data-pet-type-pg-id":el.categories.petTypeProductGroupId}),(0,r.jsx)("meta",{name:"summary",content:el.product.meta.summary}),ez>1&&(0,r.jsx)("link",{rel:"prev",href:ez>2?"".concat(eL,"?page=").concat(ez-1):eL}),eA-ez&&(0,r.jsx)("link",{rel:"next",href:"".concat(eL,"?page=").concat(ez+1)})]}),(0,r.jsx)(g(),{id:"script-zootopia-meta-productreview",type:"text/javascript",dangerouslySetInnerHTML:{__html:(0,C.lp)(el.site.siteId,"PRODUCTREVIEW",C.re.FEEDBACK,eo,el.product.productInfo.productGroupId,ed)}}),(0,r.jsx)(R.B,{breadcrumbs:ey,lastBreadcrumbLabel:ew("viewFeedback.title")}),(0,r.jsxs)("main",{className:N().feedbackGrid,"data-zta":"feedback-grid",children:[(0,r.jsx)("section",{"aria-label":ew("feedback.section.productImage"),className:s()(N().vSpacer,N().productImage),children:(0,r.jsx)(k.M,{href:(0,P.js)({path:eh,domain:ec,language:ed,shopIdentifier:eo}),"aria-label":el.product.productInfo.title,children:(0,r.jsx)("img",{src:el.product.productInfo.picture,alt:el.product.productInfo.title,"data-zta":"product-image",width:380,height:380})})}),(0,r.jsxs)("section",{"aria-label":ew("feedback.section.details"),className:s()(N().vSpacer,N().details),children:[(0,r.jsxs)(I.H1,{"data-zta":"productTitle",children:[(0,r.jsx)("span",{className:s()("z-h4",N().reviewCount),children:ew("productReview.reviewcount.for",{0:eM+eU})}),el.product.productInfo.title]}),"zooplus"===eg&&(0,r.jsxs)(k.M,{"data-zta":"pictureUploadLink",style:{margin:"30px 0"},href:(0,P.Sj)({path:eh,domain:ec,language:ed,shopIdentifier:eo}),"aria-label":ew("detailDisplay.customerPictures.upload"),children:[(0,r.jsx)(w.i7d,{size:20}),(0,r.jsx)("span",{children:ew("detailDisplay.customerPictures.upload")})]}),(0,r.jsx)(n.t1,{shopIdentifier:eo,stars:(null==(M=el.product.feedbackAggregate)?void 0:M.averageRating)||0,ratingsNumber:(null==(G=el.product.feedbackAggregate)||null==(W=G.numberOfReviews)||null==(U=W.perLanguage)?void 0:U.total)||0,feedbacksByRating:(null==(H=el.product.feedbackAggregate)||null==(q=H.numberOfReviews)||null==(K=q.perLanguage)?void 0:K.byRating)||{}}),(0,r.jsxs)("div",{className:N().reviewButtons,children:[ey.length>0&&(0,r.jsx)(x.e,{"data-zta":"backToPDPButton",href:eQ,"aria-label":"".concat(ew("backToPDP.link.text")," ").concat(el.product.productInfo.title),children:ew("backToPDP.link.text")}),(0,r.jsx)(x.e,{"data-zta":"reviewButton",onClick:()=>eK(),"aria-label":ew("viewFeedback.link.text"),href:(0,P.fp)({path:eh,domain:ec,language:ed,shopIdentifier:eo}),variant:"secondary",children:ew("viewFeedback.link.text")})]})]}),(0,r.jsx)("section",{"aria-label":ew("feedback.section.recommendations"),className:N().horizontalRecommendationSlider,children:(0,r.jsx)(C.Dk,{recoContainer:eC,horizontal:!0,identifier:"first-horizontal",customSlidesConfiguration:eG,isZooplusChoiceEnabled:!(0,f.C1)(ec),h2TitleForDesktop:!0,trackingPage:_.sc.FEEDBACK_REVIEW})}),(0,r.jsxs)("section",{"aria-label":ew("feedback.section.reviews"),ref:eB,className:N().reviews,children:[(!!eT||eV)&&(0,r.jsxs)("div",{className:N().reviewInsights,children:[(0,r.jsx)(n.Pz,{aiSummary:eT,className:s()(N().reviewInsightsItem,{[N().reviewInsightsAISummaryCard]:eI})}),eV&&(0,r.jsx)(n.NN,{className:N().reviewInsightsItem,reviewClusters:eO,onSegmentClick:e=>{if(e===eN)return void eJ();S({page:"",filters:[e]})},shopIdentifier:eo,trackingPage:_.sc.FEEDBACK_REVIEW,selectedCluster:eN})]}),(null==(J=el.product.feedbackAggregate)||null==(X=J.numberOfReviews)?void 0:X.total)||(null==ex||null==(Q=ex.relatedReviews)?void 0:Q.length)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.s7,{stars:"string"==typeof ev.stars?ev.stars:"",sortBy:"str
1ing"==typeof ev.sortBy?ev.sortBy:"",onChange:S}),!!(null==ex||null==(Y=ex.relatedReviews)?void 0:Y.length)&&!!el.product.feedback.length&&(0,r.jsx)(I.H2,{children:ew("productReview.local.reviews")}),!el.product.feedback.length&&eS&&!(null==ex||null==(Z=ex.relatedReviews)?void 0:Z.length)&&(0,r.jsx)(n.WJ,{onResetButtonClick:eJ}),!!el.product.feedback.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.DV,{reviews:el.product.feedback,shopIdentifier:eo}),(0,r.jsx)("div",{className:N().pagination,children:(0,r.jsx)(j.d,{ariaLabel:"pagination","data-zta":"reviewListPagination",currentPage:ez,pageCount:el.pagination.pagesCount,onPageChange:e=>S({page:e}),pageLinkFormat:(0,P.eA)({page:"{{PAGE}}"}),nextPageLabel:ew("general.button.next"),previousPageLabel:ew("general.button.previous")})})]})]}):(0,r.jsx)(n.$o,{onWriteReviewButtonClick:()=>{eK(),eb.push((0,P.fp)({domain:ec,language:ed,path:eh,shopIdentifier:eo}))}}),!!(null==ex||null==($=ex.relatedReviews)?void 0:$.length)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.H2,{children:ew("productReview.international.reviews")}),(0,r.jsx)(n.DV,{reviews:(null==ex?void 0:ex.relatedReviews)||[],shopIdentifier:eo,isInternationalReview:!0}),eX&&(0,r.jsx)("div",{className:N().loadMoreReviews,children:(0,r.jsx)(k.M,{onClick:eH,children:ew("productReview.international.loadMore")})})]})]})]}),(0,r.jsx)(P.uh,{fadeInHeight:20})]})};(0,i.nl)(async(e,t)=>{var a,r;let i,o="string"==typeof e.query.shopIdentifier&&parseInt(e.query.shopIdentifier,10);if(!o||Number.isNaN(o)||!t.uri.pathname)return{notFound:!0};let s=parseInt(e.query.page,10)||1,d=parseInt(e.query.stars,10)||void 0,c="string"==typeof e.query.sortBy?e.query.sortBy:void 0,u=(e=>{let t=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e).flatMap(e=>e.split(",")).map(e=>e.trim()).filter(Boolean);return t.length?t:void 0})(e.query.filters),p=await (0,n.M5)({shopIdentifier:o,domain:t.domain,path:t.path,language:t.language,page:s,filterBy:d,filters:u,sortBy:c});if(!p)return{notFound:!0};if("redirect"in p)return{redirect:{destination:p.redirect,permanent:!0}};let g=null==(a=p.toggles)?void 0:a["shop.pdp.international-reviews.inclusive-approach.enabled"],v=null==(r=p.toggles)?void 0:r["shop.pdp.international-reviews.conservative-approach.enabled"];return(g||v)&&(i=await (0,n.Qs)({shopIdentifier:o,domain:t.domain,language:t.language,page:1,filterBy:d,filters:u,sortBy:c})),{props:{appLevelProps:{localization:Object.fromEntries(Object.entries(p.localization).map(e=>{let[t,a]=e;return[t.replace(".singular","_one").replace(".plural","_other"),((e,t)=>"productReview.reviewcount.for"===e?t.replace(" {1}",""):t)(t,a)]})),settings:p.settings,toggles:p.toggles},pageLevelProps:{name:l.UU,feedback:p,shopIdentifier:o,internationalFeedbackData:i||null}}}});let z=e=>{let{appLevelProps:t,pageLevelProps:a}=e;return(0,r.jsx)(i.LN,{...t,children:(0,r.jsx)(A,{...a})})};var D=!0}},e=>{e.O(0,[5028,8105,6119,8317,8389,354,7577,636,6593,8792],()=>e(e.s=53157)),_N_E=e.O()}]);
2//# sourceMappingURL=feedback-31dbfecd5c0d0b45.js.map

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.