(window.webpackJsonplojahr_trustvox_1_0_5=window.webpackJsonplojahr_trustvox_1_0_5||[]).push([["RatingInline"],[function(t,e){t.exports=React},,function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"c",(function(){return s})),r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return u}));var n=function(t){var e=t.productId,r=t.productName,n=t.imageUrl,o=t.productReference,s=t.sellers,i=t.gtin,u=void 0===i?null:i,a=t.ean,c=void 0===a?null:a,d=t.department_id,l=void 0===d?null:d;window._trustvox&&window._trustvox.find((function(t){return"_productId"===t[0]}))&&window._trustvox.find((function(t){return"_productId"===t[0]}))[1]&&window._trustvox.find((function(t){return"_productId"===t[0]}))[1]===e||(window._trustvox_initializer&&window._trustvox_initializer.cleanup(),window._trustvox=[],window._trustvox.push(["_storeId",window.appsetting_trustvox_storeId]),window._trustvox.push(["_productId",e]),window._trustvox.push(["_productName",r]),window._trustvox.push(["_productPhotos",n]),s&&window._trustvox.push(["_sellers",s]),o&&o.length&&window._trustvox.push(["_productGroup",o]),l&&window._trustvox.push(["_productExtraAttributes",{department_id:l}]),u&&window._trustvox.push(["_productGtins",["gtin",u]]),c&&window._trustvox.push(["_productEans",["ean",c]]),window._trustvox_initializer&&window._trustvox_initializer.initialize())},o=function(){if(!document.querySelector("#trustvox_script_main")){var t=document.createElement("script");t.type="text/javascript",t.setAttribute("id","trustvox_script_main"),t.innerHTML="var _trustvox_shelf_rate = [];\n _trustvox_shelf_rate.push(['_storeId', ".concat(window.appsetting_trustvox_storeId,"]);\n _trustvox_shelf_rate.push(['_productContainer', 'body']);\n _trustvox_shelf_rate.push(['_watchSubtree', true]);"),document.head.appendChild(t)}},s=function(){var t;(t=document.querySelector(".ts-shelf-container"))&&t.remove(),o();for(var e=function(t){for(var e=document.getElementsByTagName("script"),r=0;r div")))){t.next=3;break}return t.abrupt("return",r);case 3:return t.next=5,new Promise((function(t){return setTimeout(t,100)}));case 5:return t.next=7,m(e);case 7:return n=t.sent,t.abrupt("return",n);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.default=function(){var t,e=_()(v).handles,r=null===(t=Object(u.useContext)(d.a))||void 0===t?void 0:t.product,n=Object(u.useState)(null),o=Object(i.a)(n,2),s=o[0],c=o[1],p=Object(u.useState)(!1),x=Object(i.a)(p,2),f=x[0],g=x[1];if(!r)return null;var w=r.productId;return Object(u.useEffect)((function(){Object(l.c)()}),[]),Object(u.useEffect)((function(){w&&m(w).then((function(t){if(function(t){var e=t.children[0].firstElementChild;return"0%"===e.style.width&&(e.parentElement.parentElement.parentElement.parentElement.style.display="none",!0)}(t))c(null),g(!1);else{var e=function(t){var e=t.children[0].firstElementChild;return Number(e.style.width.replace(/\D/g,""))/20}(t);c(e),g(!0)}})).catch((function(){c(null),g(!1)}))}),[w]),a.a.createElement("div",{style:{display:"flex",alignItems:"center"}},a.a.createElement("div",{style:{display:f?"flex":"none",flexDirection:"row",alignItems:"center",gap:"0.1875rem",marginTop:"0.1875rem"}},null!==s&&a.a.createElement("span",{className:e.shelfRating},a.a.createElement("span",{className:e.shelfRatingValue},s),a.a.createElement("span",{className:e.shelfRatingBest},"/5")),a.a.createElement("div",{"data-trustvox-product-code":r.productId})))}},function(t,e){t.exports=regeneratorRuntime}],[[17,"common"]]]);