',t.appendChild(h);m={element:h,url:f,img:m,swatchName:d};e.swatches.push(m),(0!==g.features.collRedirect||g.features.switchImage&&"click"===g.features.switchImageEvent)&&m.element.addEventListener("click",N.bind(null,e,m)),g.features.switchImage&&"hover"===g.features.switchImageEvent&&m.element.addEventListener("mouseenter",w.bind(null,e,m)),u&&E(e.productId,m.element,e.optionName,d)}g.features.horScroll||(i=l.length-g.js.swatchNum,c=g.js.haveMoreText,0