!function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}function r(t,r){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callback=e,this.options=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,[t,r])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(e,t),n=e,(o=[{key:"sendEvent",value:function(t){var e={event:"GAevent",eventName:"viewReviewElement",elementTitle:t.querySelector(".js-shorts-title").innerText.trim(),elementPosition:+t.getAttribute("data-position")};dataLayer.push(e),this.options.isTest&&this.logEvent(e)}}])&&r(n.prototype,o),u&&r(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,u}(b);$((function(t){!function(){var t=document.querySelectorAll(".js-shorts-list .js-shorts-card");if("on"===v.dataset.wcpUtDataLayer&&"on"===v.dataset.wcpUtDataLayerVisibility){var e=new d((function(t){e.sendEvent(t)}));t.forEach((function(t){return e.observe(t)}))}}()}))}();