/*! For license information please see amped.snippet.LICENSE.txt */ "use strict";(self.webpackChunkamped_snippet=self.webpackChunkamped_snippet||[]).push([[341],{341:(e,n,t)=>{t.r(n),t.d(n,{ElevarService:()=>o});var a,r,i=t(7743),s=t(5837);!function(e){e.DL_SUBSCRIBE="dl_subscribe"}(a||(a={})),function(e){e.EMAIL="email",e.PHONE="phone"}(r||(r={}));var o=function(){function e(e){var n=e.eventBusService;this.eventBusService=n,this.installListeners()}return e.prototype.installListeners=function(){var e=this;this.eventBusService.on(s.tw.VARIATION_SUBMIT,(function(n){n.disabledIntegrations.includes(i.WN.ELEVAR)||(n.data.email&&e.sendElevarEvent(a.DL_SUBSCRIBE,r.EMAIL,n.data.email),(n.data.phone||n.data.phone_number)&&e.sendElevarEvent(a.DL_SUBSCRIBE,r.PHONE,n.data.phone||n.data.phone_number))}),s.bs.THIS_CONTEXT)},e.prototype.sendElevarEvent=function(e,n,t){var a,i;window.ElevarDataLayer=null!==(a=window.ElevarDataLayer)&&void 0!==a?a:[],i=n===r.EMAIL?{customer_email:t}:{customer_phone:t},window.ElevarDataLayer.push({event:e,lead_type:n,user_properties:i})},e}()}}]);