@withyouwithme/vue-multianalytics
Advanced tools
Comparing version 1.10.2 to 1.10.3
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=o(i),c=n(3),u=o(c),s=n(7),l=o(s),f=n(8),p=o(f),d=n(9),v=o(d),y=n(10),h=o(y),g=n(11),m=o(g),b=n(12),w=o(b),k=n(13),_=o(k),E=n(14),O=o(E),P=n(15),j=o(P),x=n(16),T=o(x),U=n(6),L=(r(U),n(4)),M=r(L),D={},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];e.modulesEnabled=[];for(var r in t.modules){var o=void 0;switch(r){case M.MODULE_GA:o=new u.default,o.init(t.modules[r]);break;case M.MODULE_GTM:o=new T.default,o.init(t.modules[r]);break;case M.MODULE_MIXPANEL:o=new l.default,o.init(t.modules[r]);break;case M.MODULE_SEGMENT:o=new p.default,o.init(t.modules[r]);break;case M.MODULE_FACEBOOK:o=new v.default,o.init(t.modules[r]);break;case M.MODULE_MPARTICLE:o=new h.default,o.init(t.modules[r]);break;case M.MODULE_AMPLITUDE:o=new m.default,o.init(t.modules[r]);break;case M.MODULE_FULLSTORY:o=new w.default,o.init(t.modules[r]);break;case M.MODULE_HUBSPOT:o=new _.default,o.init(t.modules[r]);break;case M.MODULE_PRODUCT_STASH:o=new O.default,o.init(t.modules[r]);break;case M.MODULE_PRODUCT_TOUR:o=new j.default,o.init(t.modules[r])}o&&e.modulesEnabled.push(o)}Object.keys(D).length>0&&Object.values(D).forEach(function(n,r){var o=new n;o.init(t.modules[Object.keys(D)[r]]),e.modulesEnabled.push(o)}),t.routing&&t.routing.vueRouter&&A(e,t.routing);var i=new a.default(e.modulesEnabled);e.prototype.$multianalytics=e.prototype.$ma=e.ma=i,n&&(e.prototype.$multianalyticsm=e.prototype.$mam=e.mam=n(i))},S=function(e,t){D[e]=t},A=function(e,t){return t.ignoredViews&&(t.ignoredViews=t.ignoredViews.map(function(e){return e.toLowerCase()})),t.preferredProperty||(t.preferredProperty="path"),t.vueRouter.afterEach(function(n){t.ignoredViews&&t.ignoredViews.indexOf(n[t.preferredProperty].toLowerCase())!==-1||e.ma.trackView({viewName:n.meta.analytics||n[t.preferredProperty]},t.ignoredModules)}),t.ignoredViews};t.default={install:I,addCustomModule:S}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),c=a.value}catch(e){return void n(e)}return a.done?void e(c):Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(2);var a=function(){function e(t){o(this,e),this.modulesEnabled=t}return i(e,[{key:"trackView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.viewName&&this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackView(e)})}},{key:"trackEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackEvent(e)})}},{key:"ecommerceTrackEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.ecommerceTrackEvent(e)})}},{key:"trackException",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackException(e)})}},{key:"trackTiming",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.trackTiming(e)})}},{key:"addTransaction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.addTransaction(e)})}},{key:"addItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.addItem(e)})}},{key:"trackTransaction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.modulesEnabled.forEach(function(t){e.indexOf(t.name)===-1&&t.trackTransaction()})}},{key:"clearTransactions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.modulesEnabled.forEach(function(t){e.indexOf(t.name)===-1&&t.clearTransactions()})}},{key:"setUsername",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setUsername(e)})}},{key:"setUserProperties",value:function(){function e(){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function e(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.modulesEnabled.filter(function(e){return o.indexOf(e.name)===-1}),e.next=3,Promise.all(t.map(function(e){return e.setUserProperties(r)}));case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}},e,this)}));return e}()},{key:"setUserPropertiesOnce",value:function(){function e(){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function e(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.modulesEnabled.filter(function(e){return o.indexOf(e.name)===-1}),e.next=3,Promise.all(t.map(function(e){return e.setUserPropertiesOnce(r)}));case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}},e,this)}));return e}()},{key:"setSuperProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setSuperProperties(e)})}},{key:"setSuperPropertiesOnce",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setSuperPropertiesOnce(e)})}},{key:"identify",value:function(){function e(){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function e(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.modulesEnabled.filter(function(e){return o.indexOf(e.name)===-1}),e.next=3,Promise.all(t.map(function(e){return e.identify(r)}));case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}},e,this)}));return e}()},{key:"setAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.modulesEnabled.forEach(function(n){t.indexOf(n.name)===-1&&n.setAlias(e)})}},{key:"reset",value:function(){function e(){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function e(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.modulesEnabled.filter(function(e){return r.indexOf(e.name)===-1}),e.next=3,Promise.all(t.map(function(e){return e.reset()}));case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}},e,this)}));return e}()}]),e}();t.default=a},function(e,t,n){var r=function(e){"use strict";function t(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),c=new d(r||[]);return a._invoke=s(e,n,c),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function c(e){["next","throw","return"].forEach(function(n){t(e,n,function(e){return this._invoke(n,e)})})}function u(e,t){function n(o,i,a,c){var u=r(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&m.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,a,c)},function(e){n("throw",e,a,c)}):t.resolve(l).then(function(e){s.value=e,a(s)},function(e){return n("throw",e,a,c)})}c(u.arg)}function o(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}var i;this._invoke=o}function s(e,t,n){var o=E;return function(i,a){if(o===P)throw new Error("Generator is already running");if(o===j){if("throw"===i)throw a;return y()}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=l(c,n);if(u){if(u===x)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===E)throw o=j,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=P;var s=r(e,t,n);if("normal"===s.type){if(o=n.done?j:O,s.arg===x)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=j,n.method="throw",n.arg=s.arg)}}}function l(e,t){var n=e.iterator[t.method];if(n===h){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=h,l(e,t),"throw"===t.method))return x;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,x;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=h),t.delegate=null,x):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,x)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function v(e){if(e){var t=e[w];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(m.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=h,t.done=!0,t};return r.next=r}}return{next:y}}function y(){return{value:h,done:!0}}var h,g=Object.prototype,m=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",k=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag";try{t({},"")}catch(e){t=function(e,t,n){return e[t]=n}}e.wrap=n;var E="suspendedStart",O="suspendedYield",P="executing",j="completed",x={},T={};T[w]=function(){return this};var U=Object.getPrototypeOf,L=U&&U(U(v([])));L&&L!==g&&m.call(L,w)&&(T=L);var M=a.prototype=o.prototype=Object.create(T);return i.prototype=M.constructor=a,a.constructor=i,i.displayName=t(a,_,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,t(e,_,"GeneratorFunction")),e.prototype=Object.create(M),e},e.awrap=function(e){return{__await:e}},c(u.prototype),u.prototype[k]=function(){return this},e.AsyncIterator=u,e.async=function(t,r,o,i,a){void 0===a&&(a=Promise);var c=new u(n(t,r,o,i),a);return e.isGeneratorFunction(r)?c:c.next().then(function(e){return e.done?e.value:c.next()})},c(M),t(M,_,"Generator"),M[w]=function(){return this},M.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=v,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=h)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=h),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=m.call(o,"catchLoc"),c=m.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,x):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),x},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),x}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:v(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=h),x}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=n(6),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_GA));return e.settings={additionalAccountNames:[],userId:null},e}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t,n,r,o,i,a){e.GoogleAnalyticsObject=o,e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o].l=1*new Date,i=t.createElement(n),a=t.getElementsByTagName(n)[0],i.setAttribute("defer",""),i.src=r,a.parentNode.insertBefore(i,a)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga");var t=["trackingId","appName","appVersion"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,ga("create",e.trackingId,"auto"),ga("set","transport","beacon"),ga("set","appName",e.appName),ga("set","appVersion",e.appVersion),e.ecommerce&&ga("require","ecommerce")}},{key:"trackView",value:function(e){var t=e.viewName;this.config.debug&&(0,f.logDebug)(t);var n={hitType:"pageview",page:t};this.settings.userId&&ga("set","&uid",this.settings.userId),ga("send",n)}},{key:"trackEvent",value:function(e){var t=e.category,n=void 0===t?"Event":t,r=e.action,o=e.label,i=void 0===o?null:o,a=e.value,c=void 0===a?null:a,u=e.callback,s=void 0===u?null:u;if(this.config.debug&&f.logDebug.apply(void 0,arguments),c){var l=parseInt(c,10);c=isNaN(l)?0:l}var p={hitType:"event",eventCategory:n,eventAction:r,eventLabel:i,eventValue:c,hitCallback:s,userId:this.settings.userId};ga("send",p)}},{key:"trackException",value:function(e){var t=e.description,n=void 0===t?"":t,r=e.isFatal,o=void 0!==r&&r;this.config.debug&&(0,f.logDebug)({description:n,isFatal:o}),ga("send","exception",{exDescription:n,exFatal:o})}},{key:"trackTiming",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.config.debug&&(0,f.logDebug)({timingCategory:e,timingVar:t,timingValue:n,timingLabel:r});var o={hitType:"timing",timingCategory:e,timingVar:t,timingValue:n};r&&(o.timingLabel=r),ga("send",o)}},{key:"setUsername",value:function(e){this.settings.userId=e}},{key:"identify",value:function(e){var t=e.userId;this.setUsername(t)}},{key:"setUserProperties",value:function(e){e.properties}},{key:"addTransaction",value:function(e){var t=e.id,n=e.affiliation,r=void 0===n?"":n,o=e.revenue,i=void 0===o?0:o,a=e.shipping,c=void 0===a?0:a,u=e.tax,s=void 0===u?0:u,l=e.currency,f=void 0===l?"USD":l;ga("ecommerce:addTransaction",{id:t,affiliation:r,revenue:i,shipping:c,tax:s,currency:f})}},{key:"addItem",value:function(e){var t=e.id,n=e.name,r=e.sku,o=e.category,i=e.price,a=void 0===i?0:i,c=e.quantity,u=void 0===c?1:c;ga("ecommerce:addItem",{id:t,name:n,sku:r,category:o,price:a,quantity:u})}},{key:"trackTransaction",value:function(){ga("ecommerce:send")}},{key:"clearTransactions",value:function(){ga("ecommerce:clear")}}]),t}(l.default);t.default=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MODULE_GA="ga",t.MODULE_MIXPANEL="mixpanel",t.MODULE_SEGMENT="segment",t.MODULE_FACEBOOK="facebook",t.MODULE_MPARTICLE="mparticle",t.MODULE_AMPLITUDE="amplitude",t.MODULE_FULLSTORY="fullstory",t.MODULE_HUBSPOT="hubspot",t.MODULE_PRODUCT_STASH="productstash",t.MODULE_PRODUCT_TOUR="producttour",t.MODULE_GTM="gtmanager"},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.name=t,this.config=r}return r(e,[{key:"trackView",value:function(){}},{key:"trackEvent",value:function(){}},{key:"trackException",value:function(){}},{key:"trackTiming",value:function(){}},{key:"setAlias",value:function(){}},{key:"identify",value:function(){}},{key:"setUsername",value:function(){}},{key:"setUserProperties",value:function(){}},{key:"setUserPropertiesOnce",value:function(){}},{key:"incrementUserProperties",value:function(){}},{key:"setSuperProperties",value:function(){}},{key:"setSuperPropertiesOnce",value:function(){}},{key:"ecommerceTrackEvent",value:function(){}},{key:"addTransaction",value:function(){}},{key:"addItem",value:function(){}},{key:"trackTransaction",value:function(){}},{key:"clearTransactions",value:function(){}},{key:"reset",value:function(){}}]),e}();t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.logDebug=function(e){var t;(t=console).log.apply(t,["VueAnalytics :"].concat(Array.prototype.slice.call(arguments)))},t.cordovaApp={bootstrapWindows:function(){window.ActiveXObject=void 0,ga("set","checkProtocolTask",null)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=n(6),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_MIXPANEL))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!t.__SV){var n=window;try{var r,o,i,a=n.location,c=a.hash;r=function(e,t){return(o=e.match(RegExp(t+"=([^&]*)")))?o[1]:null},c&&r(c,"state")&&(i=JSON.parse(decodeURIComponent(r(c,"state"))),"mpeditor"===i.action&&(n.sessionStorage.setItem("_mpcehash",c),history.replaceState(i.desiredHash||"",e.title,a.pathname+a.search)))}catch(e){}var u,s;window.mixpanel=t,t._i=[],t.init=function(e,n,r){function o(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var i=t;for("undefined"!=typeof r?i=t[r]=[]:r="mixpanel",i.people=i.people||[],i.toString=function(e){var t="mixpanel";return"mixpanel"!==r&&(t+="."+r),e||(t+=" (stub)"),t},i.people.toString=function(){return i.toString(1)+".people (stub)"},u="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "),s=0;s<u.length;s++)o(i,u[s]);t._i.push([e,n,r])},t.__SV=1.2,n=e.createElement("script"),n.type="text/javascript",n.setAttribute("defer",""),n.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",r=e.getElementsByTagName("script")[0],r.parentNode.insertBefore(n,r)}}(document,window.mixpanel||[]);var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,mixpanel.init(e.token,e.config)}},{key:"trackView",value:function(e){var t=e.viewName;mixpanel.track&&(this.config.debug&&(0,f.logDebug)(t),mixpanel.track("Page Viewed",{page:t}))}},{key:"trackEvent",value:function(e){var t=e.action,n=e.properties,r=void 0===n?{}:n,o=e.callback,i=void 0===o?null:o;if(mixpanel.track){this.config.debug&&f.logDebug.apply(void 0,arguments);var a=Object.assign({},r);mixpanel.track(t,a,i)}}},{key:"setAlias",value:function(e){mixpanel.alias&&(this.config.debug&&(0,f.logDebug)(e),mixpanel.alias(e))}},{key:"identify",value:function(e){var t=e.userId;mixpanel.identify&&(this.config.debug&&(0,f.logDebug)(t),t&&mixpanel.identify(t))}},{key:"setUsername",value:function(e){mixpanel.identity&&(this.config.debug&&(0,f.logDebug)(e),mixpanel.identify(e))}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};mixpanel.people&&(this.config.debug&&(0,f.logDebug)(e),mixpanel.people.set(e))}},{key:"setUserPropertiesOnce",value:function(e){mixpanel.people&&(this.config.debug&&(0,f.logDebug)(e),mixpanel.people.set_once(e))}},{key:"incrementUserProperties",value:function(e){mixpanel.people&&(this.config.debug&&(0,f.logDebug)(e),mixpanel.people.increment(e))}},{key:"setSuperProperties",value:function(e){mixpanel.register&&(this.config.debug&&(0,f.logDebug)(e),mixpanel.register(e))}},{key:"setSuperPropertiesOnce",value:function(e){mixpanel.register_once&&(this.config.debug&&(0,f.logDebug)(e),mixpanel.register_once(e))}},{key:"reset",value:function(){mixpanel.reset&&(this.config.debug&&(0,f.logDebug)("reset"),mixpanel.reset())}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=n(6),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_SEGMENT));return e.superProperties={},e}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var t=0;t<e.methods.length;t++){var n=e.methods[t];e[n]=e.factory(n)}e.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.setAttribute("defer",""),t.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)},e.SNIPPET_VERSION="4.0.0"}}();var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,analytics.load(e.token),analytics.debug(Boolean(this.config.debug))}},{key:"trackView",value:function(e){var t=e.viewName,n=e.properties,r=void 0===n?{}:n;if(analytics.page){this.config.debug&&f.logDebug.apply(void 0,arguments);try{Object.assign(r,this.superProperties);analytics.page(t,r)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"trackEvent",value:function(e){var t=(e.category,e.action),n=(e.label,e.value,e.properties),r=void 0===n?{}:n;e.callback;if(analytics.track){this.config.debug&&f.logDebug.apply(void 0,arguments);try{var o=Object.assign(r,this.superProperties);analytics.track(t,o)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"setUserProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config.debug&&(0,f.logDebug)(e);var t={};if(e.hasOwnProperty("userId")){var n=e.userId;delete e.userId,t.userId=n}t.options=e,this.identify(t)}},{key:"setSuperProperties",value:function(e){this.config.debug&&(0,f.logDebug)(e),this.superProperties=e}},{key:"identify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(analytics.identify){this.config.debug&&(0,f.logDebug)(e);try{e.userId?analytics.identify(e.userId,e.options):analytics.identify(e.options)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"setUsername",value:function(e){this.config.debug&&(0,f.logDebug)(e),this.identify({userId:e})}},{key:"setAlias",value:function(e){if(analytics.alias){this.config.debug&&(0,f.logDebug)(e);try{analytics.alias(e)}catch(e){if(!(e instanceof ReferenceError))throw e}}}},{key:"reset",value:function(){if(analytics.reset){this.config.debug&&(0,f.logDebug)("reset");try{analytics.reset()}catch(e){if(!(e instanceof ReferenceError))throw e}}}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(4),l=n(5),f=r(l),p=n(6),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s.MODULE_FACEBOOK))}return c(t,e),u(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t,n,r,o,i,a){e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],i=t.createElement(n),i.setAttribute("defer",""),i.src=r,a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(i,a))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js");var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,fbq("init",e.token)}},{key:"trackView",value:function(e){o(e),fbq("track","PageView")}},{key:"trackEvent",value:function(e){var t=e.fb_event,n=void 0===t?"ViewContent":t,r=e.category,o=void 0===r?"Event":r,i=(e.action,e.label),a=void 0===i?null:i,c=e.value,u=void 0===c?null:c,s=(e.callback,e.ids),l=void 0===s?[]:s,f=e.type,d=void 0===f?null:f,v=e.currency,y=void 0===v?null:v;if(this.config.debug&&p.logDebug.apply(void 0,arguments),u){var h=parseInt(u,10);u=isNaN(h)?0:h}var g={content_name:a,content_category:o,content_ids:l,content_type:d,value:u,currency:y};fbq("track",n,g)}}]),t}(f.default);t.default=d},function(e,t,n){"use strict"; | ||
function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=n(6),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_MPARTICLE));return e.superProperties={},e.config,e}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=e;var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),window.mParticle={config:{isDevelopmentMode:e.debug}},function(e){function t(e,t){return function(){t&&(e=t+"."+e);var n=Array.prototype.slice.call(arguments);n.unshift(e),window.mParticle.config.rq.push(n)}}window.mParticle=window.mParticle||{},window.mParticle.eCommerce={Cart:{}},window.mParticle.Identity={},window.mParticle.config=window.mParticle.config||{},window.mParticle.config.rq=[],window.mParticle.ready=function(e){window.mParticle.config.rq.push(e)};var n=["endSession","logError","logEvent","logForm","logLink","logPageView","setSessionAttribute","setAppName","setAppVersion","setOptOut","setPosition","startNewSession","startTrackingLocation","stopTrackingLocation"],r=["setCurrencyCode","logCheckout"],o=["login","logout","modify"];n.forEach(function(e){window.mParticle[e]=t(e)}),r.forEach(function(e){window.mParticle.eCommerce[e]=t(e,"eCommerce")}),o.forEach(function(e){window.mParticle.Identity[e]=t(e,"Identity")});var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=("https:"==document.location.protocol?"https://jssdkcdns":"http://jssdkcdn")+".mparticle.com/js/v2/"+e+"/mparticle.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a)}(e.token)}},{key:"trackView",value:function(e){var t=e.viewName,n=e.properties,r=void 0===n?{}:n,o=e.customFlags,i=void 0===o?{}:o;if(mParticle.logPageView)try{var a=Object.assign(r,this.superProperties);mParticle.logPageView(t,a,i)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"trackEvent",value:function(e){var t=(e.category,e.action),n=e.eventType,r=void 0===n?mParticle.EventType.Other:n,o=(e.label,e.value,e.properties),i=void 0===o?{}:o;e.callback;if(mParticle.logEvent)try{this.config.debug&&f.logDebug.apply(void 0,arguments);var a=Object.assign(i,this.superProperties);mParticle.logEvent(t,r,a)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"ecommerceTrackEvent",value:function(e){var t=e.productActionType,n=void 0===t?mParticle.CommerceEventType.ProductAddToCart:t,r=e.product,o=void 0===r?[]:r,i=e.properties,a=void 0===i?{}:i,c=e.currency,u=void 0===c?void 0:c;if(mParticle.eCommerce)try{this.config.debug&&f.logDebug.apply(void 0,arguments);var s={};Array.isArray(o)||(s=mParticle.eCommerce.createProduct(o.name,o.sku||performance.now(),o.price,o.quantity));var l=Object.assign(a,this.superProperties);u&&mParticle.eCommerce.setCurrencyCode(u),mParticle.eCommerce.logProductAction(n,s,l)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"identify",value:function(e){return new Promise(function(t,n){var r={userIdentities:e};mParticle.Identity.login(r,function(e){200===e.httpCode?t(e):n(e)})})}},{key:"reset",value:function(){return new Promise(function(e,t){mParticle.Identity.logout({},function(n){200===n.httpCode?(console.log(n),e(n)):t(n)})})}},{key:"setUserProperties",value:function(e){return new Promise(function(t,n){var r={userIdentities:e};mParticle.Identity.modify(r,function(e){200===e.httpCode?t(e):n(e)})})}},{key:"setSuperProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.isAuthorized&&(e.isAuthorized=e.isAuthorized?"true":"false"),this.superProperties=e}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=n(6),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_AMPLITUDE))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){function n(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}function r(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}for(var n=0;n<d.length;n++)t(d[n])}var o=e.amplitude||{_q:[],_iq:{}},i=t.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://cdn.amplitude.com/libs/amplitude-4.4.0-min.gz.js",i.onload=function(){e.amplitude.runQueuedFunctions?e.amplitude.runQueuedFunctions():console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a);for(var c=function(){return this._q=[],this},u=["add","append","clearAll","prepend","set","setOnce","unset"],s=0;s<u.length;s++)n(c,u[s]);o.Identify=c;for(var l=function(){return this._q=[],this},f=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],p=0;p<f.length;p++)n(l,f[p]);o.Revenue=l;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];r(o),o.getInstance=function(e){return e=(e&&0!==e.length?e:"$default_instance").toLowerCase(),o._iq.hasOwnProperty(e)||(o._iq[e]={_q:[]},r(o._iq[e])),o._iq[e]},e.amplitude=o}(window,document);var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,amplitude.getInstance().init(e.token)}},{key:"trackView",value:function(e){e.viewName}},{key:"trackEvent",value:function(e){var t=e.action,n=e.properties,r=void 0===n?{}:n;e.callback;this.config.debug&&f.logDebug.apply(void 0,arguments),amplitude.getInstance().logEvent(t,r)}},{key:"setAlias",value:function(e){}},{key:"identify",value:function(e){var t=e.userId;this.config.debug&&(0,f.logDebug)(t),t&&litude.getInstance().setUserId(t)}},{key:"setUsername",value:function(e){this.config.debug&&(0,f.logDebug)(e),amplitude.getInstance().setUserId(e)}},{key:"setUserProperties",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},{key:"setUserPropertiesOnce",value:function(e){}},{key:"incrementUserProperties",value:function(e){}},{key:"setSuperProperties",value:function(e){}},{key:"setSuperPropertiesOnce",value:function(e){}},{key:"reset",value:function(){}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_FULLSTORY))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),window._fs_debug=!1,window._fs_host="fullstory.com",window._fs_org=e.token,window._fs_namespace="fullstory",window._fs_run_in_iframe=e.runInIframe||!1,function(e,t,n,r,o,i,a,c){return n in e?void(e.console&&e.console.log&&e.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].')):(a=e[n]=function(e,t,n){a.q?a.q.push([e,t,n]):a._api(e,t,n)},a.q=[],i=t.createElement(r),i.async=1,i.crossOrigin="anonymous",i.src="https://"+_fs_host+"/s/fs.js",c=t.getElementsByTagName(r)[0],c.parentNode.insertBefore(i,c),a.identify=function(e,t,n){a(o,{uid:e},n),t&&a(o,t,n)},a.setUserVars=function(e,t){a(o,e,t)},a.event=function(e,t,n){a("event",{n:e,p:t},n)},a.shutdown=function(){a("rec",!1)},a.restart=function(){a("rec",!0)},a.log=function(e,t){a("log",[e,t])},a.consent=function(e){a("consent",!arguments.length||e)},a.identifyAccount=function(e,t){i="account",t=t||{},t.acctId=e,a(i,t)},void(a.clearUserCookie=function(){}))}(window,document,window._fs_namespace,"script","user")}},{key:"trackView",value:function(){}},{key:"trackEvent",value:function(){}},{key:"trackException",value:function(){}},{key:"trackTiming",value:function(){}},{key:"setAlias",value:function(){}},{key:"identify",value:function(e){var t=e.userId,n=e.options;fullstory.identify(t,{displayName:n.name,email:n.email})}},{key:"setUsername",value:function(){}},{key:"setUserProperties",value:function(){}},{key:"setUserPropertiesOnce",value:function(){}},{key:"incrementUserProperties",value:function(){}},{key:"setSuperProperties",value:function(){}},{key:"setSuperPropertiesOnce",value:function(){}},{key:"ecommerceTrackEvent",value:function(){}},{key:"addTransaction",value:function(){}},{key:"addItem",value:function(){}},{key:"trackTransaction",value:function(){}},{key:"clearTransactions",value:function(){}},{key:"reset",value:function(){}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_HUBSPOT))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.setAttribute("defer",""),t.src="https://js.hs-scripts.com/"+e.token+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}(),this.config.debug=e.debug}},{key:"trackView",value:function(){}},{key:"trackEvent",value:function(){}},{key:"trackException",value:function(){}},{key:"trackTiming",value:function(){}},{key:"setAlias",value:function(){}},{key:"identify",value:function(e){var t=e.options,n=window._hsq=window._hsq||[];n.push(["identify",{email:t.email}])}},{key:"setUsername",value:function(){}},{key:"setUserProperties",value:function(){}},{key:"setUserPropertiesOnce",value:function(){}},{key:"incrementUserProperties",value:function(){}},{key:"setSuperProperties",value:function(){}},{key:"setSuperPropertiesOnce",value:function(){}},{key:"ecommerceTrackEvent",value:function(){}},{key:"addTransaction",value:function(){}},{key:"addItem",value:function(){}},{key:"trackTransaction",value:function(){}},{key:"clearTransactions",value:function(){}},{key:"reset",value:function(){}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_PRODUCT_STASH))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var t=document.createElement("script");t.text='var ps_config = { productId : "'+e.token+'" };',t.type="text/javascript",t.async=!0;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);var r=document.createElement("script");r.src="https://app.productstash.io/js/productstash-embed.js",r.type="text/javascript",r.async=!0;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(r,o)}(),this.config.debug=e.debug}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_PRODUCT_TOUR))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var t=document.createElement("script");t.text='!function(d,w){var t="'+e.token+'",c="chmln",m="identify alias track clear set show on off custom help _data".split(" "),i=d.createElement("script");if(w[c]||(w[c]={}),!w[c].root){w[c].accountToken=t,w[c].location=w.location.href.toString(),w[c].now=new Date;for(var s=0;s<m.length;s++){!function(){var t=w[c][m[s]+"_a"]=[];w[c][m[s]]=function(){t.push(arguments);};}();}i.src="https://fast.trychameleon.com/messo/"+t+"/messo.min.js",i.async=!0,d.head.appendChild(i);}}(document,window);',t.type="text/javascript",t.async=!0;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}(),this.config.debug=e.debug}},{key:"identify",value:function(e){var t=e.userId,n=e.options;chmln.identify(t,{email:n.email,created:n.createdAt,name:n.name,role:n.role})}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_GTM))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){console.log("[INFO] installing GTM");var t=document.createElement("script");t.text="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','"+e.token+"');",t.type="text/javascript",t.async=!1;var n=document.getElementsByTagName("head")[0];n.appendChild(t)}(),this.config.debug=e.debug}}]),t}(l.default);t.default=f}]); | ||
function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=n(6),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_MPARTICLE));return e.superProperties={},e.config,e}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=e;var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),window.mParticle={config:{isDevelopmentMode:e.debug}},function(e){function t(e,t){return function(){t&&(e=t+"."+e);var n=Array.prototype.slice.call(arguments);n.unshift(e),window.mParticle.config.rq.push(n)}}window.mParticle=window.mParticle||{},window.mParticle.eCommerce={Cart:{}},window.mParticle.Identity={},window.mParticle.config=window.mParticle.config||{},window.mParticle.config.rq=[],window.mParticle.ready=function(e){window.mParticle.config.rq.push(e)};var n=["endSession","logError","logEvent","logForm","logLink","logPageView","setSessionAttribute","setAppName","setAppVersion","setOptOut","setPosition","startNewSession","startTrackingLocation","stopTrackingLocation"],r=["setCurrencyCode","logCheckout"],o=["login","logout","modify"];n.forEach(function(e){window.mParticle[e]=t(e)}),r.forEach(function(e){window.mParticle.eCommerce[e]=t(e,"eCommerce")}),o.forEach(function(e){window.mParticle.Identity[e]=t(e,"Identity")});var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=("https:"==document.location.protocol?"https://jssdkcdns":"http://jssdkcdn")+".mparticle.com/js/v2/"+e+"/mparticle.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a)}(e.token)}},{key:"trackView",value:function(e){var t=e.viewName,n=e.properties,r=void 0===n?{}:n,o=e.customFlags,i=void 0===o?{}:o;if(mParticle.logPageView)try{var a=Object.assign(r,this.superProperties);mParticle.logPageView(t,a,i)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"trackEvent",value:function(e){var t=(e.category,e.action),n=e.eventType,r=void 0===n?mParticle.EventType.Other:n,o=(e.label,e.value,e.properties),i=void 0===o?{}:o;e.callback;if(mParticle.logEvent)try{this.config.debug&&f.logDebug.apply(void 0,arguments);var a=Object.assign(i,this.superProperties);mParticle.logEvent(t,r,a)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"ecommerceTrackEvent",value:function(e){var t=e.productActionType,n=void 0===t?mParticle.CommerceEventType.ProductAddToCart:t,r=e.product,o=void 0===r?[]:r,i=e.properties,a=void 0===i?{}:i,c=e.currency,u=void 0===c?void 0:c;if(mParticle.eCommerce)try{this.config.debug&&f.logDebug.apply(void 0,arguments);var s={};Array.isArray(o)||(s=mParticle.eCommerce.createProduct(o.name,o.sku||performance.now(),o.price,o.quantity));var l=Object.assign(a,this.superProperties);u&&mParticle.eCommerce.setCurrencyCode(u),mParticle.eCommerce.logProductAction(n,s,l)}catch(e){if(!(e instanceof ReferenceError))throw e}}},{key:"identify",value:function(e){return new Promise(function(t,n){var r={userIdentities:e};mParticle.Identity.login(r,function(e){200===e.httpCode?t(e):n(e)})})}},{key:"reset",value:function(){return new Promise(function(e,t){mParticle.Identity.logout({},function(n){200===n.httpCode?(console.log(n),e(n)):t(n)})})}},{key:"setUserProperties",value:function(e){return new Promise(function(t,n){var r={userIdentities:e};mParticle.Identity.modify(r,function(e){200===e.httpCode?t(e):n(e)})})}},{key:"setSuperProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.isAuthorized&&(e.isAuthorized=e.isAuthorized?"true":"false"),this.superProperties=e}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=n(6),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_AMPLITUDE))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){function n(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}function r(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}for(var n=0;n<d.length;n++)t(d[n])}var o=e.amplitude||{_q:[],_iq:{}},i=t.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://cdn.amplitude.com/libs/amplitude-4.4.0-min.gz.js",i.onload=function(){e.amplitude.runQueuedFunctions?e.amplitude.runQueuedFunctions():console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(i,a);for(var c=function(){return this._q=[],this},u=["add","append","clearAll","prepend","set","setOnce","unset"],s=0;s<u.length;s++)n(c,u[s]);o.Identify=c;for(var l=function(){return this._q=[],this},f=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],p=0;p<f.length;p++)n(l,f[p]);o.Revenue=l;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];r(o),o.getInstance=function(e){return e=(e&&0!==e.length?e:"$default_instance").toLowerCase(),o._iq.hasOwnProperty(e)||(o._iq[e]={_q:[]},r(o._iq[e])),o._iq[e]},e.amplitude=o}(window,document);var t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueMultianalytics : Please provide a "'+t+'" from the config.')}),this.config.debug=e.debug,amplitude.getInstance().init(e.token)}},{key:"trackView",value:function(e){e.viewName}},{key:"trackEvent",value:function(e){var t=e.action,n=e.properties,r=void 0===n?{}:n;e.callback;this.config.debug&&f.logDebug.apply(void 0,arguments),amplitude.getInstance().logEvent(t,r)}},{key:"setAlias",value:function(e){}},{key:"identify",value:function(e){var t=e.userId;this.config.debug&&(0,f.logDebug)(t),t&&litude.getInstance().setUserId(t)}},{key:"setUsername",value:function(e){this.config.debug&&(0,f.logDebug)(e),amplitude.getInstance().setUserId(e)}},{key:"setUserProperties",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},{key:"setUserPropertiesOnce",value:function(e){}},{key:"incrementUserProperties",value:function(e){}},{key:"setSuperProperties",value:function(e){}},{key:"setSuperPropertiesOnce",value:function(e){}},{key:"reset",value:function(){}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_FULLSTORY))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["token"];t.forEach(function(t){if(!e[t])throw new Error('VueAnalytics : Please provide a "'+t+'" from the config.')}),window._fs_debug=!1,window._fs_host="fullstory.com",window._fs_org=e.token,window._fs_namespace="fullstory",window._fs_run_in_iframe=e.runInIframe||!1,function(e,t,n,r,o,i,a,c){return n in e?void(e.console&&e.console.log&&e.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].')):(a=e[n]=function(e,t,n){a.q?a.q.push([e,t,n]):a._api(e,t,n)},a.q=[],i=t.createElement(r),i.async=1,i.crossOrigin="anonymous",i.src="https://"+_fs_host+"/s/fs.js",c=t.getElementsByTagName(r)[0],c.parentNode.insertBefore(i,c),a.identify=function(e,t,n){a(o,{uid:e},n),t&&a(o,t,n)},a.setUserVars=function(e,t){a(o,e,t)},a.event=function(e,t,n){a("event",{n:e,p:t},n)},a.shutdown=function(){a("rec",!1)},a.restart=function(){a("rec",!0)},a.log=function(e,t){a("log",[e,t])},a.consent=function(e){a("consent",!arguments.length||e)},a.identifyAccount=function(e,t){i="account",t=t||{},t.acctId=e,a(i,t)},void(a.clearUserCookie=function(){}))}(window,document,window._fs_namespace,"script","user")}},{key:"trackView",value:function(){}},{key:"trackEvent",value:function(){}},{key:"trackException",value:function(){}},{key:"trackTiming",value:function(){}},{key:"setAlias",value:function(){}},{key:"identify",value:function(e){var t=e.userId,n=e.options;fullstory.identify(t,{displayName:n.name,email:n.email})}},{key:"setUsername",value:function(){}},{key:"setUserProperties",value:function(){}},{key:"setUserPropertiesOnce",value:function(){}},{key:"incrementUserProperties",value:function(){}},{key:"setSuperProperties",value:function(){}},{key:"setSuperPropertiesOnce",value:function(){}},{key:"ecommerceTrackEvent",value:function(){}},{key:"addTransaction",value:function(){}},{key:"addItem",value:function(){}},{key:"trackTransaction",value:function(){}},{key:"clearTransactions",value:function(){}},{key:"reset",value:function(){}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_HUBSPOT))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.setAttribute("defer",""),t.src="https://js.hs-scripts.com/"+e.token+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}(),this.config.debug=e.debug}},{key:"trackView",value:function(){}},{key:"trackEvent",value:function(){}},{key:"trackException",value:function(){}},{key:"trackTiming",value:function(){}},{key:"setAlias",value:function(){}},{key:"identify",value:function(e){var t=e.options,n=window._hsq=window._hsq||[];n.push(["identify",{email:t.email}])}},{key:"setUsername",value:function(){}},{key:"setUserProperties",value:function(){}},{key:"setUserPropertiesOnce",value:function(){}},{key:"incrementUserProperties",value:function(){}},{key:"setSuperProperties",value:function(){}},{key:"setSuperPropertiesOnce",value:function(){}},{key:"ecommerceTrackEvent",value:function(){}},{key:"addTransaction",value:function(){}},{key:"addItem",value:function(){}},{key:"trackTransaction",value:function(){}},{key:"clearTransactions",value:function(){}},{key:"reset",value:function(){}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_PRODUCT_STASH))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var t=document.createElement("script");t.text='var ps_config = { productId : "'+e.token+'" };',t.type="text/javascript",t.async=!0;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);var r=document.createElement("script");r.src="https://app.productstash.io/js/productstash-embed.js",r.type="text/javascript",r.async=!0;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(r,o)}(),this.config.debug=e.debug}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_PRODUCT_TOUR))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var t=document.createElement("script");t.text='!function(d,w){var t="'+e.token+'",c="chmln",m="identify alias track clear set show on off custom help _data".split(" "),i=d.createElement("script");if(w[c]||(w[c]={}),!w[c].root){w[c].accountToken=t,w[c].location=w.location.href.toString(),w[c].now=new Date;for(var s=0;s<m.length;s++){!function(){var t=w[c][m[s]+"_a"]=[];w[c][m[s]]=function(){t.push(arguments);};}();}i.src="https://fast.trychameleon.com/messo/"+t+"/messo.min.js",i.async=!0,d.head.appendChild(i);}}(document,window);',t.type="text/javascript",t.async=!0;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}(),this.config.debug=e.debug}},{key:"identify",value:function(e){var t=e.userId,n=e.options;chmln.identify(t,{email:n.email,created:n.createdAt,name:n.name,role:n.role})}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(4),s=n(5),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,u.MODULE_GTM))}return a(t,e),c(t,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(){var t=document.createElement("script");t.text="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','"+e.token+"');",t.type="text/javascript",t.async=!1;var n=document.getElementsByTagName("head")[0];n.appendChild(t)}(),this.config.debug=e.debug}}]),t}(l.default);t.default=f}]); |
{ | ||
"name": "@withyouwithme/vue-multianalytics", | ||
"version": "1.10.2", | ||
"version": "1.10.3", | ||
"description": "A vue multianalytics tool", | ||
@@ -5,0 +5,0 @@ "main": "./dist/vue-multianalytics.min.js", |
@@ -13,3 +13,2 @@ import { MODULE_GTM } from '../analyticsTypes' | ||
(function () { | ||
console.log("[INFO] installing GTM"); | ||
var headScript = document.createElement("script"); | ||
@@ -16,0 +15,0 @@ headScript.text = `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1044421
29163