1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2963,5344],{32271:(e,t,r)=>{r.d(t,{$u:()=>m,Ce:()=>v,Gs:()=>d,Wz:()=>f,h6:()=>p});var n=r(66284),a=r(63857),o=r(43081),c=r.n(o),i=r(5068);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var l="otvedkfs63pozhkgmecmpakpr",d=function(){var e=(0,a.A)(c().mark(function e(t,r,n,a){var o,u,d,p,f,v,m,E,g,b,w,R,h,O,A,k,y,S=arguments;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(f=S.length>4&&void 0!==S[4]?S[4]:1,l){e.next=3;break}return e.abrupt("return");case 3:return v="https://".concat("","api.bazaarvoice.com/data/reviews.json")+"?ApiVersion=5.4"+"&passKey=".concat(l)+"&Filter=productId:".concat(t)+"&Filter=Rating:gte:".concat(f)+"&Limit=".concat(r)+"&Offset=".concat(n)+"&Sort=".concat(a)+"&Include=Products&Stats=Reviews",e.next=6,i.A.get(v);case 6:if(!(m=e.sent.data).HasErrors){e.next=10;break}throw Error("BazaarVoice returned errors while getting the review: ".concat(m.Errors.map(function(e){return e.Message})));case 10:return g=(E=(null==m||null==(o=m.Includes)||null==(o=o.Products)||null==(o=o[t])?void 0:o.ReviewStatistics)||{}).TotalReviewCount,b=E.RecommendedCount,w=E.RatingDistribution,R=E.HelpfulVoteCount,h=E.NotRecommendedCount,O=E.AverageOverallRating,A=E.SecondaryRatingsAverages,k=Math.round(b/g*100)||0,y=null==m||null==(u=m.Results)?void 0:u.map(function(e){var t,r,n=e.Rating,a=e.SubmissionTime,o=e.Title,c=e.ReviewText,i=e.IsRecommended,u=e.UserNickname,l=e.UserLocation,d=e.Id,p=e.TotalPositiveFeedbackCount,f=e.TotalNegativeFeedbackCount,v=e.SecondaryRatings,m=e.IsSyndicated,E=e.SyndicationSource,g=e.ContextDataValues;return s(s({rating:n,date:a.slice(0,10).replaceAll("-","/"),title:o,review:c,recommended:i,nick:u,city:l,contentId:d,wasHelpful:{countYes:p,countNo:f},qualityStars:null==v||null==(t=v.Quality)?void 0:t.Value,valueStars:null==v||null==(r=v.Value)?void 0:r.Value},m&&{syndicationSourceName:null==E?void 0:E.Name}),(null==g?void 0:g.IncentivizedReview)&&{incentivizedReview:null==g?void 0:g.IncentivizedReview})}),e.abrupt("return",{reviewResults:y,recommendedPercentage:k,ratingDistribution:w,userRecommended:R,userNotRecommended:h,averageRating:O,totalReviewsCount:g,quality:null==A||null==(d=A.Quality)?void 0:d.AverageRating,value:null==A||null==(p=A.Value)?void 0:p.AverageRating});case 14:case"end":return e.stop()}},e)}));return function(t,r,n,a){return e.apply(this,arguments)}}(),p=function(){var e=(0,a.A)(c().mark(function e(t,r,n,a,o){var u,s,d,p;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s="https://".concat("","api.bazaarvoice.com/data/submitreview.json")+"?ApiVersion=5.4"+"&Passkey=".concat(l)+"&ProductId=".concat(t||"")+"&Action=Submit"+"&IsRecommended=".concat(r,"&")+Object.keys(n).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(n[e]))}).join("&")+"&fp=".concat(null==(u=window)||null==(u=u.IGLOO)?void 0:u.getBlackbox().blackbox),d=o?{User:o}:{HostedAuthentication_AuthenticationEmail:n.userEmail,HostedAuthentication_CallbackURL:a},e.next=4,i.A.post(s,null,{headers:{"content-type":"application/x-www-form-urlencoded"},params:d});case 4:if(!(p=e.sent.data).HasErrors){e.next=12;break}if(!(p.Errors.length>0)){e.next=10;break}throw console.error(p.Errors),Error(p.Errors.map(function(e){return e.Message}));case 10:if(!(p.FormErrors.FieldErrorsOrder.length>0)){e.next=12;break}return e.abrupt("return",Object.values(p.FormErrors.FieldErrors));case 12:return e.abrupt("return",[]);case 13:case"end":return e.stop()}},e)}));return function(t,r,n,a,o){return e.apply(this,arguments)}}(),f=function(){var e=(0,a.A)(c().mark(function e(t,r){var n,a;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://".concat("","api.bazaarvoice.com/data/submitfeedback.json")+"?ApiVersion=5.4"+"&Passkey=".concat(l)+"&FeedbackType=helpfulness&ContentType=review"+"&ContentId=".concat(r)+"&Vote=".concat(t),e.next=3,i.A.post(n,null,{headers:{"content-type":"application/x-www-form-urlencoded"}});case 3:if(!(a=e.sent.data).HasErrors){e.next=7;break}throw Error("BazaarVoice returned errors while posting feedback: ".concat(a.Errors.map(function(e){return e.Message})));case 7:return e.abrupt("return",a.HasErrors);case 8:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),v=function(){var e=(0,a.A)(c().mark(function e(t){var r,n,a;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return",[]);case 2:if(0!==(r=t.filter(function(e){return e&&""!==e.trim()})).length){e.next=5;break}return e.abrupt("return",[]);case 5:return n="https://".concat("","api.bazaarvoice.com/data/statistics.json")+"?ApiVersion=5.4"+"&Passkey=".concat(l)+"&Filter=productId:".concat(r)+"&stats=Reviews",e.next=8,i.A.get(n);case 8:if(!(a=e.sent.data).HasErrors){e.next=12;break}throw Error("BazaarVoice returned errors while getting the review: ".concat(a.Errors.map(function(e){return e.Message})));case 12:return e.abrupt("return",a.Results.map(function(e){return{productId:e.ProductStatistics.ProductId,rating:e.ProductStatistics.ReviewStatistics.AverageOverallRating,totalReviews:e.ProductStatistics.ReviewStatistics.TotalReviewCount}}));case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=(0,a.A)(c().mark(function e(t){var r,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.A)("https://".concat("","api.bazaarvoice.com/data/authenticateuser.json"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},params:{PassKey:"otvedkfs63pozhkgmecmpakpr",authtoken:t,ApiVersion:5.4}});case 2:if(!(null!=(n=e.sent.data)&&n.HasErrors||!(null!=(r=n.Authentication)&&r.User))){e.next=6;break}return e.abrupt("return");case 6:return e.abrupt("return",n.Authentication.User);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},55155:(e,t,r)=>{r.d(t,{M:()=>i});var n=r(92401),a=r.n(n),o=r(14232),c=r(95362),i=function(e,t){var r=(0,c.l)().optanon.targeting,n=(0,o.useState)(function(){if(t)try{var r=localStorage.getItem(e);return r?JSON.parse(r):t}catch(e){return t}}),i=n[0],u=n[1];return(0,o.useEffect)(function(){if(r&&i)try{localStorage.setItem(e,a()(i))}catch(e){console.error(e)}},[i,e,r]),[i,u]}},57697:(e,t,r)=>{r.d(t,{ZP:()=>a,g$:()=>n,uB:()=>c,v6:()=>o});var n=function(e){return e.ARTICLE_CATEGORY_PAGE="articleCategoryPage",e}({}),a=function(e){return e.IMAGE="image",e.SECTION="section",e.HERO_SECTION="heroSection",e.TALL_IMAGE_SECTION="tallImageSection",e.PROMOTION_CARD="promotionCard",e.QUOTE="quote",e.DISCLAIMER="disclaimer",e.JUMBOTRON="jumbotron",e.ACCORDION="accordion",e.REVIEW_COMPONENTS_SECTION="reviewComponentsSection",e}({}),o=function(e){return e[e.PRE_DEFINED=0]="PRE_DEFINED",e[e.USER_JOURNEY=1]="USER_JOURNEY",e[e.RELATED_ENTITIES=2]="RELATED_ENTITIES",e}({}),c=function(e){return e.PAGE="page",e.FILTERS="filters",e.SORT="sort",e}({})},63137:(e,t,r)=>{r.d(t,{i:()=>i});var n=r(70236),a=r(45794),o=r(95362),c=r(55155),i=function(){var e=(0,o.l)().optanon.targeting,t=(0,c.M)("recentProducts",[]),r=(0,a.A)(t,2),i=r[0],u=r[1];return{getRecentProducts:function(){return null==i?void 0:i.slice(0,10)},addRecentProduct:function(t){e&&u(function(e){return e.reduce(function(e,t){return e.find(function(e){return e.id===t.id})?e:[].concat((0,n.A)(e),[t])},[t])})}}}}}]);
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.