@withyouwithme/vue-multianalytics
Advanced tools
Comparing version 1.9.9 to 1.9.10
@@ -0,0 +0,0 @@ import Vue from 'vue/dist/vue.js' |
@@ -0,0 +0,0 @@ export default function (multianalytics) { |
@@ -0,0 +0,0 @@ import Vue from 'vue/dist/vue.js' |
@@ -0,0 +0,0 @@ export default function (multianalytics) { |
@@ -0,0 +0,0 @@ import Vue from 'vue/dist/vue.js' |
@@ -1,2 +0,2 @@ | ||
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(2),u=o(c),s=n(6),l=o(s),f=n(7),p=o(f),d=n(8),v=o(d),y=n(9),g=o(y),m=n(10),h=o(m),b=n(11),k=o(b),w=n(5),_=(r(w),n(3)),E=r(_),P={},O=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 E.MODULE_GA:o=new u.default,o.init(t.modules[r]);break;case E.MODULE_MIXPANEL:o=new l.default,o.init(t.modules[r]);break;case E.MODULE_SEGMENT:o=new p.default,o.init(t.modules[r]);break;case E.MODULE_FACEBOOK:o=new v.default,o.init(t.modules[r]);break;case E.MODULE_MPARTICLE:o=new g.default,o.init(t.modules[r]);break;case E.MODULE_AMPLITUDE:o=new h.default,o.init(t.modules[r]);break;case E.MODULE_FULLSTORY:o=new k.default,o.init(t.modules[r])}o&&e.modulesEnabled.push(o)}Object.keys(P).length>0&&Object.values(P).forEach(function(n,r){var o=new n;o.init(t.modules[Object.keys(P)[r]]),e.modulesEnabled.push(o)}),t.routing&&t.routing.vueRouter&&j(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))},x=function(e,t){P[e]=t},j=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:O,addCustomModule:x}},function(e,t){"use strict";function n(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 r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),i=function(){function e(t){r(this,e),this.modulesEnabled=t}return o(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=n(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=n(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=n(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=n(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=i},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(3),s=n(4),l=r(s),f=n(5),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"},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(3),s=n(4),l=r(s),f=n(5),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(3),s=n(4),l=r(s),f=n(5),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(3),l=n(4),f=r(l),p=n(5),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 g=parseInt(u,10);u=isNaN(g)?0:g}var m={content_name:a,content_category:o,content_ids:l,content_type:d,value:u,currency:y};fbq("track",n,m)}}]),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(3),s=n(4),l=r(s),f=n(5),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(3),s=n(4),l=r(s),f=n(5),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(3),s=n(4),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",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}]); | ||
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),u=n(2),c=o(u),s=n(6),l=o(s),f=n(7),p=o(f),d=n(8),v=o(d),y=n(9),g=o(y),m=n(10),h=o(m),b=n(11),k=o(b),w=n(12),_=o(w),E=n(5),P=(r(E),n(3)),O=r(P),j={},x=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 O.MODULE_GA:o=new c.default,o.init(t.modules[r]);break;case O.MODULE_MIXPANEL:o=new l.default,o.init(t.modules[r]);break;case O.MODULE_SEGMENT:o=new p.default,o.init(t.modules[r]);break;case O.MODULE_FACEBOOK:o=new v.default,o.init(t.modules[r]);break;case O.MODULE_MPARTICLE:o=new g.default,o.init(t.modules[r]);break;case O.MODULE_AMPLITUDE:o=new h.default,o.init(t.modules[r]);break;case O.MODULE_FULLSTORY:o=new k.default,o.init(t.modules[r]);break;case O.MODULE_HUBSPOT:o=new _.default,o.init(t.modules[r])}o&&e.modulesEnabled.push(o)}Object.keys(j).length>0&&Object.values(j).forEach(function(n,r){var o=new n;o.init(t.modules[Object.keys(j)[r]]),e.modulesEnabled.push(o)}),t.routing&&t.routing.vueRouter&&U(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))},T=function(e,t){j[e]=t},U=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:x,addCustomModule:T}},function(e,t){"use strict";function n(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),u=a.value}catch(e){return void n(e)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),i=function(){function e(t){r(this,e),this.modulesEnabled=t}return o(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=n(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=n(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=n(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=n(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=i},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 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}}(),c=n(3),s=n(4),l=r(s),f=n(5),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.MODULE_GA));return e.settings={additionalAccountNames:[],userId:null},e}return a(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.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,u=void 0===a?null:a,c=e.callback,s=void 0===c?null:c;if(this.config.debug&&f.logDebug.apply(void 0,arguments),u){var l=parseInt(u,10);u=isNaN(l)?0:l}var p={hitType:"event",eventCategory:n,eventAction:r,eventLabel:i,eventValue:u,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,u=void 0===a?0:a,c=e.tax,s=void 0===c?0:c,l=e.currency,f=void 0===l?"USD":l;ga("ecommerce:addTransaction",{id:t,affiliation:r,revenue:i,shipping:u,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,u=e.quantity,c=void 0===u?1:u;ga("ecommerce:addItem",{id:t,name:n,sku:r,category:o,price:a,quantity:c})}},{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"},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 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}}(),c=n(3),s=n(4),l=r(s),f=n(5),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.MODULE_MIXPANEL))}return a(t,e),u(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,u=a.hash;r=function(e,t){return(o=e.match(RegExp(t+"=([^&]*)")))?o[1]:null},u&&r(u,"state")&&(i=JSON.parse(decodeURIComponent(r(u,"state"))),"mpeditor"===i.action&&(n.sessionStorage.setItem("_mpcehash",u),history.replaceState(i.desiredHash||"",e.title,a.pathname+a.search)))}catch(e){}var c,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)"},c="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<c.length;s++)o(i,c[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 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}}(),c=n(3),s=n(4),l=r(s),f=n(5),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.MODULE_SEGMENT));return e.superProperties={},e}return a(t,e),u(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 u(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}}(),s=n(3),l=n(4),f=r(l),p=n(5),d=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s.MODULE_FACEBOOK))}return u(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.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,u=e.value,c=void 0===u?null:u,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),c){var g=parseInt(c,10);c=isNaN(g)?0:g}var m={content_name:a,content_category:o,content_ids:l,content_type:d,value:c,currency:y};fbq("track",n,m)}}]),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 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}}(),c=n(3),s=n(4),l=r(s),f=n(5),p=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.MODULE_MPARTICLE));return e.superProperties={},e.config,e}return a(t,e),u(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,u=e.currency,c=void 0===u?void 0:u;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);c&&mParticle.eCommerce.setCurrencyCode(c),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 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}}(),c=n(3),s=n(4),l=r(s),f=n(5),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.MODULE_AMPLITUDE))}return a(t,e),u(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 u=function(){return this._q=[],this},c=["add","append","clearAll","prepend","set","setOnce","unset"],s=0;s<c.length;s++)n(u,c[s]);o.Identify=u;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 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}}(),c=n(3),s=n(4),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.MODULE_FULLSTORY))}return a(t,e),u(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",function(e,t,n,r,o,i,a,u){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",u=t.getElementsByTagName(r)[0],u.parentNode.insertBefore(i,u),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 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}}(),c=n(3),s=n(4),l=r(s),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c.MODULE_HUBSPOT))}return a(t,e),u(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(){}},{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}]); |
{ | ||
"name": "@withyouwithme/vue-multianalytics", | ||
"version": "1.9.9", | ||
"version": "1.9.10", | ||
"description": "A vue multianalytics tool", | ||
@@ -5,0 +5,0 @@ "main": "./dist/vue-multianalytics.min.js", |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ /** |
@@ -7,2 +7,3 @@ export const MODULE_GA = 'ga' | ||
export const MODULE_AMPLITUDE = 'amplitude' | ||
export const MODULE_FULLSTORY = 'fullstory' | ||
export const MODULE_FULLSTORY = 'fullstory' | ||
export const MODULE_HUBSPOT = 'hubspot' |
@@ -9,2 +9,3 @@ import AnalyticsPlugin from './AnalyticsPlugin' | ||
import FullstoryModule from './modules/FullstoryModule' | ||
import HubspotModule from './modules/HubspotModule' | ||
import * as Utils from './utils' | ||
@@ -58,2 +59,6 @@ import * as types from './analyticsTypes' | ||
break; | ||
case types.MODULE_HUBSPOT: | ||
module = new HubspotModule() | ||
module.init(initConf.modules[key]) | ||
break; | ||
default: | ||
@@ -60,0 +65,0 @@ break; |
@@ -0,0 +0,0 @@ import { MODULE_AMPLITUDE } from '../analyticsTypes' |
@@ -0,0 +0,0 @@ export default class BasicModule { |
@@ -0,0 +0,0 @@ import { MODULE_FACEBOOK } from '../analyticsTypes' |
@@ -0,0 +0,0 @@ import { MODULE_FULLSTORY } from '../analyticsTypes' |
@@ -0,0 +0,0 @@ import { MODULE_GA } from '../analyticsTypes' |
@@ -0,0 +0,0 @@ import { MODULE_MIXPANEL } from '../analyticsTypes' |
@@ -0,0 +0,0 @@ import { MODULE_MPARTICLE } from '../analyticsTypes' |
@@ -0,0 +0,0 @@ import { MODULE_SEGMENT } from '../analyticsTypes' |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ var path = require('path') |
@@ -0,0 +0,0 @@ var path = require('path') |
@@ -0,0 +0,0 @@ var path = require('path') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
34
28251
1081779