1(self.webpackChunkaem_module_ui_frontend=self.webpackChunkaem_module_ui_frontend||[]).push([[9339],{9339:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>n});var s=r(2749),i=r(3873);const o=function(t,e){const r=t,s=window.getComputedStyle(t);let i=parseFloat(s.lineHeight);if(Number.isNaN(i)){i=1.4*parseFloat(s.fontSize)}const o=Math.ceil(e*i);if(r.scrollHeight<=o)return;const a=r.textContent||"";let c=0,n=a.length,d="";for(;c<=n;){const t=Math.floor((c+n)/2);r.textContent=`${a.slice(0,t)}...`,r.scrollHeight<=o?(d=r.textContent,c=t+1):n=t-1}r.textContent=d||(a.length>0?`${a[0]}...`:"")};var a=r(9755),c=r.n(a);class n extends s.Z{constructor(t){super(t),this.C_PRODUCT_REVIEW_CAROUSEL=".cmp-product-review-carousel",this.C_CARD_DESCRIPTION=".cmp-product-review-carousel__card__description",this.C_CAROUSEL_WRAPPER=".cmp-product-review-carousel__wrapper";const e=c()(this.$cmp),r=c()(this.C_CAROUSEL_WRAPPER,e);this.productName=r.data("productName"),this.showStarRatingCard=r.data("showStarRatingCard");let s="";""!==this.productName&&(s=`<h4 class="cmp-product-review-carousel__card__headlight">${this.productName}</h4>`);const a=t=>{((t,e)=>{let r=null;return(...s)=>{r&&clearTimeout(r),r=window.setTimeout((()=>{t.apply(this,s)}),e)}})((()=>{t.each(((t,e)=>{o(e,3)}))}),300)()};this.$cardDescriptions=c()(this.C_CARD_DESCRIPTION,e),(0,i.Z)(this.$cmp,a.bind(this,this.$cardDescriptions),a.bind(this,this.$cardDescriptions),(t=>{var e;if("yes"===this.showStarRatingCard){t.classList.add("star-rating"),t.classList.add("cmp-product-review-carousel__card__wrapper"),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener noreferrer");const r=t.querySelector("img");if(r){const t=document.createElement("div");t.innerHTML=s,null===(e=r.parentNode)||void 0===e||e.insertBefore(t.firstChild,r)}}return t}).bind(this)),this.$productReviewCarousel=c()(this.C_PRODUCT_REVIEW_CAROUSEL,e)}}}}]);
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.