/*! For license information please see amped.snippet.LICENSE.txt */ "use strict";(self.webpackChunkamped_snippet=self.webpackChunkamped_snippet||[]).push([[97],{3097:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};const i={identify:function(e,t){var n,i,o=window,a=o.klaviyo||o._learnq||[];e=e||{},t=t||{};try{for(var f=r(["email","phone_number","first_name","last_name"]),l=f.next();!l.done;l=f.next()){var c=l.value;if(e[c]){if("phone_number"===c){if(""!==e[c].trim()){var u=e[c].replace(/(^\+)|\D+/g,"$1");10!==u.length||u.startsWith("+")?11===u.length&&u.startsWith("1")&&(u="+".concat(u)):u="+1".concat(u),e.$phone_number=u}}else e["$".concat(c)]=e[c];delete e[c]}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}Object.keys(e).length>0&&a.identify&&"function"==typeof a.identify&&a.identify(e,void 0,void 0,(function(){a.track&&"function"==typeof a.track&&(e.$email&&a.track("Opted in for Email through Amped.io",t),e.$phone_number&&a.track("Opted in for SMS through Amped.io",t))}))}}}}]);