"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[9398],{99398:(e,t,n)=>{n.r(t),n.d(t,{LogRocketAnonymousIntegration:()=>v});var r=n(74579),o=n(9795),i=n(36026),u=n(96543),a=["name","unique"];function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var s=r.A.equals,v=function(){return e=function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=[],(r=f(r="uniqueEvents"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.isActive=void 0!==t,this.lrInstance=t},t=[{key:"active",get:function(){return this.isActive}},{key:"start",value:function(){}},{key:"trackLogRocketEvent",value:function(e){var t=e.payload,n=t.name,r=t.unique,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,a);i.A.appEnv!==o.H.Local&&i.A.appEnv!==o.H.Dynamic?this.lrInstance.track(n,u):console.log("This video recording event would be tracked in production",{name:n,unique:!1!==r,eventProperties:u})}},{key:"trackEvent",value:function(e){var t=e instanceof u.D;if(this.isActive&&t){var n=!1!==e.payload.unique;if(!n||!this.uniqueEvents.some((function(t){return s(t,e)})))try{this.trackLogRocketEvent(e),n&&this.uniqueEvents.push(e),this.log("Event tracked",e)}catch(r){console.error(r)}}}},{key:"log",value:function(e,t){i.A.debug&&console.debug("[LogRocket] ".concat(e),t?{metadata:t}:"")}}],t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/9398.71146566.chunk.js.map