265 lines
183 KiB
JavaScript
265 lines
183 KiB
JavaScript
/*
|
|
* Braze Web SDK v3.2.0
|
|
* (c) Braze, Inc. 2021 - http://braze.com
|
|
* License available at https://github.com/Appboy/appboy-web-sdk/blob/master/LICENSE
|
|
* Compiled on 2021-02-25
|
|
*/
|
|
(function(){(function(b,a){if("function"===typeof define&&define.amd)define([],a);else if("object"===typeof module&&module.exports){var e = a();module.exports=e;module.exports.default=e}else if(b.appboy){var d=a(),c;for(c in d)b.appboy[c]=d[c]}else b.appboy=a()})("undefined"!==typeof self?self:this,function(){var appboyInterface={};var q;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}var ca="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},da="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
|
|
function ea(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ha=ea(this);function ia(a,b){if(b)a:{var c=ha;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&da(c,a,{configurable:!0,writable:!0,value:b})}}var ja;
|
|
if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={Wf:!0},ma={};try{ma.__proto__=la;ka=ma.Wf;break a}catch(a){}ka=!1}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=ja;
|
|
function oa(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.fh=b.prototype}
|
|
ia("String.prototype.repeat",function(a){return a?a:function(b){if(null==this)throw new TypeError("The 'this' value for String.prototype.repeat must not be null or undefined");var c=this+"";if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
|
|
ia("Promise",function(a){function b(f){this.Jb=0;this.Cd=void 0;this.nb=[];var h=this.jd();try{f(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.Ea=null}function d(f){return f instanceof b?f:new b(function(h){h(f)})}if(a)return a;c.prototype.te=function(f){if(null==this.Ea){this.Ea=[];var h=this;this.ue(function(){h.hg()})}this.Ea.push(f)};var e=ha.setTimeout;c.prototype.ue=function(f){e(f,0)};c.prototype.hg=function(){for(;this.Ea&&this.Ea.length;){var f=this.Ea;this.Ea=[];for(var h=
|
|
0;h<f.length;++h){var l=f[h];f[h]=null;try{l()}catch(k){this.Zf(k)}}}this.Ea=null};c.prototype.Zf=function(f){this.ue(function(){throw f;})};b.prototype.jd=function(){function f(k){return function(m){l||(l=!0,k.call(h,m))}}var h=this,l=!1;return{resolve:f(this.ug),reject:f(this.Bd)}};b.prototype.ug=function(f){if(f===this)this.Bd(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof b)this.Jg(f);else{a:switch(typeof f){case "object":var h=null!=f;break a;case "function":h=!0;break a;
|
|
default:h=!1}h?this.tg(f):this.Fe(f)}};b.prototype.tg=function(f){var h=void 0;try{h=f.then}catch(l){this.Bd(l);return}"function"==typeof h?this.Kg(h,f):this.Fe(f)};b.prototype.Bd=function(f){this.Oe(2,f)};b.prototype.Fe=function(f){this.Oe(1,f)};b.prototype.Oe=function(f,h){if(0!=this.Jb)throw Error("Cannot settle("+f+", "+h+"): Promise already settled in state"+this.Jb);this.Jb=f;this.Cd=h;this.ig()};b.prototype.ig=function(){if(null!=this.nb){for(var f=0;f<this.nb.length;++f)g.te(this.nb[f]);this.nb=
|
|
null}};var g=new c;b.prototype.Jg=function(f){var h=this.jd();f.sc(h.resolve,h.reject)};b.prototype.Kg=function(f,h){var l=this.jd();try{f.call(h,l.resolve,l.reject)}catch(k){l.reject(k)}};b.prototype.then=function(f,h){function l(t,r){return"function"==typeof t?function(v){try{k(t(v))}catch(B){m(B)}}:r}var k,m,n=new b(function(t,r){k=t;m=r});this.sc(l(f,k),l(h,m));return n};b.prototype.catch=function(f){return this.then(void 0,f)};b.prototype.sc=function(f,h){function l(){switch(k.Jb){case 1:f(k.Cd);
|
|
break;case 2:h(k.Cd);break;default:throw Error("Unexpected state: "+k.Jb);}}var k=this;null==this.nb?g.te(l):this.nb.push(l)};b.resolve=d;b.reject=function(f){return new b(function(h,l){l(f)})};b.race=function(f){return new b(function(h,l){for(var k=ba(f),m=k.next();!m.done;m=k.next())d(m.value).sc(h,l)})};b.all=function(f){var h=ba(f),l=h.next();return l.done?d([]):new b(function(k,m){function n(v){return function(B){t[v]=B;r--;0==r&&k(t)}}var t=[],r=0;do t.push(void 0),r++,d(l.value).sc(n(t.length-
|
|
1),m),l=h.next();while(!l.done)})};return b});var pa={Ug:function(a){var b="=".repeat((4-a.length%4)%4);a=(a+b).replace(/\-/g,"+").replace(/_/g,"/");a=atob(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}};var qa={$a:function(){function a(b){var c=(Math.random().toString(16)+"000000000").substr(2,8);return b?"-"+c.substr(0,4)+"-"+c.substr(4,4):c}return a()+a(!0)+a(!0)+a()}};function ra(a){var b=w;this.le="undefined"===typeof window?self:window;this.C=a;this.F=b}function sa(a){if("indexedDB"in a.le)return a.le.indexedDB}
|
|
function ua(a){try{if(null==sa(a))return!1;sa(a).open("Braze IndexedDB Support Test");if("undefined"!==typeof window){var b=window.ah||window.Va||window.dh;if(b&&b.wg&&b.wg.id)return a.F.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}catch(c){return a.F.info("Not using IndexedDB for storage due to following error: "+c),!1}}
|
|
function va(a,b,c){var d=sa(a).open(a.C.P,a.C.VERSION);if(null==d)return"function"===typeof c&&c(),!1;d.onupgradeneeded=function(e){a.F.info("Upgrading indexedDB "+a.C.P+" to v"+a.C.VERSION+"...");e=e.target.result;for(var g in a.C.M)a.C.M.hasOwnProperty(g)&&!e.objectStoreNames.contains(a.C.M[g])&&e.createObjectStore(a.C.M[g])};d.onsuccess=function(e){var g=e.target.result;g.onversionchange=function(){g.close();"function"===typeof c&&c();a.F.error("Needed to close the database unexpectedly because of an upgrade in another tab")};
|
|
b(g)};d.onerror=function(e){a.F.info("Could not open indexedDB "+a.C.P+" v"+a.C.VERSION+": "+e.target.errorCode);"function"===typeof c&&c();return!0};return!0}
|
|
ra.prototype.setItem=function(a,b,c,d,e){if(!ua(this))return"function"===typeof e&&e(),!1;var g=this;return va(this,function(f){f.objectStoreNames.contains(a)?(f=f.transaction([a],"readwrite").objectStore(a).put(c,b),f.onerror=function(){g.F.error("Could not store object "+b+" in "+a+" on indexedDB "+g.C.P);"function"===typeof e&&e()},f.onsuccess=function(){"function"===typeof d&&d()}):(g.F.error("Could not store object "+b+" in "+a+" on indexedDB "+g.C.P+" - "+a+" is not a valid objectStore"),"function"===
|
|
typeof e&&e())},e)};ra.prototype.getItem=function(a,b,c){if(!ua(this))return!1;var d=this;return va(this,function(e){e.objectStoreNames.contains(a)?(e=e.transaction([a],"readonly").objectStore(a).get(b),e.onerror=function(){d.F.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P)},e.onsuccess=function(g){g=g.target.result;null!=g&&c(g)}):d.F.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P+" - "+a+" is not a valid objectStore")})};
|
|
function wa(a,b,c,d){ua(a)?va(a,function(e){e.objectStoreNames.contains(b)?(e=e.transaction([b],"readonly").objectStore(b).openCursor(null,"prev"),e.onerror=function(){a.F.error("Could not open cursor for "+b+" on indexedDB "+a.C.P);"function"===typeof d&&d()},e.onsuccess=function(g){g=g.target.result;null!=g&&null!=g.value&&null!=g.key?c(g.key,g.value):"function"===typeof d&&d()}):(a.F.error("Could not retrieve last record from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore"),"function"===
|
|
typeof d&&d())},d):"function"===typeof d&&d()}function xa(a,b,c){ua(a)&&va(a,function(d){d.objectStoreNames.contains(b)?d.transaction([b],"readwrite").objectStore(b)["delete"](c).onerror=function(){a.F.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P)}:a.F.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore")})}
|
|
function ya(a,b,c){ua(a)&&va(a,function(d){if(d.objectStoreNames.contains(b)){var e=d.transaction([b],"readwrite").objectStore(b);d=e.openCursor();var g=[];d.onerror=function(){0<g.length?(a.F.info("Cursor closed midway through for "+b+" on indexedDB "+a.C.P),c(g)):a.F.error("Could not open cursor for "+b+" on indexedDB "+a.C.P)};d.onsuccess=function(f){var h=f.target.result;null!=h?(null!=h.value&&null!=h.key&&(e["delete"](h.key).onsuccess=function(){g.push(h.value)}),h.continue()):0<g.length&&c(g)}}else a.F.error("Could not retrieve objects from "+
|
|
b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore")})}
|
|
ra.prototype.clearData=function(){if(!ua(this))return!1;var a=[],b;for(b in this.C.M)this.C.M.hasOwnProperty(b)&&this.C.M[b]!==this.C.M.Qc&&a.push(this.C.M[b]);var c=this;return va(this,function(d){d=d.transaction(a,"readwrite");for(var e=0;e<a.length;e++)d.objectStore(a[e]).clear().onerror=function(){c.F.error("Could not clear "+this.source.name+" on indexedDB "+c.C.P)};d.onerror=function(){c.F.error("Could not clear object stores on indexedDB "+c.C.P)}})};var za={rd:function(a){if(void 0!==a||void 0===za.Ta)za.Ta=!!a;za.ge||(za.ge=!0)},zb:function(){za.ge=!1;za.Ta=void 0;za.F=void 0},Ed:function(a){"function"!==typeof a?za.info("Ignoring setLogger call since logger is not a function"):(za.rd(),za.F=a)},Id:function(){za.rd();za.Ta?(console.log("Disabling Appboy logging"),za.Ta=!1):(console.log("Enabled Appboy logging"),za.Ta=!0)},info:function(a){za.Ta&&(a="Appboy: "+a,null!=za.F?za.F(a):console.log(a))},error:function(a){za.Ta&&(a="Appboy SDK Error: "+
|
|
a+" (v3.2.0)",null!=za.F?za.F(a):console.error(a))}};var x={CustomEvent:"ce",xf:"p",Gf:"pc",Zg:"ca",yf:"i",Kc:"ie",ef:"cci",gf:"ccic",cf:"ccc",df:"ccd",Wd:"ss",If:"se",wf:"si",Qd:"sc",Pd:"sbc",vf:"sfe",hf:"iec",Ef:"lr",Ze:"uae",bf:"ci",af:"cc",Cf:"lcaa",Df:"lcar",kf:"inc",jf:"add",lf:"rem",mf:"set"},Aa={uf:"feed_displayed",ff:"content_cards_displayed"},Ba={Pa:{P:"AppboyServiceWorkerAsyncStorage",VERSION:5,M:{nf:"data",Td:"pushClicks",Sc:"pushSubscribed",Xg:"fallbackDevice",$e:"cardUpdates",Qc:"optOut"},ac:1}},w=za;function Ca(a,b,c,d){a=Da(a);return-1===a.indexOf(b)?(w.error(c+" Valid values from "+d+' are "'+a.join('"/"')+'".'),!1):!0}function Ea(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function Fa(a){return"[object Date]"===Object.prototype.toString.call(a)}
|
|
function Ga(a){null==a&&(a=[]);for(var b=[],c=arguments.length,d=0,e=a.length;d<e;d++){var g=a[d];if(-1===b.indexOf(g)){var f;for(f=1;f<c&&-1!==arguments[f].indexOf(g);f++);f===c&&b.push(g)}}return b}function Ha(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b}function Da(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&void 0!==a[c]&&b.push(a[c]);return b}
|
|
function Ia(a,b){if(a===b)return 0!==a||1/a===1/b;if(null==a||null==b)return a===b;var c=a.toString();if(c!==b.toString())return!1;switch(c){case "[object RegExp]":case "[object String]":return""+a===""+b;case "[object Number]":return+a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case "[object Date]":case "[object Boolean]":return+a===+b}c="[object Array]"===c;if(!c){if("object"!==typeof a||"object"!==typeof b)return!1;var d=a.constructor,e=b.constructor;if(d!==e&&!("function"===typeof d&&d instanceof
|
|
d&&"function"===typeof e&&e instanceof e)&&"constructor"in a&&"constructor"in b)return!1}d=[];e=[];for(var g=d.length;g--;)if(d[g]===a)return e[g]===b;d.push(a);e.push(b);if(c){g=a.length;if(g!==b.length)return!1;for(;g--;)if(!Ia(a[g],b[g]))return!1}else{c=Ha(a);g=c.length;if(Ha(b).length!==g)return!1;for(;g--;){var f=c[g];if(!b.hasOwnProperty(f)||!Ia(a[f],b[f]))return!1}}d.pop();e.pop();return!0};function Ja(a,b){a/=1E3;b&&(a=Math.floor(a));return a}function Ka(a){var b=parseInt(a);return null==a||isNaN(b)?null:new Date(1E3*b)}function La(a){return null!=a&&Fa(a)?a.toISOString().replace(/\.[0-9]{3}Z$/,""):a}function Ma(a){return null==a||""===a?null:new Date(a)};function A(a,b,c,d,e){this.Lb=a;this.type=b;this.time=null==c||""===c?(new Date).valueOf():c;this.sessionId=d;this.data=e}A.prototype.rc=function(){var a={name:this.type,time:Ja(this.time),data:this.data||{},session_id:this.sessionId};null!=this.Lb&&(a.user_id=this.Lb);return a};A.prototype.A=function(){return{u:this.Lb,t:this.type,ts:this.time,s:this.sessionId,d:this.data}};function Na(a){return null!=a&&"[object Object]"===Object.prototype.toString.call(a)&&null!=a.t&&""!==a.t}
|
|
function Oa(a){return new A(a.u,a.t,a.ts,a.s,a.d)};function Pa(a,b,c){null==a&&(a=qa.$a());c=parseInt(c);if(isNaN(c)||0===c)c=(new Date).valueOf();this.ga=a;this.yb=c;this.Db=(new Date).valueOf();this.md=b}Pa.prototype.A=function(){return{g:this.ga,e:this.md,c:this.yb,l:this.Db}};function Qa(a,b,c,d){(d="string"===typeof a||null===a&&d)||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}function Ra(a,b,c){var d=null!=a&&"string"===typeof a&&(""===a||a.match(Sa));d||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}var Sa=/^[^\x00-\x1F\x22]+$/,Ua=new RegExp(/^.+@.+\..+$/);var D={};function H(a,b){this.f=a;this.H=b}q=H.prototype;q.o=function(a){null==a&&w.error("getUserId must be supplied with a callback. e.g., appboy.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})");"function"===typeof a&&a(this.f.o())};
|
|
q.Xf=function(a,b){if(!Qa(a,"add alias","the alias",!1)||0>=a.length)return w.error("addAlias requires a non-empty alias"),!1;if(!Qa(b,"add alias","the label",!1)||0>=b.length)return w.error("addAlias requires a non-empty label"),!1;var c=this.H,d=new Va,e=Wa(c.D),g=x.Ze;d.j.push(new A(c.f.o(),g,(new Date).valueOf(),e,{a:a,l:b}));d.h=J(c.b,d.j);return d.h};q.Dg=function(a){return Qa(a,"set first name","the firstName",!0)?M(this.f,"first_name",a):!1};
|
|
q.Hg=function(a){return Qa(a,"set last name","the lastName",!0)?M(this.f,"last_name",a):!1};q.Bg=function(a){return null===a||"string"===typeof a&&null!=a.toLowerCase().match(Ua)?M(this.f,"email",a):(w.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};q.Eg=function(a){"string"===typeof a&&(a=a.toLowerCase());return null===a||Ca(Xa,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?M(this.f,"gender",a):!1};
|
|
q.Ag=function(a,b,c){if(null===a&&null===b&&null===c)return M(this.f,"dob",null);a=parseInt(a);b=parseInt(b);c=parseInt(c);return isNaN(a)||isNaN(b)||isNaN(c)||12<b||1>b||31<c||1>c?(w.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):M(this.f,"dob",""+a+"-"+b+"-"+c)};q.yg=function(a){return Qa(a,"set country","the country",!0)?M(this.f,"country",a):!1};
|
|
q.Fg=function(a){return Qa(a,"set home city","the homeCity",!0)?M(this.f,"home_city",a):!1};q.Gg=function(a){return Qa(a,"set language","the language",!0)?M(this.f,"language",a):!1};q.Cg=function(a){return Ca(Ya,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?M(this.f,"email_subscribe",a):!1};
|
|
q.Fd=function(a){return Ca(Ya,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?M(this.f,"push_subscribe",a):!1};q.Ig=function(a){return Qa(a,"set phone number","the phoneNumber",!0)?null===a||a.match(Za)?M(this.f,"phone",a):(w.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};q.xg=function(a){return M(this.f,"image_url",a)};
|
|
q.Ec=function(a,b,c,d,e){if(null==a||null==b)return w.error("Cannot set last-known location - latitude and longitude are required."),!1;a=parseFloat(a);b=parseFloat(b);null!=c&&(c=parseFloat(c));null!=d&&(d=parseFloat(d));null!=e&&(e=parseFloat(e));return isNaN(a)||isNaN(b)||null!=c&&isNaN(c)||null!=d&&isNaN(d)||null!=e&&isNaN(e)?(w.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90<a||-90>a||180<b||-180>b?(w.error("Cannot set last-known location - latitude and longitude are bounded by \u00b190 and \u00b1180 respectively."),
|
|
!1):null!=c&&0>c||null!=e&&0>e?(w.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.H.Ec(this.f.o(),a,b,d,c,e).h};
|
|
q.Dd=function(a,b){if(!Ra(a,"set custom user attribute","the given key"))return!1;var c=typeof b,d=Fa(b),e=Ea(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Ra(b,'set custom user attribute "'+a+'"',"the given value"))return!1;d&&(b=La(b));if(e){for(c=0;c<b.length;c++)if(!Ra(b[c],'set custom user attribute "'+a+'"',"the element in the given array"))return!1;return $a(this.H,x.mf,a,b).h}return this.f.Dd(a,b)};
|
|
q.Yf=function(a,b){return!Ra(a,"add to custom user attribute array","the given key")||null!=b&&!Ra(b,"add to custom user attribute array","the given value")?!1:$a(this.H,x.jf,a,b).h};q.sg=function(a,b){return!Ra(a,"remove from custom user attribute array","the given key")||null!=b&&!Ra(b,"remove from custom user attribute array","the given value")?!1:$a(this.H,x.lf,a,b).h};
|
|
q.ng=function(a,b){if(!Ra(a,"increment custom user attribute","the given key"))return!1;null==b&&(b=1);var c=parseInt(b);return isNaN(c)||c!==parseFloat(b)?(w.error('Cannot increment custom user attribute because the given incrementValue "'+b+'" is not an integer.'),!1):$a(this.H,x.kf,a,c).h};q.Ad=function(a,b,c,d,e){this.f.Ad(a,b,c,d,e);ab(this.H)};q.Hb=function(a){this.f.Hb(a)};
|
|
q.zg=function(a,b,c){if(!Ra(a,"set custom location attribute","the given key"))return!1;if(null!==b||null!==c)if(b=parseFloat(b),c=parseFloat(c),isNaN(b)||90<b||-90>b||isNaN(c)||180<c||-180>c)return w.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \u00b190 and \u00b1180 respectively, or must both be null for removal."),!1;var d=this.H,e=c;c=new Va;if(bb(d.I,a))w.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{var g=Wa(d.D);
|
|
if(null===b&&null===e){var f=x.Df;a={key:a}}else f=x.Cf,a={key:a,latitude:b,longitude:e};c.j.push(new A(d.f.o(),f,(new Date).valueOf(),g,a));c.h=J(d.b,c.j)}return c.h};var Za=/^[0-9 .\\(\\)\\+\\-]+$/,Xa={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},Ya={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"};D.User=H;D.User.Genders=Xa;D.User.NotificationSubscriptionTypes=Ya;D.User.prototype.getUserId=H.prototype.o;
|
|
D.User.prototype.setFirstName=H.prototype.Dg;D.User.prototype.setLastName=H.prototype.Hg;D.User.prototype.setEmail=H.prototype.Bg;D.User.prototype.setGender=H.prototype.Eg;D.User.prototype.setDateOfBirth=H.prototype.Ag;D.User.prototype.setCountry=H.prototype.yg;D.User.prototype.setHomeCity=H.prototype.Fg;D.User.prototype.setLanguage=H.prototype.Gg;D.User.prototype.setEmailNotificationSubscriptionType=H.prototype.Cg;D.User.prototype.setPushNotificationSubscriptionType=H.prototype.Fd;
|
|
D.User.prototype.setPhoneNumber=H.prototype.Ig;D.User.prototype.setAvatarImageUrl=H.prototype.xg;D.User.prototype.setLastKnownLocation=H.prototype.Ec;D.User.prototype.setCustomUserAttribute=H.prototype.Dd;D.User.prototype.addToCustomAttributeArray=H.prototype.Yf;D.User.prototype.removeFromCustomAttributeArray=H.prototype.sg;D.User.prototype.incrementCustomUserAttribute=H.prototype.ng;D.User.prototype.addAlias=H.prototype.Xf;D.User.prototype.setCustomLocationAttribute=H.prototype.zg;function cb(){}cb.prototype.od=function(){};cb.prototype.qd=function(){};cb.prototype.lb=function(){};function db(a,b){if(a&&b)if(a=a.toLowerCase(),Ea(b.O))for(var c=0;c<b.O.length;c++){if(-1!==a.indexOf(b.O[c].toLowerCase()))return b.S}else if(-1!==a.indexOf(b.O.toLowerCase()))return b.S};var eb={Ld:"Chrome",Ic:"Edge",Ub:"Internet Explorer",Rd:"Opera",Tc:"Safari",Yg:"Firefox"};function fb(){if(this.userAgentData=navigator.userAgentData){var a=this.userAgentData.brands;if(a&&a.length){a=ba(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0,d=[];for(c in eb)eb[c]!==eb.Ub&&d.push(eb[c]);if((c=b.brand.match(new RegExp("("+d.join("|")+")","i")))&&0<c.length){var e=c[0];var g=b.version;break}}}this.Va=e||"Unknown Browser";this.version=g||"Unknown Version"}}oa(fb,cb);fb.prototype.od=function(){return this.Va};fb.prototype.qd=function(){return this.version};
|
|
fb.prototype.lb=function(a){var b=this;return this.ea?Promise.resolve(this.ea):(this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()).then(function(c){c=c.platform;for(var d=0;d<a.length;d++){var e=db(c,a[d]);if(e)return b.ea=e,b.ea}return c}).catch(function(){return navigator.platform})};function gb(){this.we=hb()}oa(gb,cb);gb.prototype.od=function(){return this.we[0]||"Unknown Browser"};gb.prototype.qd=function(){return this.we[1]||"Unknown Version"};gb.prototype.lb=function(a){for(var b=0;b<a.length;b++){var c=db(a[b].U,a[b]);if(c)return Promise.resolve(c)}return Promise.resolve(navigator.platform)};
|
|
function hb(){var a=navigator.userAgent||"",b=a.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(/trident/i.test(b[1])){var c=/\brv[ :]+(\.?\d+(\.\d+)*)/g.exec(a)||[];return[eb.Ub,c[1]||""]}if(-1!==a.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==a.indexOf("CrKey"))return["Chromecast",null];if(-1!==a.indexOf("BRAVIA")||-1!==a.indexOf("SonyCEBrowser")||-1!==a.indexOf("SonyDTV"))return["Sony Smart TV",
|
|
null];if(-1!==a.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(a.match(/\b(Roku)\b/))return["Roku",null];if(a.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(b[1]===eb.Ld&&(c=a.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("OPR",eb.Rd),c[0]=c[0].replace("EdgA",eb.Ic),"Edg"===c[0]&&(c[0]=eb.Ic),[c[0],c[1]];if(b[1]===eb.Tc&&(c=a.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("EdgiOS",eb.Ic),
|
|
[c[0],c[1]];b=b[2]?[b[1],b[2]]:[null,null];b[0]===eb.Tc&&null!=(c=a.match(/version\/(\.?\d+(\.\d+)*)/i))&&b.splice(1,1,c[1]);null!=(c=a.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&b.splice(1,1,c[2]);if(b[0]===eb.Rd&&null!=(c=a.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",c[1]||""];b[0]&&(a=b[0].toLowerCase(),"msie"===a&&(b[0]=eb.Ub),"crios"===a&&(b[0]=eb.Ld),"tizen"===a&&(b[0]="Samsung Smart TV",b[1]=null),"samsungbrowser"===a&&(b[0]="Samsung Browser"));return b};function ib(){var a=this;this.xd=new (navigator.userAgentData?fb:gb);this.userAgent=navigator.userAgent;this.Va=this.xd.od();this.version=this.xd.qd();this.lb().then(function(b){return a.ea=b});this.language=(navigator.hh||navigator.language||navigator.browserLanguage||navigator.gh||"").toLowerCase();this.og=jb(this.userAgent)}ib.prototype.lb=function(){var a=this;return this.ea?Promise.resolve(this.ea):this.xd.lb(kb).then(function(b){return a.ea=b})};
|
|
function jb(a){a=a.toLowerCase();for(var b="googlebot bingbot slurp duckduckbot baiduspider yandex facebookexternalhit sogou ia_archiver https://github.com/prerender/prerender aolbuild bingpreview msnbot adsbot mediapartners-google teoma".split(" "),c=0;c<b.length;c++)if(-1!==a.indexOf(b[c]))return!0;return!1}
|
|
var kb=[{U:navigator.platform,O:"Win",S:"Windows"},{U:navigator.platform,O:"Mac",S:"Mac"},{U:navigator.platform,O:"BlackBerry",S:"BlackBerry"},{U:navigator.platform,O:"FreeBSD",S:"FreeBSD"},{U:navigator.platform,O:"OpenBSD",S:"OpenBSD"},{U:navigator.platform,O:"Nintendo",S:"Nintendo"},{U:navigator.platform,O:"SunOS",S:"SunOS"},{U:navigator.platform,O:"PlayStation",S:"PlayStation"},{U:navigator.platform,O:"X11",S:"X11"},{U:navigator.userAgent,O:["iPhone","iPad","iPod"],S:"iOS"},{U:navigator.platform,
|
|
O:"Pike v",S:"iOS"},{U:navigator.userAgent,O:["Web0S"],S:"WebOS"},{U:navigator.platform,O:["Linux armv7l","Android"],S:"Android"},{U:navigator.userAgent,O:["Android"],S:"Android"},{U:navigator.platform,O:"Linux",S:"Linux"}],lb=new ib;function mb(a,b){this.ic=a;this.R=b}function nb(a,b,c){var d=c;null!=c&&c instanceof Pa&&(d=c.A());a.ic.store(b,d)}function ob(a,b){var c=pb(a,b);null!=c&&(c.Db=(new Date).valueOf(),nb(a,b,c))}function pb(a,b){a=a.ic.Y(b);null==a||null==a.g?a=null:(b=new Pa(a.g,a.e,a.c),b.Db=a.l,a=b);return a}function J(a,b){if(null==b||0===b.length)return!1;Ea(b)||(b=[b]);var c=a.R.Y(P.Mb);null!=c&&Ea(c)||(c=[]);for(var d=0;d<b.length;d++)c.push(b[d].A());return a.R.store(P.Mb,c)}
|
|
function qb(a){var b=a.R.Y(P.Mb);a.R.remove(P.Mb);null==b&&(b=[]);a=[];var c=!1,d=null;if(Ea(b))for(var e=0;e<b.length;e++)Na(b[e])?a.push(Oa(b[e])):d=e;else c=!0;if(c||null!=d)e="Stored events could not be deserialized as Events",c&&(e+=", was "+Object.prototype.toString.call(b)+" not an array"),null!=d&&(e+=", value at index "+d+" does not look like an event"),e+=", serialized values were of type "+typeof b+": "+JSON.stringify(b),a.push(new A(null,x.Kc,(new Date).valueOf(),null,{e:e}));return a}
|
|
function Q(a,b,c){Ca(P,b,"StorageManager cannot store object.","StorageManager.KEYS.OBJECTS")&&a.R.store(b,c)}function R(a,b){return Ca(P,b,"StorageManager cannot retrieve object.","StorageManager.KEYS.OBJECTS")?a.R.Y(b):!1}function S(a,b){Ca(P,b,"StorageManager cannot remove object.","StorageManager.KEYS.OBJECTS")&&a.R.remove(b)}mb.prototype.clearData=function(){for(var a=Ha(rb),b=Ha(P),c=0;c<a.length;c++)this.ic.remove(rb[a[c]]);for(a=0;a<b.length;a++)this.R.remove(P[b[a]])};
|
|
function sb(a,b){var c=a.R.Y(P.Ma);null==c&&(c={});var d=b.user_id||P.Jd,e;for(e in b)"user_id"===e||null!=c[d]&&null!=c[d][e]||tb(a,b.user_id,e,b[e])}function tb(a,b,c,d){var e=a.R.Y(P.Ma);null==e&&(e={});var g=b||P.Jd,f=e[g];null==f&&(f={},null!=b&&(f.user_id=b));if("custom"===c){null==f[c]&&(f[c]={});for(var h in d)f[c][h]=d[h]}else f[c]=d;e[g]=f;return a.R.store(P.Ma,e)}function ub(a){var b=a.R.Y(P.Ma);a.R.remove(P.Ma);a=[];for(var c in b)null!=b[c]&&a.push(b[c]);return a}
|
|
var rb={bc:"ab.storage.userId",Hc:"ab.storage.deviceId",Qa:"ab.storage.sessionId"},P={Uc:"ab.test",Mb:"ab.storage.events",Ma:"ab.storage.attributes",Tb:"ab.storage.device",$b:"ab.storage.pushToken",Oc:"ab.storage.newsFeed",Nc:"ab.storage.lastNewsFeedRefresh",ob:"ab.storage.cardImpressions",Vd:"ab.storage.serverConfig",Vc:"ab.storage.triggers",Wc:"ab.storage.triggers.ts",Af:"ab.storage.lastTriggeredTime",zf:"ab.storage.lastTriggeredTimesById",Bf:"ab.storage.lastTriggerEventDataById",Xb:"ab.storage.messagingSessionStart",
|
|
pb:"ab.storage.cc",Rb:"ab.storage.ccLastFullSync",Qb:"ab.storage.ccLastCardUpdated",eb:"ab.storage.ccClicks",fb:"ab.storage.ccImpressions",sa:"ab.storage.ccDismissals",Wb:"ab.storage.lastDisplayedTriggerTimesById",Mc:"ab.storage.lastDisplayedTriggerTime",rb:"ab.storage.triggerFireInstancesById"};function vb(a){this.$=a;this.Ee=lb.Va===eb.Tc?3:10}vb.prototype.Ua=function(a){return a+"."+this.$};
|
|
vb.prototype.store=function(a,b){b={v:b};try{return localStorage.setItem(this.Ua(a),JSON.stringify(b)),!0}catch(c){return w.info("Storage failure: "+c.message),!1}};vb.prototype.Y=function(a){try{var b=JSON.parse(localStorage.getItem(this.Ua(a)));return null==b?null:b.v}catch(c){return w.info("Storage retrieval failure: "+c.message),null}};vb.prototype.remove=function(a){try{localStorage.removeItem(this.Ua(a))}catch(b){return w.info("Storage removal failure: "+b.message),!1}};
|
|
function wb(a,b){this.$=a;a=0;for(var c=document.domain,d=c.split(".");a<d.length-1&&-1===document.cookie.indexOf("ab._gd=ab._gd");)a++,c="."+d.slice(-1-a).join("."),document.cookie="ab._gd=ab._gd;domain="+c+";";document.cookie="ab._gd=;expires="+(new Date(0)).toGMTString()+";domain="+c+";";this.me=c;this.ce=525949;this.qe=!!b}wb.prototype.Ua=function(a){return null!=this.$?a+"."+this.$:a};function xb(a){var b=new Date;b.setTime(b.getTime()+6E4*a.ce);return b.getFullYear()}
|
|
wb.prototype.store=function(a,b){for(var c=Da(rb),d=document.cookie.split(";"),e=0;e<d.length;e++){for(var g=d[e];" "===g.charAt(0);)g=g.substring(1);for(var f=!1,h=0;h<c.length;h++)if(0===g.indexOf(c[h])){f=!0;break}f&&(g=g.split("=")[0],-1===g.indexOf("."+this.$)&&yb(this,g))}c=new Date;c.setTime(c.getTime()+6E4*this.ce);c="expires="+c.toUTCString();d="domain="+this.me;b=this.qe?b:encodeURIComponent(JSON.stringify(b));a=this.Ua(a)+"="+b+";"+c+";"+d+";path=/";if(4093<=a.length)return w.info("Storage failure: string is "+
|
|
a.length+" chars which is too large to store as a cookie."),!1;document.cookie=a;return!0};
|
|
wb.prototype.Y=function(a){for(var b=[],c=this.Ua(a)+"=",d=document.cookie.split(";"),e=0;e<d.length;e++){for(var g=d[e];" "===g.charAt(0);)g=g.substring(1);if(0===g.indexOf(c))try{var f=void 0;f=this.qe?g.substring(c.length,g.length):JSON.parse(decodeURIComponent(g.substring(c.length,g.length)));b.push(f)}catch(h){return w.info("Storage retrieval failure: "+h.message),this.remove(a),null}}return 0<b.length?b[b.length-1]:null};wb.prototype.remove=function(a){yb(this,this.Ua(a))};
|
|
function yb(a,b){b=b+"=;expires="+(new Date(0)).toGMTString();document.cookie=b;document.cookie=b+";path=/";document.cookie=b+";path="+document.location.pathname;a=b+";domain="+a.me;document.cookie=a;document.cookie=a+";path=/";document.cookie=a+";path="+document.location.pathname}function zb(){this.cd={};this.ke=5242880;this.Ee=3}
|
|
zb.prototype.store=function(a,b){var c={value:b};var d=[];b=[b];for(var e=0;b.length;){var g=b.pop();if("boolean"===typeof g)e+=4;else if("string"===typeof g)e+=2*g.length;else if("number"===typeof g)e+=8;else if("object"===typeof g&&-1===d.indexOf(g)){d.push(g);for(var f in g)b.push(g[f])}}d=e;if(d>this.ke)return w.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.ke),!1;this.cd[a]=c;return!0};zb.prototype.Y=function(a){a=this.cd[a];return null==a?null:a.value};
|
|
zb.prototype.remove=function(a){this.cd[a]=null};function Ab(a,b,c){this.ka=[];b&&this.ka.push(new wb(a));c&&this.ka.push(new vb(a));this.ka.push(new zb)}Ab.prototype.store=function(a,b){for(var c=!0,d=0;d<this.ka.length;d++)c=this.ka[d].store(a,b)&&c;return c};Ab.prototype.Y=function(a){for(var b=0;b<this.ka.length;b++){var c=this.ka[b].Y(a);if(null!=c)return c}return null};Ab.prototype.remove=function(a){for(var b=0;b<this.ka.length;b++)this.ka[b].remove(a)};function Bb(){this.vb={}}function Cb(a,b){if("function"!==typeof b)return null;var c=qa.$a();a.vb[c]=b;return c}Bb.prototype.N=function(a){delete this.vb[a]};Bb.prototype.L=function(){this.vb={}};function Db(a,b){var c=[],d;for(d in a.vb)c.push(a.vb[d](b))};function Eb(){if(null==Fb){Fb=!1;try{var a=Object.defineProperty({},"passive",{get:function(){Fb=!0}});window.addEventListener("testPassive",null,a);window.removeEventListener("testPassive",null,a)}catch(b){}}return Fb}function Gb(a,b,c){a.addEventListener(b,c,Eb()?{passive:!0}:!1)}
|
|
function Hb(a,b,c,d){if(null==a)return!1;b=b||!1;c=c||!1;a=a.getBoundingClientRect();return null==a?!1:(0<=a.top&&a.top<=(window.innerHeight||document.documentElement.clientHeight)||!b)&&(0<=a.left||!d)&&(0<=a.bottom&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!c)&&(a.right<=(window.innerWidth||document.documentElement.clientWidth)||!d)}function Ib(a){if(a.onclick){var b=document.createEvent("MouseEvents");b.initEvent("click",!0,!0);a.onclick.apply(a,[b])}}
|
|
function Jb(a,b,c){var d=null,e=null;Gb(a,"touchstart",function(g){d=g.touches[0].clientX;e=g.touches[0].clientY});Gb(a,"touchmove",function(g){if(null!=d&&null!=e){var f=d-g.touches[0].clientX,h=e-g.touches[0].clientY;Math.abs(f)>Math.abs(h)&&25<=Math.abs(f)?(0<f&&b===Kb?c(g):0>f&&b===Lb&&c(g),e=d=null):25<=Math.abs(h)&&(0<h&&b===Mb&&a.scrollTop===a.scrollHeight-a.offsetHeight?c(g):0>h&&b===Nb&&0===a.scrollTop&&c(g),e=d=null)}})}
|
|
function Ob(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("viewBox",a);d.setAttribute("xmlns","http://www.w3.org/2000/svg");a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d",b);null!=c&&a.setAttribute("fill",c);d.appendChild(a);return d}var Fb=null,Mb="up",Nb="down",Kb="left",Lb="right";function Pb(a,b,c){var d=document.createElement("button");d.setAttribute("aria-label",a);d.setAttribute("tabindex","0");d.setAttribute("role","button");Gb(d,"touchstart",function(){});d.className="ab-close-button";a=Ob("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",b);d.appendChild(a);d.addEventListener("keydown",function(e){if(32===e.keyCode||13===e.keyCode)c(),e.stopPropagation()});d.onclick=function(e){c();e.stopPropagation()};return d};var Qb={pg:function(){return 600>=screen.width},kg:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?Qb.Oa.Lc:Qb.Oa.Zb;if("screen"in window){var a=window.screen.orientation||screen.bh||screen.eh;null!=a&&"object"===typeof a&&(a=a.type);if("landscape-primary"===a||"landscape-secondary"===a)return Qb.Oa.Lc}return Qb.Oa.Zb},qg:function(a,b,c){c||null!=b&&b.metaKey?window.open(a):window.location=a},Oa:{Zb:0,Lc:1}};D.WindowUtils=Qb;
|
|
D.WindowUtils.openUri=Qb.qg;function Rb(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B){this.id=a;this.viewed=b||!1;this.title=c||"";this.imageUrl=d;this.description=e||"";this.created=g||null;this.updated=f||null;this.categories=h||[];this.expiresAt=l||null;this.url=k;this.linkText=m;n=parseFloat(n);this.aspectRatio=isNaN(n)?null:n;this.extras=t;this.pinned=r||!1;this.dismissible=v||!1;this.dismissed=!1;this.clicked=B||!1;this.test=!1;this.Zc=this.W=null}function Sb(a){null==a.W&&(a.W=new Bb);return a.W}
|
|
function Tb(a){null==a.Zc&&(a.Zc=new Bb);return a.Zc}q=Rb.prototype;q.Kb=function(a){return Cb(Sb(this),a)};q.Hd=function(a){return Cb(Tb(this),a)};q.N=function(a){Sb(this).N(a);Tb(this).N(a)};q.L=function(){Sb(this).L();Tb(this).L()};q.zd=function(){this.viewed=!0};q.cb=function(){this.clicked=this.viewed=!0;Db(Sb(this))};q.yd=function(){return this.dismissible&&!this.dismissed?(this.dismissed=!0,Db(Tb(this)),!0):!1};
|
|
function Ub(a,b){if(null==b||b[T.ua]!==a.id)return!0;if(b[T.Ud])return!1;if(null!=b[T.ba]&&null!=a.updated&&b[T.ba]<Ja(a.updated.valueOf()))return!0;b[T.xa]&&!a.viewed&&(a.viewed=!0);b[T.ra]&&!a.clicked&&(a.clicked=b[T.ra]);null!=b[T.Ra]&&(a.title=b[T.Ra]);null!=b[T.va]&&(a.imageUrl=b[T.va]);null!=b[T.Na]&&(a.description=b[T.Na]);if(null!=b[T.ba]){var c=Ka(b[T.ba]);null!=c&&(a.updated=c)}null!=b[T.aa]&&(a.expiresAt=b[T.aa]===Vb?null:Ka(b[T.aa]));null!=b[T.URL]&&(a.url=b[T.URL]);null!=b[T.wa]&&(a.linkText=
|
|
b[T.wa]);null!=b[T.qa]&&(c=parseFloat(b[T.qa]),a.aspectRatio=isNaN(c)?null:c);null!=b[T.ha]&&(a.extras=b[T.ha]);null!=b[T.ia]&&(a.pinned=b[T.ia]);null!=b[T.ta]&&(a.dismissible=b[T.ta]);null!=b[T.V]&&(a.test=b[T.V]);return!0}
|
|
function Wb(a){if(a[T.Ud])return null;var b=a[T.ua],c=a[T.TYPE],d=a[T.xa],e=a[T.Ra],g=a[T.va],f=a[T.Na],h=Ka(a[T.ba]);var l=a[T.aa]===Vb?null:Ka(a[T.aa]);var k=a[T.URL],m=a[T.wa],n=a[T.qa],t=a[T.ha],r=a[T.ia],v=a[T.ta],B=a[T.ra];a=a[T.V]||!1;if(c===Xb.Yd||c===Xb.Yb)b=new Yb(b,d,e,g,f,null,h,null,l,k,m,n,t,r,v,B);else if(c===Xb.Ob)b=new Zb(b,d,e,g,f,null,h,null,l,k,m,n,t,r,v,B);else if(c===Xb.Nb)b=new $b(b,d,g,null,h,null,l,k,m,n,t,r,v,B);else if(c===Xb.Fc)b=new ac(b,d,h,l,t,r);else return w.error("Ignoring card with unknown type "+
|
|
c),null;b.test=a;return b}function bc(a){var b=a[U.ua],c=a[U.TYPE],d=a[U.xa],e=a[U.Ra],g=a[U.va],f=a[U.Na],h=Ma(a[U.Sb]),l=Ma(a[U.ba]),k=a[U.Pb],m=Ma(a[U.aa]),n=a[U.URL],t=a[U.wa],r=a[U.qa],v=a[U.ha],B=a[U.ia],z=a[U.ta],E=a[U.ra];a=a[U.V]||!1;if(c===Xb.Yb)b=new Yb(b,d,e,g,f,h,l,k,m,n,t,r,v,B,z,E);else if(c===Xb.Ob)b=new Zb(b,d,e,g,f,h,l,k,m,n,t,r,v,B,z,E);else if(c===Xb.Nb)b=new $b(b,d,g,h,l,k,m,n,t,r,v,B,z,E);else if(c===Xb.Fc)b=new ac(b,d,l,m,v,B);else return;b.test=a;return b}
|
|
function cc(a){null!=a&&(a=a.querySelectorAll(".ab-unread-indicator")[0],null!=a&&(a.className+=" read"))}
|
|
q.Z=function(a,b,c){function d(n){cc(g);f&&(a(e),Qb.openUri(e.url,n,c));return!1}var e=this,g=document.createElement("div");g.className="ab-card ab-effect-card "+this.tc;g.setAttribute("data-ab-card-id",this.id);g.setAttribute("role","article");g.setAttribute("tabindex","0");var f=this.url&&""!==this.url;if(this.pinned){var h=document.createElement("div");h.className="ab-pinned-indicator";var l=document.createElement("i");l.className="fa fa-star";h.appendChild(l);g.appendChild(h)}this.imageUrl&&""!==
|
|
this.imageUrl&&(h=document.createElement("div"),h.className="ab-image-area",l=document.createElement("img"),l.setAttribute("src",this.imageUrl),this.oc(l),h.appendChild(l),g.className+=" with-image",f&&!this.wc?(l=document.createElement("a"),l.setAttribute("href",this.url),l.onclick=d,l.appendChild(h),g.appendChild(l)):g.appendChild(h));h=document.createElement("div");h.className="ab-card-body";if(this.dismissible){this.je=b;var k=Pb("Dismiss Card",void 0,this.Ce.bind(this));g.appendChild(k);Jb(h,
|
|
Kb,function(n){g.className+=" ab-swiped-left";k.onclick(n)});Jb(h,Lb,function(n){g.className+=" ab-swiped-right";k.onclick(n)})}if(b=this.title&&""!==this.title){l=document.createElement("h1");l.className="ab-title";l.id=qa.$a();g.setAttribute("aria-labelledby",l.id);if(f){var m=document.createElement("a");m.setAttribute("href",this.url);m.onclick=d;m.appendChild(document.createTextNode(this.title));l.appendChild(m)}else l.appendChild(document.createTextNode(this.title));h.appendChild(l)}l=document.createElement("div");
|
|
l.className=b?"ab-description":"ab-description ab-no-title";l.id=qa.$a();g.setAttribute("aria-describedby",l.id);l.appendChild(document.createTextNode(this.description));f&&(b=document.createElement("div"),b.className="ab-url-area",m=document.createElement("a"),m.setAttribute("href",this.url),m.appendChild(document.createTextNode(this.linkText)),m.onclick=d,b.appendChild(m),l.appendChild(b));h.appendChild(l);g.appendChild(h);h=document.createElement("div");h.className="ab-unread-indicator";this.viewed&&
|
|
(h.className+=" read");g.appendChild(h);return this.Of=g};q.oc=function(a){var b="";this.title||this.description||(b="Feed Image");a.setAttribute("alt",b)};q.Ce=function(){if(this.dismissible&&!this.dismissed){this.je&&this.je(this);var a=this.Of;a&&(a.style.height=a.offsetHeight+"px",a.className+=" ab-hide",setTimeout(function(){a&&a.parentNode&&(a.style.height="0",a.style.margin="0",setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a)},dc))},ec))}};
|
|
var Vb=-1,Xb={Ob:"captioned_image",Yd:"text_announcement",Yb:"short_news",Nb:"banner_image",Fc:"control"},T={ua:"id",xa:"v",ta:"db",Ud:"r",ba:"ca",ia:"p",aa:"ea",ha:"e",TYPE:"tp",va:"i",Ra:"tt",Na:"ds",URL:"u",wa:"dm",qa:"ar",ra:"cl",V:"t"},U={ua:"id",xa:"v",ta:"db",Sb:"cr",ba:"ca",ia:"p",Pb:"t",aa:"ea",ha:"e",TYPE:"tp",va:"i",Ra:"tt",Na:"ds",URL:"u",wa:"dm",qa:"ar",ra:"cl",V:"s"},dc=400;D.Card=Rb;D.Card.prototype.dismissCard=Rb.prototype.Ce;D.Card.prototype.subscribeToClickedEvent=Rb.prototype.Kb;
|
|
D.Card.prototype.subscribeToDismissedEvent=Rb.prototype.Hd;D.Card.prototype.removeSubscription=Rb.prototype.N;D.Card.prototype.removeAllSubscriptions=Rb.prototype.L;function $b(a,b,c,d,e,g,f,h,l,k,m,n,t,r){Rb.call(this,a,b,null,c,null,d,e,g,f,h,l,k,m,n,t,r);this.tc="ab-banner";this.wc=!1}oa($b,Rb);$b.prototype.A=function(){var a={};a[U.TYPE]=Xb.Nb;a[U.ua]=this.id;a[U.xa]=this.viewed;a[U.va]=this.imageUrl;a[U.ba]=this.updated;a[U.Sb]=this.created;a[U.Pb]=this.categories;a[U.aa]=this.expiresAt;a[U.URL]=this.url;a[U.wa]=this.linkText;a[U.qa]=this.aspectRatio;a[U.ha]=this.extras;a[U.ia]=this.pinned;a[U.ta]=this.dismissible;a[U.ra]=this.clicked;a[U.V]=this.test;return a};
|
|
D.Banner=$b;function Zb(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B){Rb.call(this,a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B);this.tc="ab-captioned-image";this.wc=!0}oa(Zb,Rb);
|
|
Zb.prototype.A=function(){var a={};a[U.TYPE]=Xb.Ob;a[U.ua]=this.id;a[U.xa]=this.viewed;a[U.Ra]=this.title;a[U.va]=this.imageUrl;a[U.Na]=this.description;a[U.ba]=this.updated;a[U.Sb]=this.created;a[U.Pb]=this.categories;a[U.aa]=this.expiresAt;a[U.URL]=this.url;a[U.wa]=this.linkText;a[U.qa]=this.aspectRatio;a[U.ha]=this.extras;a[U.ia]=this.pinned;a[U.ta]=this.dismissible;a[U.ra]=this.clicked;a[U.V]=this.test;return a};D.CaptionedImage=Zb;function Yb(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B){Rb.call(this,a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B);this.tc="ab-classic-card";this.wc=!0}oa(Yb,Rb);
|
|
Yb.prototype.A=function(){var a={};a[U.TYPE]=Xb.Yb;a[U.ua]=this.id;a[U.xa]=this.viewed;a[U.Ra]=this.title;a[U.va]=this.imageUrl;a[U.Na]=this.description;a[U.ba]=this.updated;a[U.Sb]=this.created;a[U.Pb]=this.categories;a[U.aa]=this.expiresAt;a[U.URL]=this.url;a[U.wa]=this.linkText;a[U.qa]=this.aspectRatio;a[U.ha]=this.extras;a[U.ia]=this.pinned;a[U.ta]=this.dismissible;a[U.ra]=this.clicked;a[U.V]=this.test;return a};D.ClassicCard=Yb;function ac(a,b,c,d,e,g){Rb.call(this,a,b,null,null,null,null,c,null,d,null,null,null,e,g,null);this.tc="ab-control-card";this.wc=!1}oa(ac,Rb);ac.prototype.A=function(){var a={};a[U.TYPE]=Xb.Fc;a[U.ua]=this.id;a[U.xa]=this.viewed;a[U.ba]=this.updated;a[U.aa]=this.expiresAt;a[U.ha]=this.extras;a[U.ia]=this.pinned;a[U.V]=this.test;return a};D.ControlCard=ac;function fc(a){a=parseInt(a);return!isNaN(a)&&0===(a&4278190080)>>>24}function gc(a){a=parseInt(a);if(isNaN(a))return"";var b=parseFloat(b);isNaN(b)&&(b=1);a>>>=0;var c=a&255,d=(a&65280)>>>8,e=(a&16711680)>>>16;return(lb.Va===eb.Ub?8<lb.version:1)?"rgba("+[e,d,c,((a&4278190080)>>>24)/255*b].join()+")":"rgb("+[e,d,c].join()+")"};function W(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B,z,E,G,F,K,N,L,X,fa,p,u,y,C,I,O){this.message=a;this.messageAlignment=b||hc;this.duration=n||5E3;this.slideFrom=c||ic;this.extras=d||{};this.campaignId=e;this.cardId=g;this.triggerId=f;this.clickAction=h||jc;this.uri=l;this.openTarget=k||kc;this.dismissType=m||lc;this.icon=t;this.imageUrl=r;this.imageStyle=v||mc;this.iconColor=B||nc.Xc;this.iconBackgroundColor=z||nc.Kd;this.backgroundColor=E||nc.Xc;this.textColor=G||nc.Md;this.closeButtonColor=F||nc.qf;this.animateIn=
|
|
K;null==this.animateIn&&(this.animateIn=!0);this.animateOut=N;null==this.animateOut&&(this.animateOut=!0);this.header=L;this.headerAlignment=X||hc;this.headerTextColor=fa||nc.Md;this.frameColor=p||nc.Hf;this.buttons=u||[];this.cropType=y||oc;this.orientation=C;this.htmlId=I;this.css=O;this.ee=this.Sa=this.fe=!1;this.W=new Bb;this.dc=new Bb}q=W.prototype;q.Fa=function(){return!0};q.Ve=function(){return this.Fa()};function pc(a){return null!=a.htmlId&&4<a.htmlId.length}
|
|
function qc(a){return pc(a)&&null!=a.css&&0<a.css.length}function rc(a){if(pc(a)&&qc(a))return a.htmlId+"-css"}q.Kb=function(a){return Cb(this.W,a)};q.Hd=function(a){return Cb(this.dc,a)};q.N=function(a){this.W.N(a);this.dc.N(a)};q.L=function(){this.W.L();this.dc.L()};q.zd=function(){return this.fe?!1:this.fe=!0};q.cb=function(){return this.Sa?!1:(this.Sa=!0,Db(this.W),!0)};q.yd=function(){return this.ee?!1:(this.ee=!0,Db(this.dc),!0)};
|
|
function sc(a){if(a.is_control)return new tc(a.trigger_id);var b=a.type;null!=b&&(b=b.toUpperCase());var c=a.message,d=a.text_align_message,e=a.slide_from,g=a.extras,f=a.campaign_id,h=a.card_id,l=a.trigger_id,k=a.click_action,m=a.uri,n=a.open_target,t=a.message_close,r=a.duration,v=a.icon,B=a.image_url,z=a.image_style,E=a.icon_color,G=a.icon_bg_color,F=a.bg_color,K=a.text_color,N=a.close_btn_color,L=a.header,X=a.text_align_header,fa=a.header_text_color,p=a.frame_color,u=[],y=a.btns;null==y&&(y=[]);
|
|
for(var C=0;C<y.length;C++){var I=y[C];u.push(new uc(I.text,I.bg_color,I.text_color,I.border_color,I.click_action,I.uri,I.id))}y=a.crop_type;C=a.orientation;I=a.animate_in;var O=a.animate_out,V=a.html_id,ta=a.css;if(null==V||""===V||null==ta||""===ta)ta=V=void 0;if(b===vc||b===wc)c=new xc(c,d,g,f,h,l,k,m,n,t,r,v,B,z,E,G,F,K,N,I,O,L,X,fa,p,u,y,V,ta);else if(b===yc)c=new zc(c,d,g,f,h,l,k,m,n,t,r,v,B,z,E,G,F,K,N,I,O,L,X,fa,p,u,y,C,V,ta);else if(b===Ac)c=new Bc(c,d,e,g,f,h,l,k,m,n,t,r,v,B,E,G,F,K,N,I,
|
|
O,V,ta);else if(b===Cc||b===Dc)c=new Ec(c,g,f,h,l,t,r,I,O,p,V,ta,a.message_fields),c.Sg=a.trusted||!1;else{w.error("Ignoring message with unknown type "+b);return}c.Ne=b;return c}function Fc(a,b){if(b&&b.parentNode){var c=b.closest(".ab-iam-root");null==c&&(c=b);a.Fa()&&null!=c.parentNode&&((b=c.parentNode.classList)&&b.contains(Gc)&&b.remove(Gc),document.body.removeEventListener("touchmove",Hc));c.className=c.className.replace(Ic,Jc)}return a.animateOut}
|
|
function Kc(a,b,c){if(null!=b){a.jc=null;var d=-1===b.className.indexOf("ab-in-app-message")?b.getElementsByClassName("ab-in-app-message")[0]:b;var e=!1;d&&(e=Fc(a,d));var g=document.body;if(null!=g)var f=g.scrollTop;d=function(){if(b&&b.parentNode){var h=b.closest(".ab-iam-root");null==h&&(h=b);h.parentNode&&h.parentNode.removeChild(h)}null!=rc(a)&&(h=document.getElementById(rc(a)))&&h.parentNode&&h.parentNode.removeChild(h);null!=g&&"Safari"===lb.Va&&(g.scrollTop=f);c?c():a.yd()};e?setTimeout(d,
|
|
Lc):d();a.kc&&a.kc.focus()}}q.ye=function(){Kc(this,this.jc)};
|
|
q.Z=function(a,b,c,d){function e(){-1!==f.className.indexOf("ab-start-hidden")&&(f.className=f.className.replace("ab-start-hidden",""),c(f))}var g=this,f=document.createElement("div");f.className="ab-in-app-message ab-start-hidden ab-background";this.Fa()&&(f.className+=" ab-modal-interactions",f.setAttribute("tabindex","-1"));qc(this)||(f.style.color=gc(this.textColor),f.style.backgroundColor=gc(this.backgroundColor),fc(this.backgroundColor)&&(f.className+=" ab-no-shadow"));this.imageStyle===Mc&&
|
|
(f.className+=" graphic");this.orientation===Nc&&(f.className+=" landscape");0===this.buttons.length&&(this.clickAction!==jc&&(f.className+=" ab-clickable"),f.onclick=function(t){Kc(g,f,function(){a.zc(g);g.clickAction===Oc?Qb.openUri(g.uri,t,d||g.openTarget===Pc):g.clickAction===Qc&&b()});t.stopPropagation();return!1});var h=Pb("Close Message",qc(this)?void 0:gc(this.closeButtonColor),function(){Kc(g,f)});f.appendChild(h);h=document.createElement("div");h.className="ab-message-text";h.className+=
|
|
" "+(this.messageAlignment||this.kd).toLowerCase()+"-aligned";var l=!1,k=document.createElement("div");k.className="ab-image-area";if(this.imageUrl){if(this.cropType===Rc){var m=document.createElement("span");m.className="ab-center-cropped-img";m.style.backgroundImage="url("+this.imageUrl+")";m.setAttribute("role","img");this.oc(m);k.appendChild(m)}else m=document.createElement("img"),m.setAttribute("src",this.imageUrl),this.oc(m),l=!0,m.onload=e,setTimeout(e,1E3),k.appendChild(m);f.appendChild(k);
|
|
h.className+=" ab-with-image"}else if(this.icon){k.className+=" ab-icon-area";m=document.createElement("span");m.className="ab-icon";qc(this)||(m.style.backgroundColor=gc(this.iconBackgroundColor),m.style.color=gc(this.iconColor));var n=document.createElement("i");n.className="fa";n.appendChild(document.createTextNode(this.icon));n.setAttribute("aria-hidden",!0);m.appendChild(n);k.appendChild(m);f.appendChild(k);h.className+=" ab-with-icon"}Gb(h,"touchstart",function(){});this.header&&0<this.header.length&&
|
|
(k=document.createElement("h1"),k.className="ab-message-header",this.$c=qa.$a(),k.id=this.$c,k.className+=" "+(this.headerAlignment||hc).toLowerCase()+"-aligned",qc(this)||(k.style.color=gc(this.headerTextColor)),k.appendChild(document.createTextNode(this.header)),h.appendChild(k));h.appendChild(this.xe());f.appendChild(h);l||e();return this.jc=f};q.xe=function(){return document.createTextNode(this.message)};
|
|
q.oc=function(a){var b="";this.message||this.header||!this.Fa()||(b="Modal Image");a.setAttribute("alt",b)};function Hc(a){a.targetTouches&&1<a.targetTouches.length||a.target.classList&&a.target.classList.contains("ab-message-text")&&a.target.scrollHeight>a.target.clientHeight||a.preventDefault()}
|
|
q.Ac=function(a){this.Fa()&&null!=a.parentNode&&this.orientation!==Nc&&(null!=a.parentNode.classList&&a.parentNode.classList.add(Gc),document.body.addEventListener("touchmove",Hc,Eb()?{passive:!1}:!1));a.className+=" "+Ic};q.ma=function(){var a="";this.animateIn&&(a+=" ab-animate-in");this.animateOut&&(a+=" ab-animate-out");return a};
|
|
var nc={Md:4281545523,Xc:4294967295,Kd:4278219733,rf:4293914607,sf:4283782485,Hf:3224580915,qf:4288387995},Sc={Nd:"hd",Ye:"ias",Ff:"of",tf:"do",sb:"umt",qb:"tf",Od:"te"},ic="BOTTOM",Tc={TOP:"TOP",BOTTOM:ic},Qc="NEWS_FEED",Oc="URI",jc="NONE",Uc={NEWS_FEED:Qc,URI:Oc,NONE:jc},lc="AUTO_DISMISS",Vc={AUTO_DISMISS:lc,MANUAL:"SWIPE"},kc="NONE",Pc="BLANK",Wc={NONE:kc,BLANK:Pc},mc="TOP",Mc="GRAPHIC",Xc={TOP:mc,GRAPHIC:Mc},Nc="LANDSCAPE",Yc={PORTRAIT:"PORTRAIT",LANDSCAPE:Nc},hc="CENTER",Zc={START:"START",CENTER:hc,
|
|
END:"END"},Rc="CENTER_CROP",oc="FIT_CENTER",$c={CENTER_CROP:Rc,FIT_CENTER:oc},Ac="SLIDEUP",vc="MODAL",wc="MODAL_STYLED",yc="FULL",Cc="WEB_HTML",Dc="HTML",Lc=500,Ic="ab-show",Jc="ab-hide",Gc="ab-pause-scrolling";D.InAppMessage=W;D.InAppMessage.SlideFrom=Tc;D.InAppMessage.ClickAction=Uc;D.InAppMessage.DismissType=Vc;D.InAppMessage.OpenTarget=Wc;D.InAppMessage.ImageStyle=Xc;D.InAppMessage.TextAlignment=Zc;D.InAppMessage.Orientation=Yc;D.InAppMessage.CropType=$c;
|
|
D.InAppMessage.prototype.subscribeToClickedEvent=W.prototype.Kb;D.InAppMessage.prototype.subscribeToDismissedEvent=W.prototype.Hd;D.InAppMessage.prototype.removeSubscription=W.prototype.N;D.InAppMessage.prototype.removeAllSubscriptions=W.prototype.L;D.InAppMessage.prototype.closeMessage=W.prototype.ye;function uc(a,b,c,d,e,g,f){this.text=a||"";this.backgroundColor=b||nc.Kd;this.textColor=c||nc.Xc;this.borderColor=d||this.backgroundColor;this.clickAction=e||jc;this.uri=g;null==f&&(f=ad);this.id=f;this.Sa=!1;this.W=new Bb}uc.prototype.Kb=function(a){return Cb(this.W,a)};uc.prototype.N=function(a){this.W.N(a)};uc.prototype.L=function(){this.W.L()};uc.prototype.cb=function(){return this.Sa?!1:(this.Sa=!0,Db(this.W),!0)};var ad=-1;D.InAppMessageButton=uc;
|
|
D.InAppMessageButton.prototype.subscribeToClickedEvent=uc.prototype.Kb;D.InAppMessageButton.prototype.removeSubscription=uc.prototype.N;D.InAppMessageButton.prototype.removeAllSubscriptions=uc.prototype.L;function tc(a){this.triggerId=a}D.ControlMessage=tc;function bd(a){var b=a.querySelectorAll(".ab-close-button, .ab-message-button");if(0<b.length){var c=b[0],d=b[b.length-1];a.addEventListener("keydown",function(e){var g=document.activeElement;9===e.keyCode&&(e.shiftKey||g!==d&&g!==a?!e.shiftKey||g!==c&&g!==a||(e.preventDefault(),d.focus()):(e.preventDefault(),c.focus()))})}}function cd(a,b){b.setAttribute("role","dialog");b.setAttribute("aria-modal",!0);b.setAttribute("aria-label","Modal Message");a&&b.setAttribute("aria-labelledby",a)}
|
|
function dd(a,b,c,d,e){if(0<a.buttons.length){var g=document.createElement("div");g.className="ab-message-buttons";d.appendChild(g);var f=d.getElementsByClassName("ab-message-text")[0];null!=f&&(f.className+=" ab-with-buttons");f=function(n){return function(t){Kc(a,d,function(){b.yc(n,a);n.clickAction===Oc?Qb.openUri(n.uri,t,e||a.openTarget===Pc):n.clickAction===Qc&&c()});t.stopPropagation();return!1}};for(var h=0;h<a.buttons.length;h++){var l=a.buttons[h],k=document.createElement("button");k.className=
|
|
"ab-message-button";k.setAttribute("type","button");Gb(k,"touchstart",function(){});var m=l.text;""===l.text&&(m="\u00a0");k.appendChild(document.createTextNode(m));qc(a)||(k.style.backgroundColor=gc(l.backgroundColor),k.style.color=gc(l.textColor),k.style.borderColor=gc(l.borderColor));k.onclick=f(l);g.appendChild(k)}}};function zc(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B,z,E,G,F,K,N,L,X,fa,p,u,y,C,I){u=u||Rc;W.call(this,a,b,null,c,d,e,g,f,h,l,k||"SWIPE",m,n,t,r,v,B,z,E,G,F,K,N,L,X,fa,p,u,y||"PORTRAIT",C,I)}oa(zc,W);zc.prototype.Z=function(a,b,c,d,e){this.kc=document.activeElement;b=W.prototype.Z.call(this,a,c,d,e);b.className+=" ab-fullscreen ab-centered";dd(this,a,c,b,e);bd(b);cd(this.$c,b);return b};zc.prototype.ma=function(){return W.prototype.ma.call(this)+" ab-effect-fullscreen"};
|
|
ha.Object.defineProperties(zc.prototype,{kd:{configurable:!0,enumerable:!0,get:function(){return hc}}});D.FullScreenMessage=zc;var ed=new function(){this.Ae=".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-centering-div,.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:1050;-webkit-tap-highlight-color:transparent}.ab-centering-div:focus,.ab-iam-root.v3:focus{outline:0}.ab-centering-div.ab-effect-fullscreen,.ab-centering-div.ab-effect-html,.ab-centering-div.ab-effect-modal,.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-centering-div.ab-effect-fullscreen.ab-show,.ab-centering-div.ab-effect-html.ab-show,.ab-centering-div.ab-effect-modal.ab-show,.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-centering-div.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-centering-div.ab-effect-html.ab-show.ab-animate-in,.ab-centering-div.ab-effect-modal.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-centering-div.ab-effect-fullscreen.ab-hide,.ab-centering-div.ab-effect-html.ab-hide,.ab-centering-div.ab-effect-modal.ab-hide,.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-centering-div.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-html.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-modal.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-centering-div.ab-effect-slide .ab-in-app-message,.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-centering-div.ab-effect-slide.ab-show .ab-in-app-message,.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-centering-div.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message,.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-centering-div.ab-effect-slide.ab-hide .ab-in-app-message,.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left,.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up,.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down,.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-centering-div.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message,.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-centering-div .ab-ios-scroll-wrapper,.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-centering-div .ab-in-app-message,.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:1050;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333}.ab-centering-div .ab-in-app-message.ab-no-shadow,.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-centering-div .ab-in-app-message :focus,.ab-centering-div .ab-in-app-message:focus,.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-centering-div .ab-in-app-message.ab-clickable,.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-centering-div .ab-in-app-message.ab-background,.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-centering-div .ab-in-app-message .ab-close-button,.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-repeat:no-repeat;background-origin:content-box;background-size:15px;border:none;width:15px;height:15px;-webkit-border-radius:7.5px;-moz-border-radius:7.5px;border-radius:7.5px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;text-align:center;z-index:1060}.ab-centering-div .ab-in-app-message .ab-close-button svg,.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b}.ab-centering-div .ab-in-app-message .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-text,.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap}.ab-centering-div .ab-in-app-message .ab-message-text.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-text.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-text.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-button,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-message-header,.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-centering-div .ab-in-app-message .ab-message-header.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-header.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-header.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-centering-div .ab-in-app-message.ab-slideup,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-centering-div .ab-in-app-message.ab-slideup,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron),.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:50px;max-height:50px;width:auto}.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-repeat:no-repeat;background-origin:content-box;background-size:15px;border:none;width:15px;height:15px;-webkit-border-radius:7.5px;-moz-border-radius:7.5px;border-radius:7.5px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;text-align:center;z-index:1060}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-icon,.ab-centering-div .ab-in-app-message.ab-modal .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic,.ab-centering-div .ab-in-app-message.ab-modal.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone,.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-centering-div .ab-in-app-message.ab-modal.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{max-height:720px;max-width:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic),.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-centering-div .ab-in-app-message.ab-html-message,.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-centering-div .ab-in-app-message .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-centering-div .ab-in-app-message .ab-message-button,.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-centering-div .ab-in-app-message .ab-message-button:first-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-centering-div .ab-in-app-message .ab-message-button:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-centering-div .ab-in-app-message .ab-message-button:first-of-type:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-centering-div .ab-in-app-message .ab-message-button:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-centering-div .ab-in-app-message .ab-message-button:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-centering-div .ab-in-app-message .ab-message-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-button:active:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-centering-div .ab-in-app-message .ab-message-button:focus:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-centering-div .ab-in-app-message .ab-message-button a,.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-centering-div .ab-in-app-message img,.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-centering-div .ab-in-app-message .ab-icon,.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-centering-div .ab-in-app-message .ab-icon .fa,.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-centering-div .ab-start-hidden,.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-centering-div .ab-centered,.ab-centering-div.ab-centering-div .ab-modal,.ab-iam-root.v3 .ab-centered,.ab-iam-root.v3.ab-centering-div .ab-modal{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-email-capture,.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-email-capture .ab-page-blocker,.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1040;pointer-events:all;background-color:rgba(51,51,51,.75)}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-capture-input{margin-bottom:30px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text{max-height:541px;margin-bottom:160px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text.with-explanatory-link{max-height:513px;margin-bottom:188px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text{max-height:385.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text.with-explanatory-link{max-height:357.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-validation-error{margin-top:62px}.ab-email-capture .ab-in-app-message.ab-modal .ab-explanatory-link{display:block}.ab-email-capture .ab-in-app-message.ab-modal .ab-background,.ab-email-capture .ab-in-app-message.ab-modal .ab-mask{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.ab-email-capture .ab-in-app-message.ab-modal .ab-close-button{line-height:normal}.ab-email-capture .ab-in-app-message.ab-modal .ab-html-close-button{right:3px;top:-1px;font-size:34px;padding-top:0}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:50px;max-height:50px;width:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:1050;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-repeat:no-repeat;background-origin:content-box;background-size:15px;border:none;width:15px;height:15px;-webkit-border-radius:7.5px;-moz-border-radius:7.5px;border-radius:7.5px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;text-align:center;z-index:1060;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}.ab-feed .ab-card.ab-banner .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px;padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"};function fd(a){null==a&&(a="");var b=a.split("?").slice(1).join("?");a={};if(null!=b){b=b.split("&");for(var c=0;c<b.length;c++){var d=b[c].split("=");""!==d[0]&&(a[d[0]]=d[1])}}return a}function gd(a){return a&&(a=a.toString().toLowerCase(),0===a.lastIndexOf("javascript:",0)||0===a.lastIndexOf("data:",0))?!0:!1};function Ec(a,b,c,d,e,g,f,h,l,k,m,n,t){null!=a&&0<a.length&&0<a.indexOf('"ab-in-app-message ab-html-message ab-email-capture"')&&0<a.indexOf('"ab-in-app-message ab-show ab-modal ab-effect-modal"')&&(l=h=!0);W.call(this,a,null,null,b,c,d,e,null,null,null,g||"SWIPE",f,null,null,null,null,null,null,null,null,h,l,null,null,null,k,void 0,void 0,void 0,m,n);this.messageFields=t}oa(Ec,W);Ec.prototype.Ve=function(){return!1};
|
|
Ec.prototype.cb=function(a){if(this.Ne===Cc){if(this.Sa)return!1;this.Sa=!0}Db(this.W,a);return!0};
|
|
Ec.prototype.Z=function(a,b,c,d,e){function g(l){var k=l.getAttribute("href"),m=l.onclick;return function(n){if(null==m||"function"!==typeof m||!1!==m()){var t=fd(k).abButtonId;if(null==t||""===t)t=l.getAttribute("id");if(null!=k&&""!==k&&0!==k.indexOf("#")){var r="blank"===(l.getAttribute("target")||"").toLowerCase().replace("_",""),v=e||f.openTarget===Pc||r;r=function(){a.Eb(f,t,k);Qb.openUri(k,n,v)};v?r():Kc(f,h,r)}else a.Eb(f,t,k);n.stopPropagation();return!1}}}var f=this;this.kc=document.activeElement;
|
|
var h=document.createElement("iframe");h.setAttribute("title","Modal Message");h.onload=function(){function l(z){return function(){var E=arguments;Kc(f,h,function(){b.display[z].apply(b.display,Array.prototype.slice.call(E))})}}function k(z){return function(){var E=b.getUser();E[z].apply(E,Array.prototype.slice.call(arguments))}}function m(z){return function(){b[z].apply(b,Array.prototype.slice.call(arguments))}}var n=null,t=a.lg();if(null!=t){n=document.createElement("html");n.innerHTML=f.message;
|
|
for(var r=n.getElementsByTagName("style"),v=0;v<r.length;v++)r[v].setAttribute("nonce",t);r=n.getElementsByTagName("script");for(v=0;v<r.length;v++)r[v].setAttribute("nonce",t)}h.contentWindow.focus();h.contentWindow.document.write(n?n.innerHTML:f.message);n=h.contentWindow.document.getElementsByTagName("head")[0];null!=n&&(r=document.createElement("style"),r.innerHTML=ed.Ae,null!=t&&r.setAttribute("nonce",t),n.appendChild(r),qc(f)&&(r=document.createElement("style"),r.innerHTML=f.css,r.id=rc(f),
|
|
null!=t&&r.setAttribute("nonce",t),n.appendChild(r)),t=h.contentWindow.document.createElement("base"),t.setAttribute("target","_parent"),n.appendChild(t));t=h.contentWindow.document.getElementsByTagName("title");0<t.length&&h.setAttribute("title",t[0].textContent);t={closeMessage:function(){Kc(f,h)},logClick:function(){var z=[f];0<arguments.length&&z.push(arguments[0]);b.logInAppMessageHtmlClick.apply(b,z)},display:{},web:{}};n=["requestImmediateDataFlush","logCustomEvent","logPurchase","unregisterAppboyPushMessages"];
|
|
for(r=0;r<n.length;r++)t[n[r]]=m(n[r]);n="setFirstName setLastName setEmail setGender setDateOfBirth setCountry setHomeCity setEmailNotificationSubscriptionType setLanguage addAlias setPushNotificationSubscriptionType setPhoneNumber setCustomUserAttribute addToCustomAttributeArray removeFromCustomAttributeArray incrementCustomUserAttribute setCustomLocationAttribute".split(" ");var B={};for(r=0;r<n.length;r++)B[n[r]]=k(n[r]);t.getUser=function(){return B};n=["showFeed"];for(r=0;r<n.length;r++)t.display[n[r]]=
|
|
l(n[r]);n=["registerAppboyPushMessages","trackLocation"];for(r=0;r<n.length;r++)t.web[n[r]]=m(n[r]);h.contentWindow.appboyBridge=t;if(f.Ne!==Dc){n=h.contentWindow.document.getElementsByTagName("a");for(r=0;r<n.length;r++)n[r].onclick=g(n[r]);n=h.contentWindow.document.getElementsByTagName("button");for(r=0;r<n.length;r++)n[r].onclick=g(n[r])}n=h.contentWindow.document.body;null!=n&&(pc(f)&&(n.id=f.htmlId),r=document.createElement("hidden"),r.onclick=t.closeMessage,r.className="ab-programmatic-close-button",
|
|
n.appendChild(r));h.contentWindow.dispatchEvent(new CustomEvent("ab.BridgeReady"));-1!==h.className.indexOf("ab-start-hidden")&&(h.className=h.className.replace("ab-start-hidden",""),d(h));document.activeElement!==h&&h.focus()};h.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions";return"iOS"===lb.ea?(c=document.createElement("div"),c.className="ab-ios-scroll-wrapper",c.appendChild(h),this.jc=c):this.jc=h};
|
|
Ec.prototype.ma=function(){return W.prototype.ma.call(this)+" ab-effect-html"};D.HtmlMessage=Ec;function xc(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B,z,E,G,F,K,N,L,X,fa,p,u,y,C){u=u||oc;W.call(this,a,b,null,c,d,e,g,f,h,l,k||"SWIPE",m,n,t,r,v,B,z,E,G,F,K,N,L,X,fa,p,u,void 0,y,C)}oa(xc,W);xc.prototype.Z=function(a,b,c,d,e){this.kc=document.activeElement;b=W.prototype.Z.call(this,a,c,d,e);b.className+=" ab-modal ab-centered";dd(this,a,c,b,e);bd(b);cd(this.$c,b);return b};xc.prototype.ma=function(){return W.prototype.ma.call(this)+" ab-effect-modal"};
|
|
ha.Object.defineProperties(xc.prototype,{kd:{configurable:!0,enumerable:!0,get:function(){return hc}}});D.ModalMessage=xc;function Bc(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B,z,E,G,F,K,N,L){E=E||nc.sf;z=z||nc.rf;W.call(this,a,b||"START",c,d,e,g,f,h,l,k,m,n,t,r,null,v,B,z,E,G,F,K,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N,L)}oa(Bc,W);q=Bc.prototype;q.Fa=function(){return!1};
|
|
q.Z=function(a,b,c,d,e){var g=W.prototype.Z.call(this,a,c,d,e);g.className+=" ab-slideup";var f=g.getElementsByClassName("ab-close-button")[0];null!=f&&(a=Ob("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",qc(this)?void 0:gc(this.closeButtonColor)),a.setAttribute("class","ab-chevron"),f.appendChild(a));Jb(g,Kb,function(l){g.className+=" ab-swiped-left";f.onclick(l)});Jb(g,Lb,function(l){g.className+=" ab-swiped-right";f.onclick(l)});if("TOP"===this.slideFrom){a=
|
|
Mb;var h=" ab-swiped-up"}else a=Nb,h=" ab-swiped-down";Jb(g,a,function(l){g.className+=h;f.onclick(l)});return g};q.xe=function(){var a=document.createElement("span");a.appendChild(document.createTextNode(this.message));return a};q.Ac=function(a){var b=a.getElementsByClassName("ab-in-app-message")[0];Hb(b,!0,!0)||("TOP"===this.slideFrom?b.style.top="0px":b.style.bottom="0px");W.prototype.Ac.call(this,a)};q.ma=function(){return W.prototype.ma.call(this)+" ab-effect-slide"};
|
|
ha.Object.defineProperties(Bc.prototype,{kd:{configurable:!0,enumerable:!0,get:function(){return"START"}}});D.SlideUpMessage=Bc;function hd(a,b){id={en:{NO_CARDS_MESSAGE:"We have no updates for you at this time.<br/>Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.<br/>Please try again later."},ar:{NO_CARDS_MESSAGE:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0646\u0627 \u0623\u064a \u062a\u062d\u062f\u064a\u062b. \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0644\u0627\u062d\u0642\u0627\u064b",FEED_TIMEOUT_MESSAGE:"\u064a\u0631\u062c\u0649 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627"},
|
|
cs:{NO_CARDS_MESSAGE:"V tuto chv\u00edli pro v\u00e1s nem\u00e1me \u017e\u00e1dn\u00e9 aktualizace.<br/>Zkontrolujte pros\u00edm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\u00edm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\u00f8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\u00f8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\u00fcgbar.<br/>Bitte sp\u00e4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\u00e4ter noch einmal versuchen."},
|
|
es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\u00e9belo m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\u00e9ntelo m\u00e1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\u00f3n.<br/>Vuelva a verificar m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\u00e1s tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\u00e4ivityksi\u00e4 ei ole saatavilla.<br/>Tarkista my\u00f6hemmin uudelleen.",
|
|
FEED_TIMEOUT_MESSAGE:"Yrit\u00e4 my\u00f6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \u00e0 jour disponible.<br/>Veuillez v\u00e9rifier ult\u00e9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\u00e9essayer ult\u00e9rieurement."},he:{NO_CARDS_MESSAGE:".\u05d0\u05d9\u05df \u05dc\u05e0\u05d5 \u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05d1\u05d3\u05d5\u05e7 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1",FEED_TIMEOUT_MESSAGE:".\u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1"},
|
|
hi:{NO_CARDS_MESSAGE:"\u0939\u092e\u093e\u0930\u0947 \u092a\u093e\u0938 \u0915\u094b\u0908 \u0905\u092a\u0921\u0947\u091f \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u092b\u093f\u0930 \u0938\u0947 \u091c\u093e\u0901\u091a \u0915\u0930\u0947\u0902.\u0964",FEED_TIMEOUT_MESSAGE:"\u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u0926\u094b\u092c\u093e\u0930\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930\u0947\u0902\u0964."},
|
|
id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.<br/>Ricontrollare pi\u00f9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\u00f9 tardi."},ja:{NO_CARDS_MESSAGE:"\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br/>\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002",FEED_TIMEOUT_MESSAGE:"\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002"},
|
|
ko:{NO_CARDS_MESSAGE:"\uc5c5\ub370\uc774\ud2b8\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0 \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc2ed\uc2dc\uc624.",FEED_TIMEOUT_MESSAGE:"\ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc2ed\uc2dc\uc624."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.<br/>Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.",
|
|
FEED_TIMEOUT_MESSAGE:"Vennligst pr\u00f8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Prosz\u0119 sprawdzi\u0107 ponownie p\u00f3\u017aniej.",FEED_TIMEOUT_MESSAGE:"Prosz\u0119 spr\u00f3bowa\u0107 ponownie p\u00f3\u017aniej."},pt:{NO_CARDS_MESSAGE:"N\u00e3o temos atualiza\u00e7\u00f5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\u00e3o temos nenhuma atualiza\u00e7\u00e3o.<br/>Verifique novamente mais tarde.",
|
|
FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.<br/>\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0437\u0436\u0435.",FEED_TIMEOUT_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."},
|
|
sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>F\u00f6rs\u00f6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\u00f6rs\u00f6k igen senare."},th:{NO_CARDS_MESSAGE:"\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07.",FEED_TIMEOUT_MESSAGE:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07."},
|
|
uk:{NO_CARDS_MESSAGE:"\u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456.<br/>\u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0437\u043d\u0456\u0448\u0435.",FEED_TIMEOUT_MESSAGE:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437 \u043f\u0456\u0437\u043d\u0456\u0448\u0435."},
|
|
vi:{NO_CARDS_MESSAGE:"Ch\u00fang t\u00f4i kh\u00f4ng c\u00f3 c\u1eadp nh\u1eadt n\u00e0o.<br/>Vui l\u00f2ng ki\u1ec3m tra l\u1ea1i sau.",FEED_TIMEOUT_MESSAGE:"Vui l\u00f2ng th\u1eed l\u1ea1i sau."},"zh-hk":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-hans":{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."},
|
|
"zh-hant":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-tw":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},zh:{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}};null!=a&&(a=a.toLowerCase());
|
|
if(null!=a&&null==id[a]){var c=a.indexOf("-");0<c&&(a=a.substring(0,c))}null==id[a]&&(a="Braze does not yet have a localization for language "+a+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.",b?w.error(a):w.info(a),a="en");jd=a}var id,jd;function kd(a,b){this.cards=a;this.lastUpdated=b}q=kd.prototype;q.Ge=function(){for(var a=0,b=0;b<this.cards.length;b++)this.cards[b].viewed||a++;return a};function ld(a,b){b&&(b.className=b.className.replace("ab-show","ab-hide"),setTimeout(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},ec));var c=b.getAttribute(md);null!=c&&a.N(c)}q.Ia=function(a,b){a.Ia(b)};q.Ha=function(a,b){a.Ha(b)};
|
|
function nd(a,b,c){var d=document.createElement("div");d.className="ab-feed-body";if(null==a.lastUpdated){c=document.createElement("div");c.className="ab-no-cards-message";var e=document.createElement("i");e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner";c.appendChild(e);d.appendChild(c)}else{e=!1;for(var g=function(k){a.Ha(b,k)},f=function(k){b.xc(k)},h=0;h<a.cards.length;h++){var l=a.cards[h]instanceof ac;!l||a instanceof od?(d.appendChild(a.cards[h].Z(g,f,c)),e=e||!l):w.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}e||
|
|
(c=document.createElement("div"),c.className="ab-no-cards-message",c.innerHTML=id[jd].NO_CARDS_MESSAGE,d.appendChild(c))}return d}
|
|
function pd(a,b,c){if(null!=c){var d=[];c=c.querySelectorAll(".ab-card");a.Yc||(a.Yc={});for(var e=0;e<c.length;e++){var g=c[e].getAttribute("data-ab-card-id");if(!a.Yc[g]){var f=c[e];f=null!=f&&!!f.getAttribute("data-ab-had-top-impression");var h=c[e];h=null!=h&&!!h.getAttribute("data-ab-had-bottom-impression");var l=f,k=h,m=Hb(c[e],!0,!1,!1),n=Hb(c[e],!1,!0,!1);if(!f&&m){f=!0;var t=c[e];null!=t&&t.setAttribute("data-ab-had-top-impression",!0)}!h&&n&&(h=!0,t=c[e],null!=t&&t.setAttribute("data-ab-had-bottom-impression",
|
|
!0));if(f&&h&&(m||n||cc(c[e]),!l||!k))for(f=0;f<a.cards.length;f++)if(a.cards[e].id===g){a.Yc[a.cards[e].id]=!0;d.push(a.cards[e]);break}}}0<d.length&&a.Ia(b,d)}}q.se=function(a){a.Dc()};
|
|
function qd(a,b,c){c.setAttribute("aria-busy","true");var d=c.querySelectorAll(".ab-refresh-button")[0];null!=d&&(d.className+=" fa-spin");var e=(new Date).valueOf().toString();c.setAttribute(rd,e);setTimeout(function(){if(c.getAttribute(rd)===e){for(var g=c.querySelectorAll(".fa-spin"),f=0;f<g.length;f++)g[f].className=g[f].className.replace(/fa-spin/g,"");g=c.querySelectorAll(".ab-initial-spinner")[0];null!=g&&(f=document.createElement("span"),f.innerHTML=id[jd].FEED_TIMEOUT_MESSAGE,g.parentNode.appendChild(f),
|
|
g.parentNode.removeChild(g));"true"===c.getAttribute("aria-busy")&&c.setAttribute("aria-busy","false")}},sd);a.se(b)}
|
|
q.Z=function(a,b){function c(k){qd(e,a,g);k.stopPropagation()}function d(k){ld(a,g);k.stopPropagation()}var e=this,g=document.createElement("div");g.className="ab-feed ab-hide ab-effect-slide";g.setAttribute("tabindex","-1");g.setAttribute("aria-label","Feed");g.setAttribute("role","feed");var f=document.createElement("div");f.className="ab-feed-buttons-wrapper";g.appendChild(f);var h=document.createElement("i");h.className="fa fa-times ab-close-button";h.setAttribute("aria-label","Close Feed");h.setAttribute("tabindex",
|
|
"0");h.setAttribute("role","button");h.addEventListener("keydown",function(k){32!==k.keyCode&&13!==k.keyCode||d(k)});h.onclick=d;var l=document.createElement("i");l.className="fa fa-refresh ab-refresh-button";null==this.lastUpdated&&(l.className+=" fa-spin");l.setAttribute("aria-label","Refresh Feed");l.setAttribute("tabindex","0");l.setAttribute("role","button");l.addEventListener("keydown",function(k){32!==k.keyCode&&13!==k.keyCode||c(k)});l.onclick=c;f.appendChild(l);f.appendChild(h);g.appendChild(nd(this,
|
|
a,b));g.onscroll=function(){pd(e,a,g)};return g};function td(a,b,c,d,e,g){if(Ea(b)){for(var f=[],h=0;h<b.length;h++)b[h]instanceof Rb&&f.push(b[h]);a.cards=f;a.lastUpdated=c;null!=d&&(d.setAttribute("aria-busy","false"),null==a.lastUpdated?ld(e,d):(b=d.querySelectorAll(".ab-feed-body")[0],null!=b&&(g=nd(a,e,g),b.parentNode.replaceChild(g,b),pd(a,e,g.parentNode))))}}var ec=500,md="data-update-subscription-id",rd="data-last-requested-refresh",sd=1E4;D.Feed=kd;D.Feed.prototype.getUnreadCardCount=kd.prototype.Ge;function od(a,b){kd.call(this,a,b)}oa(od,kd);od.prototype.mg=function(){return kd.prototype.Ge.call(this)};od.prototype.Ia=function(a,b){a.Ia(b,!0)};od.prototype.Ha=function(a,b){a.Ha(b,!0)};od.prototype.se=function(a){a.Ja()};D.ContentCards=od;D.ContentCards.prototype.getUnviewedCardCount=od.prototype.mg;function Va(){this.h=!1;this.j=[]};function ud(a){this.Za=a}ud.prototype.ca=function(a){return null==this.Za||this.Za===a[0]};ud.prototype.A=function(){return this.Za};function vd(a,b,c,d){this.Le=a;this.Cc=b;this.ib=c;this.G=d;this.Cc===wd&&this.ib!==xd&&this.ib!==yd&&this.ib!==zd&&this.ib!==Ad&&(this.G=Ka(this.G))}
|
|
vd.prototype.ca=function(a){var b=null;null!=a&&(b=a[this.Le]);switch(this.ib){case Bd:return null!=b&&b.valueOf()===this.G.valueOf();case Cd:return null==b||b.valueOf()!==this.G.valueOf();case Dd:return typeof b===typeof this.G&&b>this.G;case xd:return this.Cc===wd?null!=b&&Fa(b)&&((new Date).valueOf()-b.valueOf())/1E3<=this.G:typeof b===typeof this.G&&b>=this.G;case Ed:return typeof b===typeof this.G&&b<this.G;case yd:return this.Cc===wd?null!=b&&Fa(b)&&((new Date).valueOf()-b.valueOf())/1E3>=this.G:
|
|
typeof b===typeof this.G&&b<=this.G;case Fd:return null!=b&&"string"===typeof b&&typeof b===typeof this.G&&null!=b.match(this.G);case Gd:return null!=b;case Hd:return null==b;case zd:return null!=b&&Fa(b)&&(b.valueOf()-(new Date).valueOf())/1E3<this.G;case Ad:return null!=b&&Fa(b)&&(b.valueOf()-(new Date).valueOf())/1E3>this.G;case Id:return null==b||typeof b!==typeof this.G||"string"!==typeof b||null==b.match(this.G)}return!1};
|
|
vd.prototype.A=function(){var a=this.G;Fa(this.G)&&(a=Ja(a.valueOf()));return{k:this.Le,t:this.Cc,c:this.ib,v:a}};var Bd=1,Cd=2,Dd=3,xd=4,Ed=5,yd=6,Fd=10,Gd=11,Hd=12,zd=15,Ad=16,Id=17,wd="date";function Jd(a){this.filters=a}Jd.prototype.ca=function(a){for(var b=!0,c=0;c<this.filters.length;c++){for(var d=this.filters[c],e=!1,g=0;g<d.length;g++)if(d[g].ca(a)){e=!0;break}if(!e){b=!1;break}}return b};function Kd(a){if(null==a||!Ea(a))return null;for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],g=0;g<e.length;g++){var f=e[g];d.push(new vd(f.property_key,f.property_type,f.comparator,f.property_value))}b.push(d)}return new Jd(b)}
|
|
Jd.prototype.A=function(){for(var a=[],b=0;b<this.filters.length;b++){for(var c=this.filters[b],d=[],e=0;e<c.length;e++)d.push(c[e].A());a.push(d)}return a};function Ld(a){for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],g=0;g<e.length;g++){var f=e[g];d.push(new vd(f.k,f.t,f.c,f.v))}b.push(d)}return new Jd(b)};function Md(a,b){this.Za=a;this.bb=b}Md.prototype.ca=function(a){if(null==this.Za||null==this.bb)return!1;var b=a[1];return a[0]===this.Za&&this.bb.ca(b)};Md.prototype.A=function(){return{e:this.Za,pf:this.bb.A()}};function Nd(a,b){this.Wa=a;this.wb=b}Nd.prototype.ca=function(a){if(null==this.Wa)return!1;var b=Od(a[0],this.Wa);if(!b)return!1;var c=null==this.wb||0===this.wb.length;if(null!=this.wb)for(var d=0;d<this.wb.length;d++)if(this.wb[d]===a[1]){c=!0;break}return b&&c};Nd.prototype.A=function(){return this.Wa};function Pd(a){this.ab=a}Pd.prototype.ca=function(a){return null==this.ab||a[0]===this.ab};Pd.prototype.A=function(){return this.ab};function Qd(a,b){this.ab=a;this.bb=b}Qd.prototype.ca=function(a){if(null==this.ab||null==this.bb)return!1;var b=a[1];return a[0]===this.ab&&this.bb.ca(b)};Qd.prototype.A=function(){return{id:this.ab,pf:this.bb.A()}};function Rd(a){this.Wa=a}Rd.prototype.ca=function(a){return null==this.Wa?!0:Od(a[0],this.Wa)};Rd.prototype.A=function(){return this.Wa};var Sd={OPEN:"open",Rc:"purchase",Sd:"push_click",Gc:"custom_event",Vb:"iam_click",V:"test"};function Td(a,b){this.type=a;this.data=b}function Ud(a,b,c){return Vd[a.type]===b&&(null==a.data||a.data.ca(c))}function Od(a,b){var c=null;try{c=window.atob(a)}catch(d){return w.info("Failed to unencode analytics id "+a+": "+d.message),!1}return b===c.split("_")[0]}
|
|
function Wd(a){var b=a.type;switch(b){case Xd:var c=null;break;case Yd:a=a.data;c=new Pd(a?a.product_id:null);break;case Zd:a=a.data;c=new Qd(a?a.product_id:null,a?Kd(a.property_filters):null);break;case $d:a=a.data;c=new Rd(a?a.campaign_id:null);break;case ae:a=a.data;c=new ud(a?a.event_name:null);break;case be:a=a.data;c=new Md(a?a.event_name:null,a?Kd(a.property_filters):null);break;case ce:a=a.data;c=new Nd(a?a.id:null,a?a.buttons:null);break;case de:c=null}return new Td(b,c)}
|
|
Td.prototype.A=function(){return{t:this.type,d:this.data?this.data.A():null}};function ee(a){switch(a.t){case Xd:var b=null;break;case Yd:b=new Pd(a.d);break;case Zd:b=a.d||{};b=new Qd(b.id,Ld(b.pf||[]));break;case $d:b=new Rd(a.d);break;case ae:b=new ud(a.d);break;case be:b=a.d||{};b=new Md(b.e,Ld(b.pf||[]));break;case ce:b=new Nd(a.d);break;case de:b=null}return new Td(a.t,b)}
|
|
var Xd="open",Yd="purchase",Zd="purchase_property",$d="push_click",ae="custom_event",be="custom_event_property",ce="iam_click",de="test",Vd={};Vd[Xd]=Sd.OPEN;Vd[Yd]=Sd.Rc;Vd[Zd]=Sd.Rc;Vd[$d]=Sd.Sd;Vd[ae]=Sd.Gc;Vd[be]=Sd.Gc;Vd[ce]=Sd.Vb;Vd[de]=Sd.V;function fe(a,b,c,d,e,g,f,h,l,k,m,n){this.id=a;this.jb=b||[];void 0===c&&(c=null);this.startTime=c;void 0===d&&(d=null);this.endTime=d;this.priority=e||0;this.type=g;this.Ya=h||0;null==k&&(k=1E3*(this.Ya+30));this.Ka=k;this.data=f;null==l&&(l=ge);this.Gb=l;this.Ke=m;this.Aa=n||null}
|
|
function he(a,b){var c=(new Date).valueOf()-b;(b=null==b||isNaN(c)||null==a.Ka||c<a.Ka)||w.info("Trigger action "+a.type+" is no longer eligible for display - fired "+c+"ms ago and has a timeout of "+a.Ka+"ms");return!b}fe.prototype.A=function(){for(var a=[],b=0;b<this.jb.length;b++)a.push(this.jb[b].A());return{i:this.id,c:a,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.Ya,r:this.Gb,tm:this.Ka,ss:this.Ke,ld:this.Aa}};
|
|
function ie(a){for(var b=[],c=0;c<a.c.length;c++)b.push(ee(a.c[c]));return new fe(a.i,b,Ma(a.s),Ma(a.e),a.p,a.t,a.da,a.d,a.r,a.tm,a.ss,a.ld)}var ge=-1,je={Jc:"inapp",Xd:"templated_iam"};function ke(a,b){a=Math.ceil(a);b=Math.floor(b);return Math.floor(Math.random()*(b-a+1))+a};function le(a){var b,c=!1;try{if(window.XMLHttpRequest&&(b=new XMLHttpRequest)&&"undefined"!==typeof b.withCredentials||("undefined"!==typeof XDomainRequest?(b=new XDomainRequest,c=b.async=!0):w.error("This browser does not have any supported ajax options!")),null!=b){var d=function(){"function"===typeof a.error&&a.error(b.status);"function"===typeof a.qc&&a.qc(!1)};b.onload=function(){if(c)var h=!0;else{if(4!==b.readyState)return;h=200<=b.status&&300>b.status||304===b.status}if(h){if("function"===
|
|
typeof a.h){try{var l=JSON.parse(b.responseText)}catch(k){a.h({error:""===b.responseText?"empty_response":"invalid_json_response",response:b.responseText})}l&&a.h(l)}"function"===typeof a.qc&&a.qc(!0)}else d()};b.onerror=function(){d()};b.ontimeout=function(){d()};var e=JSON.stringify(a.data);if(c)b.onprogress=function(){},b.open("post",a.url);else{b.open("POST",a.url,!0);b.setRequestHeader("Content-type","application/json");b.setRequestHeader("X-Requested-With","XMLHttpRequest");for(var g=a.headers||
|
|
[],f=0;f<g.length;f++)b.setRequestHeader(g[f][0],g[f][1])}b.send(e)}}catch(h){w.error("Network request error: "+h.message)}};function me(a,b,c,d,e,g,f,h,l,k,m){this.$=a;this.Sf=b;this.oe=c;this.Nf=d;this.tb=e;this.gb=0;this.fc=k.R.Ee;this.ie=null;this.D=g;this.cc=f;this.f=h;this.I=l;this.b=k;this.Lf=m;this.bd=new Bb;this.Kf=1E3;this.Jf=6E4}function ne(a,b){var c=oe(a.cc),d=c.rc(),e=R(a.b,P.Tb);Ia(e,d)||(b.device=d);b.api_key=a.$;b.time=Ja((new Date).valueOf(),!0);b.sdk_version=a.Sf;a.oe&&(b.sdk_flavor=a.oe);b.app_version=a.Nf;b.device_id=c.id;return b}
|
|
function pe(a,b,c){if(c.error){var d=c.error;switch(d){case "empty_response":return J(a.b,[new A(a.f.o(),x.Kc,(new Date).valueOf(),a.D.pd,{e:"Received successful response with empty body."})]),w.info("Received successful response with empty body."),!1;case "invalid_json_response":return J(a.b,[new A(a.f.o(),x.Kc,(new Date).valueOf(),a.D.pd,{e:"Received successful response with invalid JSON: "+c.response})]),w.info("Received successful response with invalid JSON"),!1;case "invalid_api_key":d='The API key "'+
|
|
b.api_key+'" is invalid for the baseUrl '+a.tb;break;case "blacklisted":d="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case "no_device_identifier":d="No device identifier. Please contact support@braze.com"}w.error("Backend error: "+d);return!1}return!0}
|
|
function qe(a,b,c,d,e,g,f){null==d&&(d=!0);d&&re(a);var h=qb(a.b),l=ub(a.b),k=se(a.D);if(0<h.length)for(var m=0;m<h.length;m++)h[m].type===x.Wd&&(k=!0);var n=c||k;if(!d||0!==h.length||0!==l.length||b||n){var t=ue(a,b,n);if(0<h.length){b=[];for(c=0;c<h.length;c++)b.push(h[c].rc());t.events=b}0<l.length&&(t.attributes=l);t=ne(a,t);var r=ve(a,t);n&&a.gb++;we(t,function(){le({url:""+a.tb+"/data/",data:t,headers:r,h:function(v){n&&(a.gb=Math.max(a.gb-1,0));if(pe(a,t,v)){var B=a.I;if(null!=v&&null!=v.config){var z=
|
|
v.config;if(z.time>xe(B).Cb){z=new ye(z.time,z.events_blacklist,z.attributes_blacklist,z.purchases_blacklist,z.messaging_session_timeout,z.vapid_public_key,z.content_cards);var E=!1;null!=z.pa&&xe(B).pa!==z.pa&&(E=!0);var G=!1;null!=z.xb.enabled&&(xe(B).xb.enabled||!1)!==z.xb.enabled&&(G=!0);B.lc=z;Q(B.b,P.Vd,z.A());E&&Db(B.fd);G&&Db(B.Zd)}}if(null==t.respond_with||t.respond_with.user_id==a.f.o())null!=t.device&&Q(a.b,P.Tb,t.device),a.Lf(v),"function"===typeof e&&e()}},error:function(){n&&(a.gb=Math.max(a.gb-
|
|
1,0));J(a.b,h);for(var v=0;v<l.length;v++)sb(a.b,l[v]);"function"===typeof g&&g()},qc:function(v){"function"===typeof f&&f(v);if(d)if(v)ze(a);else{v=a.ie;if(null==v||v<1E3*a.fc)v=1E3*a.fc;ze(a,Math.min(3E5,ke(1E3*a.fc,3*v)))}}})});k&&(w.info("Invoking new session subscriptions"),Db(a.bd))}else ze(a),"function"===typeof f&&f(!0)}function we(a,b){var c=a.device;c&&c.os_version instanceof Promise?c.os_version.then(function(d){a.device.os_version=d;b()}):b()}
|
|
function Ae(a,b){var c="HTTP error ";null!=a&&(c+=a+" ");w.error(c+b)}
|
|
function Be(a,b,c,d,e){var g=ue(a,!1,!1);g=ne(a,g);g.template={trigger_id:b.La,trigger_event_type:c};null!=d&&(g.template.data=d.rc());var f=ve(a,g);we(g,function(){le({url:""+a.tb+"/template/",data:g,headers:f,h:function(h){pe(a,g,h)?null==h||null==h.templated_message?a.K(b.La,Sc.qb):(h=h.templated_message,h.type!==je.Jc?a.K(b.La,Sc.sb):(h=sc(h.data),null==h?a.K(b.La,Sc.sb):"function"===typeof b.Xe?b.Xe(h):a.K(b.La,Sc.qb))):(a.K(b.La,Sc.qb),"function"===typeof b.We&&b.We())},error:function(h){var l=
|
|
"getting user personalization for message "+b.La;if((new Date).valueOf()-b.uc>b.Ka)a.K(b.La,Sc.qb);else{var k=Math.min(b.Ka,a.Jf),m=a.Kf;null==e&&(e=m);var n=Math.min(k,ke(m,3*e));l+=". Retrying in "+n+"ms";setTimeout(function(){Be(a,b,c,d,n)},n)}Ae(h,l)}})})}q=me.prototype;
|
|
q.Ja=function(a,b,c){var d=this,e=ne(this,{});e.last_full_sync_at=a;e.last_card_updated_at=b;a=this.f.o();null!=a&&(e.user_id=a);var g=[["X-Braze-Api-Key",this.$],["X-Braze-DataRequest","true"],["X-Braze-ContentCardsRequest","true"]];we(e,function(){le({url:""+d.tb+"/content_cards/sync",data:e,headers:g,h:function(f){pe(d,e,f)&&c(f)},error:function(f){Ae(f,"retrieving content cards")}})})};
|
|
function ue(a,b,c){var d={};b&&(d.feed=!0);c&&(d.triggers=!0);b=a.f.o();null!=b&&(d.user_id=b);d.config={config_time:xe(a.I).Cb};return{respond_with:d}}function ve(a,b){a=[["X-Braze-Api-Key",a.$]];var c=!1;null!=b.respond_with&&b.respond_with.triggers&&(a.push(["X-Braze-TriggersRequest","true"]),c=!0);null!=b.respond_with&&b.respond_with.feed&&(a.push(["X-Braze-FeedRequest","true"]),c=!0);c&&a.push(["X-Braze-DataRequest","true"]);return a}
|
|
function Ce(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)return w.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;var b={};null!=a.cardId&&(b.card_ids=[a.cardId]);null!=a.campaignId&&(b.campaign_ids=[a.campaignId]);null!=a.triggerId&&(b.trigger_ids=[a.triggerId]);return b}function De(a){for(var b=null,c=0;c<a.length;c++)null!=a[c].id&&""!==a[c].id&&(b=b||{},b.ids=b.ids||[],b.ids.push(a[c].id));return b}
|
|
function ze(a,b){a.ae||(null==b&&(b=1E3*a.fc),re(a),a.hc=setTimeout(function(){if(document.hidden){var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),qe(a))};document.addEventListener("visibilitychange",c,!1)}else qe(a)},b),a.ie=b)}function re(a){null!=a.hc&&(clearTimeout(a.hc),a.hc=null)}q.sd=function(){this.ae=!1;ze(this)};q.zb=function(){this.bd.L();re(this);this.ae=!0;qe(this,null,null,!1);this.hc=null};function Ee(a,b){Cb(a.bd,b)}
|
|
q.Bc=function(a){var b=this,c=this.D.pd(),d=Wa(this.D);if(c=c!==d)ob(this.b,rb.Hc),ob(this.b,rb.bc);qe(this,null,!1,null,null,null);ab(this);if(c&&null!=a&&(a.Bb()||a.Ga())){var e=function(){a.Pf?w.info("Push token maintenance is disabled, not refreshing token for backend."):a.subscribe()};c=Ba.Pa;wa(new ra(c),c.M.Sc,function(g,f){f&&e()},function(){var g=R(b.b,P.$b);(null==g||g)&&e()})}};
|
|
q.Xa=function(a,b,c){var d=this.f.o();if(d!==a){var e=this.D,g=pb(e.b,rb.Qa);null!=g&&(e.b.ic.remove(rb.Qa),g=Fe(e,(new Date).valueOf(),g),null==g||J(e.b,[g]));e=this.f;g=null==e.o();nb(e.b,rb.bc,new Pa(a));if(g){e=e.b;g=e.R.Y(P.Ma);if(null!=g){var f=P.Jd,h=g[f];null!=h&&(g[f]=void 0,e.R.store(P.Ma,g),h.user_id=a,sb(e,h))}f=pb(e,rb.Qa);g=null;null!=f&&(g=f.ga);f=qb(e);if(null!=f)for(h=0;h<f.length;h++){var l=f[h];null==l.Lb&&l.sessionId==g&&(l.Lb=a);null==l||J(e,[l])}}for(e=0;e<b.length;e++)b[e].Xa(null==
|
|
d);null!=d&&S(this.b,P.ob);S(this.b,P.Tb);this.Bc(c);w.info('Changed user to "'+a+'".')}else w.info('Current user is already "'+a+'". Doing nothing.')};q.mb=function(){return new H(this.f,this)};q.Ib=function(a){re(this);Wa(this.D);qe(this,null,null,null,null,null,a)};q.Dc=function(){Wa(this.D);qe(this,!0)};function Ge(a,b,c){Wa(a.D);w.info("Requesting explicit trigger refresh.");qe(a,null,!0,null,b,c)}
|
|
q.ud=function(a,b){var c=new Va,d=Wa(this.D);if(-1!==xe(this.I).De.indexOf(a))return w.info('Custom Event "'+a+'" is blocklisted, ignoring.'),c;c.j.push(new A(this.f.o(),x.CustomEvent,(new Date).valueOf(),d,{n:a,p:b}));c.h=J(this.b,c.j);return c};function $a(a,b,c,d){var e=new Va,g=Wa(a.D);if(bb(a.I,c))return w.info('Custom Attribute "'+c+'" is blocklisted, ignoring.'),e;e.j.push(new A(a.f.o(),b,(new Date).valueOf(),g,{key:c,value:d}));e.h=J(a.b,e.j);return e}
|
|
q.vd=function(a,b,c,d,e){var g=new Va,f=Wa(this.D);if(-1!==xe(this.I).Me.indexOf(a))return w.info('Purchase "'+a+'" is blocklisted, ignoring.'),g;g.j.push(new A(this.f.o(),x.xf,(new Date).valueOf(),f,{pid:a,c:c,p:b,q:d,pr:e}));g.h=J(this.b,g.j);return g};q.Ec=function(a,b,c,d,e,g){var f=new Va,h=Wa(this.D);b={latitude:b,longitude:c};null!=d&&(b.altitude=d);null!=e&&(b.ll_accuracy=e);null!=g&&(b.alt_accuracy=g);f.j.push(new A(a,x.Ef,(new Date).valueOf(),h,b));f.h=J(this.b,f.j);return f};
|
|
q.Fb=function(a){var b=new Va,c=Wa(this.D);if(a instanceof tc)b.j.push(new A(this.f.o(),x.hf,(new Date).valueOf(),c,{trigger_ids:[a.triggerId]}));else{if(!a.zd())return w.info("This in-app message has already received an impression. Ignoring analytics event."),b;a=Ce(a);if(null==a)return b;b.j.push(new A(this.f.o(),x.wf,(new Date).valueOf(),c,a))}b.h=J(this.b,b.j);return b};
|
|
q.zc=function(a){var b=new Va,c=Wa(this.D);if(!a.cb())return w.info("This in-app message has already received a click. Ignoring analytics event."),b;a=Ce(a);if(null==a)return b;b.j.push(new A(this.f.o(),x.Qd,(new Date).valueOf(),c,a));b.h=J(this.b,b.j);return b};
|
|
q.yc=function(a,b){var c=new Va,d=Wa(this.D);if(!a.cb())return w.info("This in-app message button has already received a click. Ignoring analytics event."),c;b=Ce(b);if(null==b)return c;if(a.id===ad)return w.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),c;null!=a.id&&(b.bid=a.id);c.j.push(new A(this.f.o(),x.Pd,(new Date).valueOf(),d,b));c.h=J(this.b,c.j);return c};
|
|
q.Eb=function(a,b,c){var d=new Va,e=Wa(this.D);if(!a.cb(c))return w.info("This in-app message has already received a click. Ignoring analytics event."),d;a=Ce(a);if(null==a)return d;c=x.Qd;null!=b&&(a.bid=b,c=x.Pd);d.j.push(new A(this.f.o(),c,(new Date).valueOf(),e,a));d.h=J(this.b,d.j);return d};q.K=function(a,b){var c=new Va,d=Wa(this.D);a={trigger_ids:[a],error_code:b};c.j.push(new A(this.f.o(),x.vf,(new Date).valueOf(),d,a));c.h=J(this.b,c.j);return c};
|
|
q.Ia=function(a,b){var c=new Va,d=Wa(this.D),e=[],g=[];var f=b?R(this.b,P.fb)||{}:R(this.b,P.ob)||{};for(var h=0;h<a.length;h++)a[h].zd(),a[h]instanceof ac?g.push(a[h]):e.push(a[h]),f[a[h].id]=!0;a=De(e);g=De(g);if(null==a&&null==g)return c;b?Q(this.b,P.fb,f):Q(this.b,P.ob,f);null!=a&&c.j.push(new A(this.f.o(),b?x.ef:x.bf,(new Date).valueOf(),d,a));null!=g&&b&&c.j.push(new A(this.f.o(),x.gf,(new Date).valueOf(),d,g));c.h=J(this.b,c.j);return c};
|
|
q.Ha=function(a,b){var c=new Va,d=Wa(this.D);a.cb();if(null==a.url||""===a.url)return w.info("Card "+a.id+" has no url. Not logging click to Braze servers."),c;if(b){var e=R(this.b,P.eb)||{};e[a.id]=!0;Q(this.b,P.eb,e)}a=De([a]);if(null==a)return c;c.j.push(new A(this.f.o(),b?x.cf:x.af,(new Date).valueOf(),d,a));c.h=J(this.b,c.j);return c};
|
|
q.xc=function(a){var b=new Va,c=Wa(this.D);if(!a.yd())return w.info("Card "+a.id+" refused this dismissal. Ignoring analytics event."),b;var d=R(this.b,P.sa)||{};d[a.id]=!0;Q(this.b,P.sa,d);a=De([a]);if(null==a)return b;b.j.push(new A(this.f.o(),x.df,(new Date).valueOf(),c,a));b.h=J(this.b,b.j);return b};function He(a,b){var c=new Va,d=Wa(a.D);c.j.push(new A(a.f.o(),x.yf,(new Date).valueOf(),d,{n:b}));c.h=J(a.b,c.j);return c}
|
|
function Ie(a,b,c){var d=Wa(a.D);return new A(a.f.o(),x.Gf,b,d,{cid:c})}function ab(a){var b=Ba.Pa;(new ra(b)).setItem(b.M.nf,1,{baseUrl:a.tb,data:{api_key:a.$,device_id:oe(a.cc).id},userId:a.f.o()})};var Je={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};D.DeviceProperties=Je;function Ke(a){this.id=a}Ke.prototype.rc=function(){var a={};null!=this.browser&&(a.browser=this.browser);null!=this.browserVersion&&(a.browser_version=this.browserVersion);null!=this.os&&(a.os_version=this.os);null!=this.resolution&&(a.resolution=this.resolution);null!=this.language&&(a.locale=this.language);null!=this.timeZone&&(a.time_zone=this.timeZone);null!=this.userAgent&&(a.user_agent=this.userAgent);return a};function Le(a,b){this.b=a;null==b&&(b=Da(Je));this.be=b}
|
|
function oe(a){var b=pb(a.b,rb.Hc);null==b&&(b=new Pa(qa.$a()),nb(a.b,rb.Hc,b));b=new Ke(b.ga);for(var c=0;c<a.be.length;c++){var d=a.be[c];switch(d){case "browser":b[d]=lb.Va;break;case "browserVersion":b[d]=lb.version;break;case "os":var e=lb.ea?lb.ea||null:(e=R(a.b,P.Tb))&&e.os_version?e.os_version:lb.lb();b[d]=e;break;case "resolution":b[d]=screen.width+"x"+screen.height;break;case "language":b[d]=lb.language;break;case "timeZone":a:{e=new Date;if("undefined"!==typeof Intl&&"function"===typeof Intl.DateTimeFormat)try{if("function"===
|
|
typeof Intl.DateTimeFormat().resolvedOptions){var g=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=g&&""!==g){var f=g;break a}}}catch(k){w.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+k.message)}f=e.getTimezoneOffset();e=parseInt(f/60);var h=parseInt(f%60),l="GMT";0!==f&&(l=l+(0>f?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));f=l}b[d]=f;break;case "userAgent":b[d]=
|
|
lb.userAgent}}return b};function Me(a){this.Ca=a;this.nc=null;this.re="geolocation"in navigator}Me.prototype.Vf=function(a){var b=this;if(document.hidden){Ne(this);var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),b.watchPosition())};document.addEventListener("visibilitychange",c,!1)}this.Ca.Ec(a.coords.latitude,a.coords.longitude,a.coords.accuracy,a.coords.altitude,a.coords.altitudeAccuracy)};
|
|
Me.prototype.Uf=function(a){a.code===a.PERMISSION_DENIED?w.info(a.message):w.error("Could not detect user location: "+a.code+" - "+a.message)};Me.prototype.watchPosition=function(){this.re?(Ne(this),this.nc=navigator.geolocation.watchPosition(this.Vf.bind(this),this.Uf.bind(this)),w.info("Requested Geolocation")):w.info(this.Pc)};function Ne(a){a.re?null!=a.nc&&(navigator.geolocation.clearWatch(a.nc),a.nc=null,w.info("Stopped watching Geolocation")):w.info(a.Pc)};function Oe(a,b,c,d,e){this.endpoint=a||null;this.ze=b||null;this.publicKey=c||null;this.Vg=d||null;this.pa=e||null}Oe.prototype.A=function(){return{e:this.endpoint,c:this.ze,p:this.publicKey,u:this.Vg,v:this.pa}};function Pe(a,b,c,d,e,g,f,h,l,k){this.Ca=a;this.$=b;this.cc=c;this.Rf=d;this.pe=e||"/service-worker.js";this.ne=g;this.I=f;this.ad=h||!1;this.Pf=l||!1;this.b=k;this.mc="serviceWorker"in navigator&&"undefined"!==typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window;this.dd="safari"in window&&"pushNotification"in window.safari}q=Pe.prototype;q.oa=function(){return this.mc||this.dd};
|
|
q.Ga=function(){var a=this.oa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,b=this.oa()&&(!("Notification"in window)||null==window.Notification);return a||b};q.Bb=function(){return this.oa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission};
|
|
q.td=function(a,b,c){var d=this;c=this.ne||c;this.oa()?this.mc?Qe(this).then(function(e){d.Ga()?b():null==e?b():e.pushManager.getSubscription().then(function(g){g?a():b()}).catch(function(){b()})}).catch(function(){b()}):null==c||""===c?w.error("You must supply the safariWebsitePushId argument in order to use isPushGranted on Safari"):"granted"===window.safari.pushNotification.permission(c).permission?a():b():b()};
|
|
function Re(a,b,c,d,e,g){b.unsubscribe().then(function(f){f?Se(a,c,d,e,g):(w.error("Failed to unsubscribe device from push."),"function"===typeof g&&g(!1))}).catch(function(f){w.error("Push unsubscription error: "+f);"function"===typeof g&&g(!1)})}
|
|
function Te(a,b,c,d){var e=function(h){if("string"===typeof h)return h;if(0!==h.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return h.endpoint;var l=h.endpoint;h.subscriptionId&&-1===h.endpoint.indexOf(h.subscriptionId)&&(l=h.endpoint+"/"+h.subscriptionId);return l}(b),g=null,f=null;if(null!=b.getKey)try{g=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("p256dh")))),f=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("auth"))))}catch(h){if("invalid arguments"!==
|
|
h.message)throw h;}b=function(h){var l;return h.options&&(l=h.options.applicationServerKey)&&l.byteLength&&0<l.byteLength?btoa(String.fromCharCode.apply(null,new Uint8Array(l))).replace(/\+/g,"-").replace(/\//g,"_"):null}(b);a.Ca.Ad(e,d,g,f,b);e&&"function"===typeof c&&c(e,g,f)}function Ue(a,b,c){a.Ca.Hb(!1);w.info(b);"function"===typeof c&&c(!1)}
|
|
function Ve(a,b,c,d,e){if("default"===c.permission)try{window.safari.pushNotification.requestPermission(a.Rf,b,{api_key:a.$,device_id:oe(a.cc).id},function(g){"granted"===g.permission&&a.Ca.Fd("opted_in");Ve(a,b,g,d,e)})}catch(g){Ue(a,"Could not request permission for push: "+g,e)}else"denied"===c.permission?Ue(a,"The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",e):"granted"===c.permission&&(w.info("Device successfully subscribed to push."),
|
|
Te(a,c.deviceToken,d,new Date))}function We(a,b,c){function d(f){switch(f){case "granted":"function"===typeof a&&a();break;case "default":"function"===typeof b&&b();break;case "denied":"function"===typeof c&&c();break;default:w.error("Received unexpected permission result "+f)}}var e=!1,g=window.Notification.requestPermission(function(f){e&&d(f)});g?g.then(function(f){d(f)}):e=!0}
|
|
function Se(a,b,c,d,e){var g={userVisibleOnly:!0};null!=c&&(g.applicationServerKey=c);b.pushManager.subscribe(g).then(function(f){w.info("Device successfully subscribed to push.");Te(a,f,d,new Date)}).catch(function(f){a.Ga()?(w.info("Permission for push notifications was denied."),"function"===typeof e&&e(!1)):w.error("Push subscription failed: "+f)})}
|
|
function Qe(a){return a.ad?navigator.serviceWorker.getRegistration():navigator.serviceWorker.register(a.pe).then(function(){return navigator.serviceWorker.ready.then(function(b){b&&"function"===typeof b.update&&b.update().catch(function(c){w.info("ServiceWorker update failed: "+c)});return b})})}
|
|
q.subscribe=function(a,b,c){var d=this;a=this.ne||a;if(this.oa())if(this.mc){if(!this.ad&&null!=window.location){var e=this.pe;-1===e.indexOf(window.location.host)&&(e=window.location.host+e);-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e);if(0!==window.location.href.indexOf(e.substr(0,e.lastIndexOf("/")+1))){w.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+
|
|
e+")");return}}if(this.Ga())Ue(this,"Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",c);else if(this.I&&!xe(this.I).pa&&0===xe(this.I).Cb)w.info("Waiting for VAPID key from server config before subscribing to push."),Xe(this.I,function(){d.subscribe(a,b,c)});else{var g=this.Bb();We(function(){g||d.Ca.Fd("opted_in");Qe(d).then(function(f){null==f?(w.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerAppboyPushMessages."),
|
|
"function"===typeof c&&c()):f.pushManager.getSubscription().then(function(h){var l=null;d.I&&null!=xe(d.I).pa&&(l=pa.Ug(xe(d.I).pa));if(h){var k=null,m=null,n=R(d.b,P.$b);if(n&&!Ea(n)){try{var t=(new Oe(n.e,Ma(n.c),n.p,n.u,n.v)).ze}catch(r){t=null}null==t||isNaN(t.getTime())||0===t.getTime()||(k=t,m=new Date(k),m.setMonth(k.getMonth()+6))}null!=l&&h.options&&h.options.applicationServerKey&&h.options.applicationServerKey.byteLength&&0<h.options.applicationServerKey.byteLength&&!Ia(l,new Uint8Array(h.options.applicationServerKey))?
|
|
(12<h.options.applicationServerKey.byteLength?w.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):w.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),Re(d,h,f,l,b,c)):h.expirationTime&&new Date(h.expirationTime)<=(new Date).valueOf()?(w.info("Push subscription is expired, creating new subscription."),Re(d,h,f,l,b,
|
|
c)):n&&Ea(n)?Re(d,h,f,l,b,c):null==m?(w.info("No push subscription creation date found, creating new subscription."),Re(d,h,f,l,b,c)):m<=(new Date).valueOf()?(w.info("Push subscription older than 6 months, creating new subscription."),Re(d,h,f,l,b,c)):(w.info("Device already subscribed to push, sending existing subscription to backend."),Te(d,h,b,k))}else Se(d,f,l,b,c)}).catch(function(h){w.error("Error checking current push subscriptions: "+h)})}).catch(function(f){w.error("ServiceWorker registration failed: "+
|
|
f)})},function(){var f="Permission for push notifications was ignored.";d.Ga()&&(f+=" The browser has automatically blocked further permission requests for a period (probably 1 week).");w.info(f);"function"===typeof c&&c(!0)},function(){w.info("Permission for push notifications was denied.");"function"===typeof c&&c(!1)})}}else this.dd&&(null==a||""===a?w.error("You must supply the safariWebsitePushId argument in order to use registerAppboyPushMessages on Safari"):(e=window.safari.pushNotification.permission(a),
|
|
Ve(this,a,e,b,c)));else w.info(this.Pc)};
|
|
q.unsubscribe=function(a,b){var c=this;this.oa()?this.mc?navigator.serviceWorker.getRegistration().then(function(d){d&&d.pushManager.getSubscription().then(function(e){e&&(c.Ca.Hb(!0),e.unsubscribe().then(function(g){g?(w.info("Device successfully unsubscribed from push."),"function"===typeof a&&a()):(w.error("Failed to unsubscribe device from push."),"function"===typeof b&&b());c.ad||(d.unregister(),w.info("Service worker successfully unregistered."))}).catch(function(g){w.error("Push unsubscription error: "+g);
|
|
"function"===typeof b&&b()}))}).catch(function(e){w.error("Error unsubscribing from push: "+e);"function"===typeof b&&b()})}):this.dd&&(this.Ca.Hb(!0),w.info("Device unsubscribed from push."),"function"===typeof a&&a()):w.info(this.Pc)};function ye(a,b,c,d,e,g,f){this.Cb=a||0;this.De=b||[];this.ve=c||[];this.Me=d||[];this.wd=e;if(null==e||""===e)this.wd=null;this.pa=g||null;this.xb=f||{}}ye.prototype.A=function(){return{s:"3.2.0",l:this.Cb,e:this.De,a:this.ve,p:this.Me,m:this.wd,v:this.pa,c:this.xb}};function Ye(a){this.b=a;this.fd=new Bb;this.Zd=new Bb;this.lc=null}function xe(a){if(null==a.lc){var b=R(a.b,P.Vd);if(null!=b){var c=b.l;"3.2.0"!==b.s&&(c=0);b=new ye(c,b.e,b.a,b.p,b.m,b.v,b.c)}else b=new ye;a.lc=b}return a.lc}function Xe(a,b){b=Cb(a.fd,b);a.$d&&a.fd.N(a.$d);a.$d=b}function Ze(a,b){Cb(a.Zd,b)}function bb(a,b){return-1!==xe(a).ve.indexOf(b)};function $e(a,b,c,d){this.b=a;this.f=b;this.I=c;this.ub=1E3;d=parseFloat(d);isNaN(d)&&(d=1800);d<this.ub/1E3&&(w.info("Specified session timeout of "+d+"s is too small, using the minimum session timeout of "+this.ub/1E3+"s instead."),d=this.ub/1E3);this.Tf=d}function Fe(a,b,c){return new A(a.f.o(),x.If,b,c.ga,{d:Ja(b-c.yb)})}$e.prototype.pd=function(){var a=pb(this.b,rb.Qa);return null==a?null:a.ga};
|
|
function se(a){var b=(new Date).valueOf(),c=xe(a.I).wd,d=R(a.b,P.Xb);if(null!=d&&null==c)return!1;(c=null==d||b-d>1E3*c)&&Q(a.b,P.Xb,b);return c}
|
|
function Wa(a){var b=(new Date).valueOf(),c=b+1E3*a.Tf,d=pb(a.b,rb.Qa);if(null==d||(b-d.yb<a.ub?0:d.md<b)){var e="Generating session start event with time "+b;if(null!=d){var g=d.Db;g-d.yb<a.ub&&(g=d.yb+a.$g);d=Fe(a,g,d);null==d||J(a.b,[d]);e+=" (old session ended "+g+")"}e+=". Will expire "+c.valueOf();w.info(e);c=new Pa(qa.$a(),c);e=new A(a.f.o(),x.Wd,b,c.ga);null==e||J(a.b,[e]);nb(a.b,rb.Qa,c);null==R(a.b,P.Xb)&&Q(a.b,P.Xb,b);return c.ga}d.Db=b;d.md=c;nb(a.b,rb.Qa,d);return d.ga};function af(a,b){var c=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(P.Uc,!0),localStorage.getItem(P.Uc)&&(localStorage.removeItem(P.Uc),c=!0)}catch(e){if(("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0<localStorage.length)c=!0;else throw e;}}catch(e){w.info("Local Storage not supported!")}var d=navigator.cookieEnabled||"cookie"in document&&(0<document.cookie.length||-1<(document.cookie="test").indexOf.call(document.cookie,"test"));b=new Ab(a,d&&!b,
|
|
c);return new mb(b,c?new vb(a):new zb)};function bf(a){for(var b=a.length,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);127<d&&2047>=d?b++:2047<d&&65535>=d&&(b+=2);56320<=d&&57343>=d&&c--}return b};function cf(a,b){this.I=a;this.b=b}cf.prototype.o=function(){var a=pb(this.b,rb.bc);if(null==a)return null;var b=a.ga,c=bf(b);if(997<c){for(;997<c;)b=b.slice(0,b.length-1),c=bf(b);a.ga=b;nb(this.b,rb.bc,a)}return b};cf.prototype.Dd=function(a,b){if(bb(this.I,a))return w.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),!1;var c={};c[a]=b;return M(this,"custom",c)};function M(a,b,c){return tb(a.b,a.o(),b,c)}
|
|
cf.prototype.Ad=function(a,b,c,d,e){M(this,"push_token",a);M(this,"custom_push_public_key",c);M(this,"custom_push_user_auth",d);M(this,"custom_push_vapid_public_key",e);var g=Ba.Pa,f=new ra(g);Q(this.b,P.$b,(new Oe(a,b,c,d,e)).A());f.setItem(g.M.Sc,g.ac,!0)};
|
|
cf.prototype.Hb=function(a){M(this,"push_token",null);M(this,"custom_push_public_key",null);M(this,"custom_push_user_auth",null);M(this,"custom_push_vapid_public_key",null);if(a){a=Ba.Pa;var b=new ra(a);Q(this.b,P.$b,!1);b.setItem(a.M.Sc,a.ac,!1)}};function df(){}df.prototype.Ab=function(){};df.prototype.Xa=function(){};df.prototype.clearData=function(){};function ef(a,b,c,d,e){this.fa=a;this.H=b;this.b=c;this.I=d;this.Mf=e;this.ya=this.Ba=0;this.Da()}oa(ef,df);q=ef.prototype;q.Da=function(){for(var a=R(this.b,P.pb)||[],b=[],c=0;c<a.length;c++){var d=bc(a[c]);null!=d&&b.push(d)}this.B=ff(this,gf(this,b,!1));this.Ba=R(this.b,P.Rb)||this.Ba;this.ya=R(this.b,P.Qb)||this.ya};
|
|
q.Ab=function(a){if(hf(this)&&null!=a&&a.cards){var b=a.full_sync;b||this.Da();var c=a.cards,d=a.last_full_sync_at;a=a.last_card_updated_at;if(b){var e=[];for(var g=ba(this.B),f=g.next();!f.done;f=g.next())f=f.value,f.test&&e.push(f)}else e=this.B.slice();for(g=0;g<c.length;g++){f=c[g];for(var h=null,l=0;l<this.B.length;l++)if(f.id===this.B[l].id){h=this.B[l];break}if(b)f=Wb(f),null!=h&&h.viewed&&(f.viewed=!0),null!=f&&e.push(f);else if(null==h)f=Wb(f),null!=f&&e.push(f);else if(!Ub(h,f))for(h=0;h<
|
|
e.length;h++)if(f.id===e[h].id){e.splice(h,1);break}}this.B=ff(this,gf(this,e,b));this.pc();this.Ba=d||0;Q(this.b,P.Rb,this.Ba);this.ya=a||0;Q(this.b,P.Qb,this.ya);Db(this.fa,this.kb(!0))}};
|
|
function jf(a,b){if(hf(a)){a.Da();var c=a.B.slice();a.H.mb().o(function(d){for(var e=0;e<b.length;e++)if(d===b[e].userId||null==d&&null==b[e].userId){for(var g=b[e].card,f=null,h=0;h<a.B.length;h++)if(g.id===a.B[h].id){f=a.B[h];break}if(null==f)g=Wb(g),null!=g&&c.push(g);else if(!Ub(f,g))for(f=0;f<c.length;f++)if(g.id===c[f].id){c.splice(f,1);break}}a.B=ff(a,gf(a,c,!1));a.pc();Db(a.fa,a.kb(!0))})}}
|
|
function gf(a,b,c){for(var d=R(a.b,P.eb)||{},e=R(a.b,P.fb)||{},g=R(a.b,P.sa)||{},f={},h={},l={},k=0;k<b.length;k++)d[b[k].id]&&(b[k].clicked=!0,f[b[k].id]=!0),e[b[k].id]&&(b[k].viewed=!0,h[b[k].id]=!0),g[b[k].id]&&(b[k].dismissed=!0,l[b[k].id]=!0);c&&(Q(a.b,P.eb,f),Q(a.b,P.fb,h),Q(a.b,P.sa,l));return b}
|
|
function ff(a,b){for(var c=[],d=new Date,e=R(a.b,P.sa)||{},g=!1,f=0;f<b.length;f++){var h=b[f].url;!a.Mf&&h&&gd(h)?w.error('Card with url "'+h+'" will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable this card.'):(null==b[f].expiresAt||b[f].expiresAt>=d)&&!b[f].dismissed?c.push(b[f]):g=e[b[f].id]=!0}g&&Q(a.b,P.sa,e);return c}q.pc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());Q(this.b,P.pb,a)};
|
|
q.Ja=function(){if(hf(this))return this.H.Ja(this.Ba,this.ya,this.Ab.bind(this))};q.kb=function(a){a||this.Da();a=ff(this,this.B);a.sort(function(c,d){return c.pinned&&!d.pinned?-1:d.pinned&&!c.pinned?1:c.updated>d.updated?-1:d.updated>c.updated?1:0});var b=Math.max(this.ya||0,this.Ba||0);0===b&&(b=void 0);return new od(a,Ka(b))};
|
|
q.Xa=function(a){a||(this.B=[],Db(this.fa,new od(this.B.slice(),null)),S(this.b,P.pb),S(this.b,P.eb),S(this.b,P.fb),S(this.b,P.sa));this.ya=this.Ba=0;S(this.b,P.Rb);S(this.b,P.Qb)};q.clearData=function(a){this.ya=this.Ba=0;this.B=[];Db(this.fa,new od(this.B.slice(),null));a&&(S(this.b,P.pb),S(this.b,P.eb),S(this.b,P.fb),S(this.b,P.sa),S(this.b,P.Rb),S(this.b,P.Qb))};function hf(a){return xe(a.I).xb.enabled?!0:(0!==xe(a.I).Cb&&(Db(a.fa,new od([],(new Date).valueOf())),S(a.b,P.pb)),!1)};function kf(a,b){this.fa=a;this.b=b;this.Da()}oa(kf,df);q=kf.prototype;q.Da=function(){for(var a=R(this.b,P.Oc)||[],b=[],c=0;c<a.length;c++){var d=bc(a[c]);null!=d&&b.push(d)}this.B=b;this.hb=Ma(R(this.b,P.Nc))};q.pc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());Q(this.b,P.Oc,a)};
|
|
q.Ab=function(a){if(null!=a&&a.feed){this.Da();a=a.feed;for(var b=[],c,d=R(this.b,P.ob)||{},e={},g=0;g<a.length;g++){c=a[g];var f=c.id,h=c.type,l=c.viewed,k=c.title,m=c.image,n=c.description,t=Ka(c.created),r=Ka(c.updated),v=c.categories,B=Ka(c.expires_at),z=c.url,E=c.domain,G=c.aspect_ratio;c=c.extras;f=h===Xb.Yd||h===Xb.Yb?new Yb(f,l,k,m,n,t,r,v,B,z,E,G,c,!1,!1):h===Xb.Ob?new Zb(f,l,k,m,n,t,r,v,B,z,E,G,c,!1,!1):h===Xb.Nb?new $b(f,l,m,t,r,v,B,z,E,G,c,!1,!1):null;null!=f&&(d[f.id]&&(f.viewed=!0,e[f.id]=
|
|
!0),b.push(f))}Q(this.b,P.ob,e);this.B=b;this.pc();this.hb=new Date;Q(this.b,P.Nc,this.hb);Db(this.fa,new kd(this.B.slice(),this.hb))}};q.vc=function(){this.Da();for(var a=[],b=new Date,c=0;c<this.B.length;c++)(null==this.B[c].expiresAt||this.B[c].expiresAt>=b)&&a.push(this.B[c]);return new kd(a,this.hb)};q.clearData=function(a){null==a&&(a=!1);this.B=[];this.hb=null;a&&(S(this.b,P.Oc),S(this.b,P.Nc));Db(this.fa,new kd(this.B.slice(),this.hb))};function lf(a,b,c,d,e){this.La=a;this.Xe=b;this.We=c;this.uc=d;this.Ka=e}function mf(a,b,c,d,e){return null==a||null==a.trigger_id?null:new lf(a.trigger_id,b,c,d,e)};function nf(a,b,c,d){this.Qf=a;this.fa=b;this.b=c;this.H=d;this.ec=[];this.la=[];this.za=null;this.J={};this.X={};of(this);pf(this)}oa(nf,df);function qf(a){a.za=R(a.b,P.Mc)||a.za;a.J=R(a.b,P.rb)||a.J;a.X=R(a.b,P.Wb)||a.X;for(var b=0;b<a.T.length;b++){var c=a.T[b];null!=a.X[c.id]&&(c.Aa=a.X[c.id])}}function of(a){a.ed=R(a.b,P.Wc)||0;for(var b=R(a.b,P.Vc)||[],c=[],d=0;d<b.length;d++)c.push(ie(b[d]));a.T=c;qf(a)}
|
|
function pf(a){function b(z,E,G,F,K){return function(){rf(a,z,E,G,F,K)}}for(var c={},d=0;d<a.T.length;d++)c[a.T[d].id]=a.T[d];d=!1;for(var e=0;e<a.T.length;e++){var g=a.T[e];if(null!=a.J[g.id]){for(var f=a.J[g.id],h=[],l=0;l<f.length;l++){var k=f[l],m=Math.max(k.uc+1E3*g.Ya-(new Date).valueOf(),0);if(0<m){h.push(k);var n=void 0,t=void 0;null!=k.Ue&&(n=k.Ue);null!=k.gd&&Na(k.gd)&&(t=Oa(k.gd));var r=[];if(Ea(k.nd))for(var v=0;v<k.nd.length;v++){var B=c[k.nd[v]];null!=B&&r.push(B)}a.la.push(setTimeout(b(g,
|
|
k.uc,n,t,r),m))}}a.J[g.id].length>h.length&&(a.J[g.id]=h,d=!0,0===a.J[g.id].length&&delete a.J[g.id])}}d&&Q(a.b,P.rb,a.J)}
|
|
nf.prototype.Ab=function(a){var b=!1;if(null!=a&&a.triggers){qf(this);var c={},d={};this.T=[];for(var e=0;e<a.triggers.length;e++){for(var g=a.triggers[e],f=g.id,h=[],l=0;l<g.trigger_condition.length;l++)h.push(Wd(g.trigger_condition[l]));l=Ka(g.start_time);var k=Ka(g.end_time),m=g.priority,n=g.type,t=g.delay,r=g.re_eligibility,v=g.timeout,B=g.data;g=g.min_seconds_since_last_trigger;f=Ca(je,n,"Could not construct Trigger from server data","Trigger.Types")?new fe(f,h,l,k,m,n,B,t,r,v,g):null;null!=
|
|
this.X[f.id]&&(f.Aa=this.X[f.id],c[f.id]=this.X[f.id]);null!=this.J[f.id]&&(d[f.id]=this.J[f.id]);for(h=0;h<f.jb.length;h++)if(Ud(f.jb[h],Sd.V,null)){b=!0;break}null!=f&&this.T.push(f)}Ia(this.X,c)||(this.X=c,Q(this.b,P.Wb,this.X));Ia(this.J,d)||(this.J=d,Q(this.b,P.rb,this.J));a=[];for(c=0;c<this.T.length;c++)a.push(this.T[c].A());this.ed=(new Date).valueOf();Q(this.b,P.Vc,a);Q(this.b,P.Wc,this.ed);b&&(w.info("Trigger with test condition found, firing test."),this.na(Sd.V));this.na(Sd.OPEN);b=this.ec;
|
|
this.ec=[];for(a=0;a<b.length;a++)this.na.apply(this,b[a])}};
|
|
function rf(a,b,c,d,e,g){function f(){qf(a);var k=g.pop();if(null!=k)if(sf(a,k,c,d,e,g),he(k,c)){var m="Server aborted in-app message display, but the timeout on fallback trigger "+k.id+"has already elapsed.";0<g.length&&(m+=" Continuing to fall back.");w.info(m);a.H.K(k.id,Sc.Od);f()}else w.info("Server aborted in-app message display. Falling back to lower priority "+k.type+" trigger action "+k.id),m=1E3*k.Ya-((new Date).valueOf()-c),0<m?a.la.push(setTimeout(function(){rf(a,k,c,d,e,g)},m)):rf(a,
|
|
k,c,d,e,g)}function h(k){qf(a);var m=(new Date).valueOf();he(b,c)?b.type===je.Xd?a.H.K(b.id,Sc.qb):a.H.K(b.id,Sc.Od):!1===navigator.onLine&&b.type===je.Jc&&k.imageUrl?(w.info("Not showing "+b.type+" trigger action "+b.id+" due to offline state."),a.H.K(b.id,Sc.tf)):(null==b.Aa||b.Gb!==ge&&m-b.Aa>=1E3*b.Gb)&&tf(a,b,m,d)?(Db(a.fa,[k]),qf(a),b.Aa=m,a.za=m,Q(a.b,P.Mc,m),a.X[b.id]=m,Q(a.b,P.Wb,a.X)):w.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")}
|
|
switch(b.type){case je.Jc:var l=sc(b.data);if(null==l){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.K(b.id,Sc.sb);break}h(l);break;case je.Xd:l=mf(b.data,h,f,c,b.Ka);if(null==l){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.K(b.id,Sc.sb);break}Be(a.H,l,d,e);break;default:w.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.H.K(b.id,Sc.sb)}}
|
|
nf.prototype.na=function(a,b,c){var d=this;if(Ca(Sd,a,"Cannot fire trigger action.","TriggerEvents"))if(0<this.H.gb)w.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),this.ec.push(arguments);else{(R(this.b,P.Wc)||0)>this.ed?of(this):qf(this);for(var e=(new Date).valueOf(),g=e-this.za,f=!0,h=!0,l=[],k=0;k<this.T.length;k++){var m=this.T[k],n=e+1E3*m.Ya;if((null==m.Aa||m.Gb!==ge&&n-m.Aa>=1E3*m.Gb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime||
|
|
m.endTime>=e)){for(var t=!1,r=0;r<m.jb.length;r++)if(Ud(m.jb[r],a,b)){t=!0;break}t&&(f=!1,tf(this,m,n,a)&&(h=!1,l.push(m)))}}if(f)w.info("Trigger event "+a+" did not match any trigger conditions.");else if(h)w.info("Ignoring "+a+" trigger event because a trigger was displayed "+g/1E3+"s ago.");else{l.sort(function(B,z){return B.priority-z.priority});var v=l.pop();null!=v&&(w.info("Firing "+v.type+" trigger action "+v.id+" from trigger event "+a+"."),sf(this,v,e,a,c,l),0===v.Ya?rf(this,v,e,a,c,l):
|
|
this.la.push(setTimeout(function(){rf(d,v,e,a,c,l)},1E3*v.Ya)))}}};nf.prototype.Xa=function(a){this.T=[];S(this.b,P.Vc);if(!a){this.ec=[];this.za=null;this.X={};this.J={};for(a=0;a<this.la.length;a++)clearTimeout(this.la[a]);this.la=[];S(this.b,P.Mc);S(this.b,P.Wb);S(this.b,P.rb);S(this.b,P.Af);S(this.b,P.zf);S(this.b,P.Bf)}};nf.prototype.clearData=function(){this.T=[];this.za=null;this.X={};this.J={};for(var a=0;a<this.la.length;a++)clearTimeout(this.la[a]);this.la=[]};
|
|
function tf(a,b,c,d){if(null==a.za)return!0;if(d===Sd.V)return w.info("Ignoring minimum interval between trigger because it is a test type."),!0;b=b.Ke;null==b&&(b=a.Qf);return c-a.za>=1E3*b}function sf(a,b,c,d,e,g){qf(a);a.J[b.id]=a.J[b.id]||[];var f={};f.uc=c;f.Ue=d;var h;null!=e&&(h=e.A());f.gd=h;c=[];for(d=0;d<g.length;d++)c.push(g[d].id);f.nd=c;a.J[b.id].push(f);Q(a.b,P.rb,a.J)};"undefined"===typeof console&&(window.console={log:function(){}});var uf=window.Element.prototype;"function"!==typeof uf.matches&&(uf.matches=uf.msMatchesSelector||uf.mozMatchesSelector||uf.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return!!a[b]});
|
|
Element.prototype.closest||(Element.prototype.closest=function(a){var b=this;if(!document.documentElement.contains(b))return null;do{if(b.matches(a))return b;b=b.parentElement||b.parentNode}while(null!==b&&1===b.nodeType);return null});
|
|
if("function"!==typeof window.CustomEvent){var vf=function(a,b){b=b||{bubbles:!1,cancelable:!1,detail:null};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail);return c};vf.prototype=window.Event.prototype;window.CustomEvent=vf};var wf;"object"===typeof module&&module.exports?wf=module.exports:(window.appboy||(window.appboy={}),wf=window.appboy);var xf=wf;var Y=new function(a){function b(p){var u={},y;for(y in p){var C=p[y];null==C?delete p[y]:u[y]=Fa(C)?La(C):C}return u}function c(p,u,y,C,I){null==p&&(p={});if("object"!==typeof p||Ea(p))return w.error(u+" requires that "+y+" be an object. Ignoring "+I+"."),!1;for(var O in p){if(!Ra(O,C,"the "+I+" property name"))return!1;u=p[O];if(y=null!=u){y=typeof u;var V=Fa(u);(y=null!=u&&("number"===y||"boolean"===y||V||"string"===y))||w.error("Cannot "+C+" because the "+(I+' property "'+O+'" "')+u+'" is invalid.');
|
|
y=!y}if(y)return!1}return!0}function d(){w.zb();X&&(Db(N),N.L(),r.clearData(!1),r=null,z.clearData(!1),z=null,t.L(),t=null,E.L(),E=null,v.L(),v=null,m.zb(),G=m=null,Ne(F),f=l=F=null,L=[],k=null);fa=X=!1}function e(){if(fa)return!1;if(!X)throw Error("Appboy must be initialized before calling methods.");return!0}var g={bg:function(p,u){return new Le(p,u)},fg:function(p,u,y,C,I,O,V,ta,Ta){null==I&&(I={});var te=new cf(Ta,V),Cf=new $e(V,te,Ta,I.sessionTimeoutInSeconds);return new me(p,y,C,I.appVersion,
|
|
u,Cf,ta,te,Ta,V,O)},hd:function(){return new Bb},cg:function(p,u){return new kf(p,u)},ag:function(p,u,y,C){return new ef(p,u,y,C)},gg:function(p,u,y,C){return new nf(p,u,y,C)},eg:function(p,u,y,C,I,O,V){null==I&&(I={});return new Pe(p,u,y,C+"/safari/"+u,I.serviceWorkerLocation,I.safariWebsitePushId,O,I.manageServiceWorkerExternally,I.disablePushTokenMaintenance,V)},dg:function(p){return new Me(p)}};null==a&&(a=g);var f,h,l,k,m,n,t,r,v,B,z,E,G,F,K=new Bb,N=new Bb,L=[],X=!1,fa=!1;return{Ng:function(p){return Cb(K,
|
|
p)},Mg:function(p){return Cb(N,p)},sd:function(p,u){if(X)return w.info("Braze has already been initialized with an API key."),!0;w.rd(null!=u&&u.enableLogging);if(null==p||""===p||"string"!==typeof p)return w.error("Braze requires a valid API key to be initialized."),!1;f=p;l=u||{};if(lb.og&&!l.allowCrawlerActivity)return w.info("Ignoring activity from crawler bot "+navigator.userAgent),fa=!0,!1;h=u=af(p,l.noCookies||!1);var y=new wb(null,!0);if(y.Y("ab.optOut"))return w.info("Ignoring all activity due to previous opt out"),
|
|
y.store("ab.optOut","This-cookie-will-expire-in-"+xb(y)),fa=!0,!1;y=["mparticle","wordpress","tealium"];if(null!=l.sdkFlavor){var C=l.sdkFlavor;-1!==y.indexOf(C)?k=C:w.error("Invalid sdk flavor passed: "+C)}var I=[];t=a.hd();L.push(t);r=a.cg(t,u);I.push(r);E=a.hd();L.push(E);y=l.baseUrl;if(null==y||""===y||"string"!==typeof y)return w.error("Braze requires a valid SDK Endpoint to be initialized. Please set the 'baseUrl' initialization option to the value of your SDK Endpoint."),!1;y=y.replace(/(\.[a-z]+)[^\.]*$/i,
|
|
"$1/api/v3");0!==y.indexOf("http")&&(y="https://"+y);C=l.devicePropertyAllowlist||l.devicePropertyWhitelist;if(null!=C)if(Ea(C)){for(var O=[],V=0;V<C.length;V++)Ca(Je,C[V],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&O.push(C[V]);C=O}else w.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),C=null;n=a.bg(u,C);C=new Ye(u);m=a.fg(f,y,"3.2.0",k,l,function(ta){if(X)for(var Ta=0;Ta<I.length;Ta++)I[Ta].Ab(ta)},u,n,C);O=l.minimumIntervalBetweenTriggerActionsInSeconds;
|
|
null==O&&(O=30);z=a.gg(O,E,u,m);I.push(z);O=!0===l.allowUserSuppliedJavascript||!0===l.enableHtmlInAppMessages;v=a.hd();L.push(v);B=a.ag(v,m,u,C,O);I.push(B);Ze(C,function(){B.Ja()});Ee(m,function(){B.Ja()});m.sd();G=a.eg(m.mb(),f,n,y,l,C,u);F=a.dg(m.mb());u="Initialized ";l&&l.baseUrl&&(u+='for the Braze backend at "'+l.baseUrl+'" ');w.info(u+('with API key "'+p+'".'));p=lb.language;u=!1;l&&(l.language&&(p=l.language,u=!0),l.localization&&(p=l.localization,u=!0));hd(p,u);Db(K,l);return X=!0},zb:function(){w.info("Destroying appboy instance");
|
|
h=null;d()},jg:function(p){e()&&(null==p&&w.error("getDeviceId must be supplied with a callback. e.g., appboy.getDeviceId(function(deviceId) {console.log('the device id is ' + deviceId)})"),"function"===typeof p&&p(oe(n).id))},Id:function(){w.Id()},Ed:function(p){w.Ed(p)},Bc:function(){if(e()){m.Bc(G);var p=Ba.Pa,u=new ra(p);wa(u,p.M.Td,function(y,C){function I(){z.na(Sd.Sd,[V],ta)}var O=C.lastClick,V=C.trackingString;w.info("Firing push click trigger from "+V+" push click at "+O);var ta=Ie(m,O,V);
|
|
Ge(m,I,I);xa(u,p.M.Td,y)});ya(u,p.M.$e,function(y){jf(B,y)})}},Xa:function(p){e()&&(null==p||0===p.length||p!==p?w.error("changeUser requires a non-empty userId."):997<bf(p)?w.error('Rejected user id "'+p+'" because it is longer than 997 bytes.'):m.Xa(p.toString(),[r,B,z],G))},mb:function(){if(e())return m.mb()},lg:function(){if(e())return l.contentSecurityNonce},Ib:function(p){e()&&m.Ib(p)},Dc:function(){e()&&m.Dc()},Se:function(p){if(e())return Cb(t,p)},vc:function(){if(e())return r.vc()},Ja:function(){if(e())return B.Ja()},
|
|
Re:function(p){if(e())return Cb(v,p)},kb:function(){if(e())return B.kb(!1)},Og:function(p){if(e())return Cb(E,p)},Te:function(p){if(e())return"function"!==typeof p?null:Cb(E,function(u){p(u[0]);return u.slice(1)})},Fb:function(p){if(e())return p instanceof W||p instanceof tc?m.Fb(p).h:(w.error("inAppMessage must be an InAppMessage object"),!1)},zc:function(p){if(e()){if(!(p instanceof W))return w.error("inAppMessage must be an InAppMessage object"),!1;var u=m.zc(p);if(u.h)for(var y=0;y<u.j.length;y++)z.na(Sd.Vb,
|
|
[p.triggerId],u.j[y]);return u.h}},yc:function(p,u){if(e()){if(!(p instanceof uc))return w.error("button must be an InAppMessageButton object"),!1;if(!(u instanceof W))return w.error("inAppMessage must be an InAppMessage object"),!1;var y=m.yc(p,u);if(y.h)for(var C=0;C<y.j.length;C++)z.na(Sd.Vb,[u.triggerId,p.id],y.j[C]);return y.h}},Eb:function(p,u,y){if(e()){if(!(p instanceof Ec))return w.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;y=m.Eb(p,u,y);
|
|
if(y.h)for(var C=0;C<y.j.length;C++)z.na(Sd.Vb,[p.triggerId,u],y.j[C]);return y.h}},K:function(p,u){if(e())return p instanceof W||p instanceof tc?Ca(Sc,u,u+" is not a valid in-app message display failure","InAppMessage.DisplayFailures")?m.K(p.triggerId,u).h:!1:(w.error("inAppMessage must be an InAppMessage object"),!1)},Ia:function(p,u){if(e()){if(!Ea(p))return w.error("cards must be an array"),!1;for(var y=0;y<p.length;y++)if(!(p[y]instanceof Rb))return w.error("Each card in cards must be a Card object"),
|
|
!1;return m.Ia(p,u).h}},Ha:function(p,u){if(e())return p instanceof Rb?m.Ha(p,u).h:(w.error("card must be a Card object"),!1)},xc:function(p){if(e())return p instanceof Rb?m.xc(p).h:(w.error("card must be a Card object"),!1)},Je:function(){if(e())return He(m,Aa.uf).h},Ie:function(){if(e())return He(m,Aa.ff).h},N:function(p){if(e()){for(var u=0;u<L.length;u++)L[u].N(p);K.N(p);N.N(p)}},L:function(){if(e())for(var p=0;p<L.length;p++)L[p].L()},ud:function(p,u){if(e()){if(null==p||0>=p.length)return w.error('logCustomEvent requires a non-empty eventName, got "'+
|
|
p+'". Ignoring event.'),!1;if(!Ra(p,"log custom event","the event name")||!c(u,"logCustomEvent","eventProperties",'log custom event "'+p+'"',"event"))return!1;var y=m.ud(p,b(u));if(y.h){w.info('Logged custom event "'+p+'".');for(var C=0;C<y.j.length;C++)z.na(Sd.Gc,[p,u],y.j[C])}return y.h}},vd:function(p,u,y,C,I){if(e()){null==y&&(y="USD");null==C&&(C=1);if(null==p||0>=p.length)return w.error('logPurchase requires a non-empty productId, got "'+p+'", ignoring.'),!1;if(!Ra(p,"log purchase","the purchase name"))return!1;
|
|
var O=parseFloat(u);if(isNaN(O))return w.error("logPurchase requires a numeric price, got "+u+", ignoring."),!1;O=O.toFixed(2);u=parseInt(C);if(isNaN(u))return w.error("logPurchase requires an integer quantity, got "+C+", ignoring."),!1;if(1>u||100<u)return w.error("logPurchase requires a quantity >1 and <100, got "+u+", ignoring."),!1;y=y.toUpperCase();if(-1==="AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BRL BSD BTC BTN BWP BYR BZD CAD CDF CHF CLF CLP CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EEK EGP ERN ETB EUR FJD FKP GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LTL LVL LYD MAD MDL MGA MKD MMK MNT MOP MRO MTL MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD UYU UZS VEF VND VUV WST XAF XAG XAU XCD XDR XOF XPD XPF XPT YER ZAR ZMK ZMW ZWL".split(" ").indexOf(y))return w.error("logPurchase requires a valid currencyCode, got "+
|
|
y+", ignoring."),!1;if(!c(I,"logPurchase","purchaseProperties",'log purchase "'+p+'"',"purchase"))return!1;C=m.vd(p,O,y,u,b(I));if(C.h)for(w.info("Logged "+u+" purchase"+(1<u?"s":"")+' of "'+p+'" for '+y+" "+O+"."),y=0;y<C.j.length;y++)z.na(Sd.Rc,[p,I],C.j[y]);return C.h}},oa:function(){if(e())return G.oa()},Ga:function(){if(e())return G.Ga()},td:function(p,u,y){e()&&G.td(p,u,y)},Bb:function(){if(e())return G.Bb()},rg:function(p,u,y){if(e())return G.subscribe(y,function(C,I,O){m.Ib();"function"===
|
|
typeof p&&p(C,I,O)},u)},Tg:function(p,u){if(e())return G.unsubscribe(p,u)},Rg:function(){e()&&F.watchPosition()},Lg:function(){null!=m&&m.Ib();var p=new wb(null,!0);p.store("ab.optOut","This-cookie-will-expire-in-"+xb(p));p=Ba.Pa;(new ra(p)).setItem(p.M.Qc,p.ac,!0);d();fa=!0},vg:function(){(new wb(null,!0)).remove("ab.optOut");var p=Ba.Pa;xa(new ra(p),p.M.Qc,p.ac);d()},Wg:function(){if(null==h)throw Error("Appboy must be initialized before calling methods.");h.clearData();for(var p=Ha(Ba),u=0;u<p.length;u++)(new ra(Ba[p[u]])).clearData();
|
|
X&&(r.clearData(!0),z.clearData(!0))}}},Z={},yf;for(yf in D)Z[yf]=D[yf];Z.initialize=Y.sd;Z.destroy=Y.zb;Z.getDeviceId=Y.jg;Z.toggleAppboyLogging=Y.Id;Z.setLogger=Y.Ed;Z.openSession=Y.Bc;Z.changeUser=Y.Xa;Z.getUser=Y.mb;Z.requestImmediateDataFlush=Y.Ib;Z.requestFeedRefresh=Y.Dc;Z.getCachedFeed=Y.vc;Z.subscribeToFeedUpdates=Y.Se;Z.requestContentCardsRefresh=Y.Ja;Z.getCachedContentCards=Y.kb;Z.subscribeToContentCardsUpdates=Y.Re;Z.logCardImpressions=Y.Ia;Z.logCardClick=Y.Ha;Z.logCardDismissal=Y.xc;
|
|
Z.logFeedDisplayed=Y.Je;Z.logContentCardsDisplayed=Y.Ie;Z.logInAppMessageImpression=Y.Fb;Z.logInAppMessageClick=Y.zc;Z.logInAppMessageButtonClick=Y.yc;Z.logInAppMessageHtmlClick=Y.Eb;Z.subscribeToNewInAppMessages=Y.Og;Z.subscribeToInAppMessage=Y.Te;Z.removeSubscription=Y.N;Z.removeAllSubscriptions=Y.L;Z.logCustomEvent=Y.ud;Z.logPurchase=Y.vd;Z.isPushSupported=Y.oa;Z.isPushBlocked=Y.Ga;Z.isPushGranted=Y.td;Z.isPushPermissionGranted=Y.Bb;Z.registerAppboyPushMessages=Y.rg;
|
|
Z.unregisterAppboyPushMessages=Y.Tg;Z.trackLocation=Y.Rg;Z.stopWebTracking=Y.Lg;Z.resumeWebTracking=Y.vg;Z.wipeData=Y.Wg;for(var zf in Z)"object"===typeof appboyInterface?appboyInterface[zf]=Z[zf]:xf[zf]=Z[zf];var Af="object"===typeof appboyInterface?appboyInterface:xf,Bf=new function(a,b){var c=!1,d=!1,e=!1,g=!1,f=null,h=null,l=null;a.Ng(function(k){function m(t){if(27===t.keyCode&&!e&&0<document.querySelectorAll(".ab-modal-interactions").length){t=document.getElementsByClassName("ab-html-message");for(var r=!1,v=0;v<t.length;v++){var B=t[v].contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0];null!=B&&(Ib(B),r=!0)}r||(t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0],
|
|
null!=t&&Ib(t))}}c=k.openInAppMessagesInNewTab||!1;d=k.openCardsInNewTab||k.openNewsFeedCardsInNewTab||!1;e=k.requireExplicitInAppMessageDismissal||!1;g=k.enableHtmlInAppMessages||!1;!0===k.allowUserSuppliedJavascript&&(g=!0);f=null;l=k.contentSecurityNonce||null;k.doNotLoadFontAwesome||null!==document.querySelector('link[rel=stylesheet][href="https://use.fontawesome.com/7f85a56ba4.css"]')||(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("href","https://use.fontawesome.com/7f85a56ba4.css"),
|
|
document.getElementsByTagName("head")[0].appendChild(k));k="ab-css-definitions-"+"3.2.0".replace(/\./g,"-");if(null==document.getElementById(k)){var n=document.createElement("style");n.innerHTML=ed.Ae;n.id=k;null!=l&&n.setAttribute("nonce",l);document.getElementsByTagName("head")[0].appendChild(n)}e||(document.addEventListener("keydown",m,!1),a.Mg(function(){document.removeEventListener("keydown",m)}))});return{$f:function(){null==f&&(f=a.Te(function(k){a.display.Qe(k)}));return f},Qe:function(k,
|
|
m,n){if(null==k)return!1;if(k instanceof tc)return w.info("User received control for a multivariate test, logging to Braze servers."),a.Fb(k),!0;if(!(k instanceof W))return!1;var t=k instanceof Ec;if(t&&!k.Sg&&!g)return w.error('HTML in-app messages are disabled. Use the "enableHtmlInAppMessages" option for appboy.initialize to enable these messages.'),a.K(k,Sc.Nd),!1;null==m&&(m=document.body);if(k.Fa()&&0<m.querySelectorAll(".ab-modal-interactions").length)return w.info("Cannot show in-app message '"+
|
|
k.message+"' because another message is being shown."),a.K(k,Sc.Ye),!1;if(Qb.pg()){var r=Qb.kg();if(r===Qb.Oa.Zb&&k.orientation===Nc||r===Qb.Oa.Lc&&"PORTRAIT"===k.orientation)return w.info("Not showing "+("PORTRAIT"===k.orientation?"portrait":"landscape")+" in-app message '"+k.message+"' because the screen is currently "+(r===Qb.Oa.Zb?"portrait":"landscape")),a.K(k,Sc.Ff),!1}if(!g){r=!1;if(k.buttons&&0<k.buttons.length)for(var v=k.buttons,B=0;B<v.length;B++)v[B].clickAction===Oc&&(r=gd(v[B].uri));
|
|
else k.clickAction===Oc&&(r=gd(k.uri));if(r)return w.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these actions.'),a.K(k,Sc.Nd),!1}var z=document.createElement("div");z.className="ab-iam-root v3";z.className+=k.ma();pc(k)&&(z.id=k.htmlId);m.appendChild(z);qc(k)&&(m=document.createElement("style"),m.innerHTML=k.css,m.id=rc(k),null!=l&&m.setAttribute("nonce",l),document.getElementsByTagName("head")[0].appendChild(m));var E=
|
|
k instanceof Bc;m=k.Z(a,b,function(){a.display.Gd()},function(G){if(k.Fa()&&k.Ve()){var F=document.createElement("div");F.className="ab-page-blocker";qc(k)||(F.style.backgroundColor=gc(k.frameColor));z.appendChild(F);if(!e){var K=(new Date).valueOf();F.onclick=function(X){200<(new Date).valueOf()-K&&(Kc(k,G),X.stopPropagation())}}z.appendChild(G);G.focus();k.Ac(z)}else if(E){var N=document.querySelectorAll(".ab-slideup");F=null;for(var L=N.length-1;0<=L;L--)if(N[L]!==G){F=N[L];break}"TOP"===k.slideFrom?
|
|
(N=0,null!=F&&(N=F.offsetTop+F.offsetHeight),G.style.top=Math.max(N,0)+"px"):(N=0,null!=F&&(N=(window.innerHeight||document.documentElement.clientHeight)-F.offsetTop),G.style.bottom=Math.max(N,0)+"px")}else t&&!e&&G.contentWindow.addEventListener("keydown",function(X){27===X.keyCode&&k.ye()});a.Fb(k);k.dismissType===lc&&setTimeout(function(){z.contains(G)&&Kc(k,G)},k.duration);"function"===typeof n&&n()},c);if(t||E)z.appendChild(m),k.Ac(z);return!0},Gd:function(k,m,n){function t(F){for(var K=F.querySelectorAll(".ab-feed"),
|
|
N=null,L=0;L<K.length;L++)K[L].parentNode===F&&(N=K[L]);null!=N?(ld(a,N),N.parentNode.replaceChild(E,N)):F.appendChild(E);setTimeout(function(){E.className=E.className.replace("ab-hide","ab-show")},0);v&&E.focus();a.Je();pd(z,a,E)}function r(F,K){if(null==K)return F;for(var N=[],L=0;L<K.length;L++)N.push(K[L].toLowerCase());K=[];for(L=0;L<F.length;L++){for(var X=[],fa=0;fa<F[L].categories.length;fa++)X.push(F[L].categories[fa].toLowerCase());0<Ga(X,N).length&&K.push(F[L])}return K}var v=!1;null==
|
|
k&&(k=document.body,v=!0);var B=!1,z=null;null==m?(z=a.vc(),td(z,r(z.cards,n),z.lastUpdated,null,a,d),B=!0):z=new kd(r(m,n),new Date);var E=z.Z(a,d);if(B){if(null==z.lastUpdated||6E4<(new Date).valueOf()-z.lastUpdated.valueOf())w.info("Cached feed was older than max TTL of 60000 ms, requesting an update from the server."),qd(z,a,E);var G=(new Date).valueOf();m=a.Se(function(F){var K=E.querySelectorAll(".ab-refresh-button")[0];if(null!=K){var N=500,L=parseInt(E.getAttribute(rd));N=isNaN(L)?N-((new Date).valueOf()-
|
|
G):N-((new Date).valueOf()-L);setTimeout(function(){K.className=K.className.replace(/fa-spin/g,"")},Math.max(N,0))}td(z,r(F.cards,n),F.lastUpdated,E,a,d)});E.setAttribute(md,m)}null!=k?t(k):window.onload=function(F){return function(){"function"===typeof F&&F();t(document.body)}}(window.onload)},Be:function(){for(var k=document.querySelectorAll(".ab-feed"),m=0;m<k.length;m++)ld(a,k[m])},Qg:function(k,m,n){0<document.querySelectorAll(".ab-feed").length?a.display.Be():a.display.Gd(k,m,n)},Pe:function(k,
|
|
m){function n(E){for(var G=E.querySelectorAll(".ab-feed"),F=null,K=0;K<G.length;K++)G[K].parentNode===E&&(F=G[K]);null!=F?(ld(a,F),F.parentNode.replaceChild(v,F)):E.appendChild(v);setTimeout(function(){v.className=v.className.replace("ab-hide","ab-show")},0);t&&v.focus();a.Ie();pd(r,a,v)}var t=!1;null==k&&(k=document.body,t=!0);var r=null;r=a.kb();"function"===typeof m&&td(r,m(r.cards.slice()),r.lastUpdated,null,a,d);var v=r.Z(a,d);(null==r.lastUpdated||6E4<(new Date).valueOf()-r.lastUpdated.valueOf())&&
|
|
(null==h||6E4<(new Date).valueOf()-h.valueOf())&&(w.info("Cached content cards were older than max TTL of 60000 ms, requesting a sync from the server."),qd(r,a,v),h=(new Date).valueOf());var B=(new Date).valueOf(),z=a.Re(function(E){var G=v.querySelectorAll(".ab-refresh-button")[0];if(null!=G){var F=500,K=parseInt(v.getAttribute(rd));F=isNaN(K)?F-((new Date).valueOf()-B):F-((new Date).valueOf()-K);setTimeout(function(){G.className=G.className.replace(/fa-spin/g,"")},Math.max(F,0))}F=E.cards;"function"===
|
|
typeof m&&(F=m(F.slice()));td(r,F,E.lastUpdated,v,a,d)});v.setAttribute(md,z);null!=k?n(k):window.onload=function(E){return function(){"function"===typeof E&&E();n(document.body)}}(window.onload)},He:function(k){for(var m=document.querySelectorAll(".ab-feed"),n=0;n<m.length;n++)(null==k||null!=k&&m[n].parentNode===k)&&ld(a,m[n])},Pg:function(k,m){0<document.querySelectorAll(".ab-feed").length?a.display.He():a.display.Pe(k,m)}}}(Y,Af);Af.display={};Af.display.automaticallyShowNewInAppMessages=Bf.$f;
|
|
Af.display.showInAppMessage=Bf.Qe;Af.display.showFeed=Bf.Gd;Af.display.destroyFeed=Bf.Be;Af.display.toggleFeed=Bf.Qg;Af.display.showContentCards=Bf.Pe;Af.display.hideContentCards=Bf.He;Af.display.toggleContentCards=Bf.Pg;Y.display=Bf;return appboyInterface});var a=window.appboyQueue||("undefined"!==typeof appboyQueue?appboyQueue:null);
|
|
if("undefined"!==typeof a&&a&&a.length&&0<a.length){var b=a===window.appboyQueue;window.appboyQueue=appboyQueue=null;for(var c=0;c<a.length;c++)if(a[c].callee){var d=a[c].callee.name;if(null==d||""===d)d=/^function ([\w]*)\(/g.exec(a[c].callee.toString())[1];if(null!=d&&""!==d){for(var e=d.split("_"),f=b?window.appboy:appboy,g=this,h="appboy",k=0;k<e.length;k++){if("prototype"===e[k]){var l=eval({"appboy.ContentCards":"appboy.getCachedContentCards","appboy.Feed":"appboy.getCachedFeed","appboy.User":"appboy.getUser"}[h]);
|
|
g=f=null!=l?l.apply():new f.constructor}else f=f[e[k]];h+="."+e[k]}null!=f&&"function"===typeof f&&f.apply(g,a[c])}}};
|
|
}).call(window);
|