279 lines
190 KiB
JavaScript
279 lines
190 KiB
JavaScript
/*
|
|
* Braze Web SDK v3.5.1
|
|
* (c) Braze, Inc. 2022 - http://braze.com
|
|
* License available at https://github.com/Appboy/appboy-web-sdk/blob/master/LICENSE
|
|
* Compiled on 2022-03-24
|
|
*/
|
|
(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 p;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 fa=ea(this);function ha(a,b){if(b)a:{var c=fa;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 ia;
|
|
if("function"==typeof Object.setPrototypeOf)ia=Object.setPrototypeOf;else{var ja;a:{var ka={Og:!0},la={};try{la.__proto__=ka;ja=la.Og;break a}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=ia;
|
|
function na(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(ma)ma(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.gi=b.prototype}
|
|
ha("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}});
|
|
ha("Promise",function(a){function b(g){this.Ub=0;this.Rd=void 0;this.sb=[];var h=this.Ad();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.Ha=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.Te=function(g){if(null==this.Ha){this.Ha=[];var h=this;this.Ue(function(){h.eh()})}this.Ha.push(g)};var e=fa.setTimeout;c.prototype.Ue=function(g){e(g,0)};c.prototype.eh=function(){for(;this.Ha&&this.Ha.length;){var g=this.Ha;this.Ha=[];for(var h=
|
|
0;h<g.length;++h){var l=g[h];g[h]=null;try{l()}catch(k){this.Sg(k)}}}this.Ha=null};c.prototype.Sg=function(g){this.Ue(function(){throw g;})};b.prototype.Ad=function(){function g(k){return function(m){l||(l=!0,k.call(h,m))}}var h=this,l=!1;return{resolve:g(this.uh),reject:g(this.Qd)}};b.prototype.uh=function(g){if(g===this)this.Qd(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.Kh(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;
|
|
default:h=!1}h?this.sh(g):this.ef(g)}};b.prototype.sh=function(g){var h=void 0;try{h=g.then}catch(l){this.Qd(l);return}"function"==typeof h?this.Lh(h,g):this.ef(g)};b.prototype.Qd=function(g){this.qf(2,g)};b.prototype.ef=function(g){this.qf(1,g)};b.prototype.qf=function(g,h){if(0!=this.Ub)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.Ub);this.Ub=g;this.Rd=h;this.fh()};b.prototype.fh=function(){if(null!=this.sb){for(var g=0;g<this.sb.length;++g)f.Te(this.sb[g]);this.sb=
|
|
null}};var f=new c;b.prototype.Kh=function(g){var h=this.Ad();g.Cc(h.resolve,h.reject)};b.prototype.Lh=function(g,h){var l=this.Ad();try{g.call(h,l.resolve,l.reject)}catch(k){l.reject(k)}};b.prototype.then=function(g,h){function l(v,t){return"function"==typeof v?function(w){try{k(v(w))}catch(r){m(r)}}:t}var k,m,q=new b(function(v,t){k=v;m=t});this.Cc(l(g,k),l(h,m));return q};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Cc=function(g,h){function l(){switch(k.Ub){case 1:g(k.Rd);
|
|
break;case 2:h(k.Rd);break;default:throw Error("Unexpected state: "+k.Ub);}}var k=this;null==this.sb?f.Te(l):this.sb.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var k=ba(g),m=k.next();!m.done;m=k.next())d(m.value).Cc(h,l)})};b.all=function(g){var h=ba(g),l=h.next();return l.done?d([]):new b(function(k,m){function q(w){return function(r){v[w]=r;t--;0==t&&k(v)}}var v=[],t=0;do v.push(void 0),t++,d(l.value).Cc(q(v.length-
|
|
1),m),l=h.next();while(!l.done)})};return b});var oa={Vh: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 pa={Ia: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 qa(a){var b=x;this.Le="undefined"===typeof window?self:window;this.C=a;this.F=b}function ra(a){if("indexedDB"in a.Le)return a.Le.indexedDB}
|
|
function sa(a){try{if(null==ra(a))return!1;ra(a).open("Braze IndexedDB Support Test");if("undefined"!==typeof window){var b=window.bi||window.Ya||window.di;if(b&&b.wh&&b.wh.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 ta(a,b,c){var d=ra(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 f in a.C.G)a.C.G.hasOwnProperty(f)&&!e.objectStoreNames.contains(a.C.G[f])&&e.createObjectStore(a.C.G[f])};d.onsuccess=function(e){var f=e.target.result;f.onversionchange=function(){f.close();"function"===typeof c&&c();a.F.error("Needed to close the database unexpectedly because of an upgrade in another tab")};
|
|
b(f)};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}
|
|
qa.prototype.setItem=function(a,b,c,d,e){if(!sa(this))return"function"===typeof e&&e(),!1;var f=this;return ta(this,function(g){g.objectStoreNames.contains(a)?(g=g.transaction([a],"readwrite").objectStore(a).put(c,b),g.onerror=function(){f.F.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P);"function"===typeof e&&e()},g.onsuccess=function(){"function"===typeof d&&d()}):(f.F.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P+" - "+a+" is not a valid objectStore"),"function"===
|
|
typeof e&&e())},e)};qa.prototype.getItem=function(a,b,c){if(!sa(this))return!1;var d=this;return ta(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(f){f=f.target.result;null!=f&&c(f)}):d.F.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P+" - "+a+" is not a valid objectStore")})};
|
|
function ua(a,b,c,d){sa(a)?ta(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(f){f=f.target.result;null!=f&&null!=f.value&&null!=f.key?c(f.key,f.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 va(a,b,c){sa(a)&&ta(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 wa(a,b,c){sa(a)&&ta(a,function(d){if(d.objectStoreNames.contains(b)){var e=d.transaction([b],"readwrite").objectStore(b);d=e.openCursor();var f=[];d.onerror=function(){0<f.length?(a.F.info("Cursor closed midway through for "+b+" on indexedDB "+a.C.P),c(f)):a.F.error("Could not open cursor for "+b+" on indexedDB "+a.C.P)};d.onsuccess=function(g){var h=g.target.result;null!=h?(null!=h.value&&null!=h.key&&(e["delete"](h.key).onsuccess=function(){f.push(h.value)}),h.continue()):0<f.length&&c(f)}}else a.F.error("Could not retrieve objects from "+
|
|
b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore")})}
|
|
qa.prototype.clearData=function(){if(!sa(this))return!1;var a=[],b;for(b in this.C.G)this.C.G.hasOwnProperty(b)&&this.C.G[b]!==this.C.G.xb&&a.push(this.C.G[b]);var c=this;return ta(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 xa={Gd:function(a){if(void 0!==a||void 0===xa.Ea)xa.Ea=!!a;xa.He||(xa.He=!0)},Jb:function(){xa.He=!1;xa.Ea=void 0;xa.F=void 0},Td:function(a){"function"!==typeof a?xa.info("Ignoring setLogger call since logger is not a function"):(xa.Gd(),xa.F=a)},Yd:function(){xa.Gd();xa.Ea?(console.log("Disabling Appboy logging"),xa.Ea=!1):(console.log("Enabled Appboy logging"),xa.Ea=!0)},info:function(a){xa.Ea&&(a="Appboy: "+a,null!=xa.F?xa.F(a):console.log(a))},warn:function(a){xa.Ea&&(a="Appboy SDK Warning: "+
|
|
a+" (v3.5.1)",null!=xa.F?xa.F(a):console.warn(a))},error:function(a){xa.Ea&&(a="Appboy SDK Error: "+a+" (v3.5.1)",null!=xa.F?xa.F(a):console.error(a))}};var z={CustomEvent:"ce",eg:"p",sg:"pc",$h:"ca",fg:"i",Yc:"ie",Jf:"cci",Lf:"ccic",Hf:"ccc",If:"ccd",ve:"ss",yg:"se",dg:"si",ke:"sc",je:"sbc",cg:"sfe",Mf:"iec",lg:"lr",Df:"uae",Gf:"ci",Ff:"cc",jg:"lcaa",kg:"lcar",Of:"inc",Nf:"add",Pf:"rem",Qf:"set",zg:"sgu"},ya={$f:"feed_displayed",Kf:"content_cards_displayed"},za={ba:{P:"AppboyServiceWorkerAsyncStorage",VERSION:6,G:{Rf:"data",oe:"pushClicks",gd:"pushSubscribed",Yh:"fallbackDevice",Ef:"cardUpdates",xb:"optOut",me:"pendingData",qe:"sdkAuthenticationSignature"},
|
|
kb:1}},x=xa,C={Af:"allowCrawlerActivity",Rc:"baseUrl",ng:"noCookies",ee:"devicePropertyAllowlist",Vc:"devicePropertyWhitelist",Wf:"disablePushTokenMaintenance",Yf:"enableLogging",Zf:"enableSdkAuthentication",mg:"manageServiceWorkerExternally",ag:"minimumIntervalBetweenTriggerActionsInSeconds",xg:"sessionTimeoutInSeconds",Cf:"appVersion",wg:"serviceWorkerLocation",ug:"safariWebsitePushId",cd:"localization",be:"contentSecurityNonce",fe:"enableHtmlInAppMessages",Zd:"allowUserSuppliedJavascript",bg:"inAppMessageZIndex",
|
|
pg:"openInAppMessagesInNewTab",qg:"openNewsFeedCardsInNewTab",tg:"requireExplicitInAppMessageDismissal",Xf:"doNotLoadFontAwesome",re:"sdkFlavor",$c:"language",og:"openCardsInNewTab"};function Aa(a,b,c,d){a=Ba(a);return-1===a.indexOf(b)?(x.error(c+" Valid values from "+d+' are "'+a.join('"/"')+'".'),!1):!0}function Ca(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function Da(a){return"[object Date]"===Object.prototype.toString.call(a)}function Ea(a){return"[object Object]"===Object.prototype.toString.call(a)}
|
|
function Fa(a){null==a&&(a=[]);for(var b=[],c=arguments.length,d=0,e=a.length;d<e;d++){var f=a[d];if(-1===b.indexOf(f)){var g;for(g=1;g<c&&-1!==arguments[g].indexOf(f);g++);g===c&&b.push(f)}}return b}function Ga(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b}function Ba(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&void 0!==a[c]&&b.push(a[c]);return b}
|
|
function Ha(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 f=d.length;f--;)if(d[f]===a)return e[f]===b;d.push(a);e.push(b);if(c){f=a.length;if(f!==b.length)return!1;for(;f--;)if(!Ha(a[f],b[f]))return!1}else{c=Ga(a);f=c.length;if(Ga(b).length!==f)return!1;for(;f--;){var g=c[f];if(!b.hasOwnProperty(g)||!Ha(a[g],b[g]))return!1}}d.pop();e.pop();return!0};function Ia(a,b){a/=1E3;b&&(a=Math.floor(a));return a}function Ja(a){var b=parseInt(a);return null==a||isNaN(b)?null:new Date(1E3*b)}function Ka(a){return null!=a&&Da(a)?a.toISOString().replace(/\.[0-9]{3}Z$/,""):a}function La(a){return null==a||""===a?null:new Date(a)};function E(a,b,c,d,e){this.gb=a;this.type=b;this.time=null==c||""===c?(new Date).valueOf():c;this.sessionId=d;this.data=e}E.prototype.Ac=function(){var a={name:this.type,time:Ia(this.time),data:this.data||{},session_id:this.sessionId};null!=this.gb&&(a.user_id=this.gb);return a};E.prototype.A=function(){return{u:this.gb,t:this.type,ts:this.time,s:this.sessionId,d:this.data}};function Ma(a){return null!=a&&Ea(a)&&null!=a.t&&""!==a.t}function Na(a){return new E(a.u,a.t,a.ts,a.s,a.d)};function Oa(a,b,c){null==a&&(a=pa.Ia());c=parseInt(c);if(isNaN(c)||0===c)c=(new Date).valueOf();this.ia=a;this.Ib=c;this.Ob=(new Date).valueOf();this.Cd=b}Oa.prototype.A=function(){return{g:this.ia,e:this.Cd,c:this.Ib,l:this.Ob}};function Pa(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 Qa(a,b,c,d){(d="string"===typeof a||null===a&&d)||x.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||x.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}
|
|
function Ta(a,b,c,d,e){null==a&&(a={});if("object"!==typeof a||Ca(a))return x.error(b+" requires that "+c+" be an object. Ignoring "+e+"."),[!1,null];b=JSON.stringify(a);if(Pa(b)>Ua)return x.error("Could not "+d+" because "+c+" was greater than the max size of "+Va+"."),[!1,null];try{var f=JSON.parse(b)}catch(k){return x.error("Could not "+d+" because "+c+" did not contain valid JSON."),[!1,null]}for(var g in a){if(!Ra(g,d,"the "+e+" property name"))return[!1,null];c=a[g];if(null==c)delete a[g],delete f[g];
|
|
else{Da(c)&&(f[g]=Ka(c));var h=d,l="the "+e+' property "'+g+'"';(b=Ea(c)||Ca(c)?Wa(c,f[g]):Ya(c))||x.error("Cannot "+h+" because "+l+' "'+c+'" is invalid.');if(!b)return[!1,null]}}return[!0,f]}function Wa(a,b){if(Ca(a)&&Ca(b))for(var c=0;c<a.length&&c<b.length;c++){if(Da(a[c])&&(b[c]=Ka(a[c])),!Wa(a[c],b[c]))return!1}else if(Ea(a)){c=ba(Ga(a));for(var d=c.next();!d.done;d=c.next())if(d=d.value,Da(a[d])&&(b[d]=Ka(a[d])),!Wa(a[d],b[d]))return!1}else return Ya(a);return!0}
|
|
function Ya(a){var b=typeof a;return null==a||"number"===b||"boolean"===b||Da(a)||"string"===b}var Sa=/^[^\x00-\x1F\x22]+$/,Za=new RegExp(/^.+@.+\..+$/),Ua=51200,Va="50KB";var J={};function K(a,b){this.f=a;this.H=b}p=K.prototype;p.o=function(a){null==a&&x.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())};
|
|
p.Pg=function(a,b){if(!Qa(a,"add alias","the alias",!1)||0>=a.length)return x.error("addAlias requires a non-empty alias"),!1;if(!Qa(b,"add alias","the label",!1)||0>=b.length)return x.error("addAlias requires a non-empty label"),!1;var c=this.H,d=new $a,e=ab(c.D),f=z.Df;d.j.push(new E(c.f.o(),f,(new Date).valueOf(),e,{a:a,l:b}));d.h=bb(c.b,d.j);return d.h};p.Eh=function(a){return Qa(a,"set first name","the firstName",!0)?cb(this.f,"first_name",a):!1};
|
|
p.Ih=function(a){return Qa(a,"set last name","the lastName",!0)?cb(this.f,"last_name",a):!1};p.Ch=function(a){return null===a||"string"===typeof a&&null!=a.toLowerCase().match(Za)?cb(this.f,"email",a):(x.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};p.Fh=function(a){"string"===typeof a&&(a=a.toLowerCase());return null===a||Aa(db,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?cb(this.f,"gender",a):!1};
|
|
p.Bh=function(a,b,c){if(null===a&&null===b&&null===c)return cb(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?(x.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):cb(this.f,"dob",""+a+"-"+b+"-"+c)};p.yh=function(a){return Qa(a,"set country","the country",!0)?cb(this.f,"country",a):!1};
|
|
p.Gh=function(a){return Qa(a,"set home city","the homeCity",!0)?cb(this.f,"home_city",a):!1};p.Hh=function(a){return Qa(a,"set language","the language",!0)?cb(this.f,"language",a):!1};p.Dh=function(a){return Aa(eb,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"email_subscribe",a):!1};
|
|
p.Ud=function(a){return Aa(eb,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"push_subscribe",a):!1};p.Jh=function(a){return Qa(a,"set phone number","the phoneNumber",!0)?null===a||a.match(fb)?cb(this.f,"phone",a):(x.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};p.xh=function(a){return cb(this.f,"image_url",a)};
|
|
p.Oc=function(a,b,c,d,e){if(null==a||null==b)return x.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)?(x.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90<a||-90>a||180<b||-180>b?(x.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?(x.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.H.Oc(this.f.o(),a,b,d,c,e).h};
|
|
p.Sd=function(a,b){if(!Ra(a,"set custom user attribute","the given key"))return!1;var c=typeof b,d=Da(b),e=Ca(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Ra(b,'set custom user attribute "'+a+'"',"the given value"))return!1;d&&(b=Ka(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 gb(this.H,z.Qf,a,b).h}return this.f.Sd(a,b)};
|
|
p.Qg=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:gb(this.H,z.Nf,a,b).h};p.qh=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:gb(this.H,z.Pf,a,b).h};
|
|
p.kh=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)?(x.error('Cannot increment custom user attribute because the given incrementValue "'+b+'" is not an integer.'),!1):gb(this.H,z.Of,a,c).h};p.Pd=function(a,b,c,d,e){this.f.Pd(a,b,c,d,e);hb(this.H)};p.Sb=function(a){this.f.Sb(a)};
|
|
p.Ah=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 x.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 $a;if(ib(d.J,a))x.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{var f=ab(d.D);
|
|
if(null===b&&null===e){var g=z.kg;a={key:a}}else g=z.jg,a={key:a,latitude:b,longitude:e};c.j.push(new E(d.f.o(),g,(new Date).valueOf(),f,a));c.h=bb(d.b,c.j)}return c.h};p.Rg=function(a){return!Qa(a,"add user to subscription group","subscription group ID",!1)||0>=a.length?(x.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.H,a,kb).h};
|
|
p.rh=function(a){return!Qa(a,"remove user from subscription group","subscription group ID",!1)||0>=a.length?(x.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.H,a,lb).h};var fb=/^[0-9 .\\(\\)\\+\\-]+$/,db={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},eb={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},kb="subscribed",lb="unsubscribed";J.User=K;J.User.Genders=db;
|
|
J.User.NotificationSubscriptionTypes=eb;J.User.prototype.getUserId=K.prototype.o;J.User.prototype.setFirstName=K.prototype.Eh;J.User.prototype.setLastName=K.prototype.Ih;J.User.prototype.setEmail=K.prototype.Ch;J.User.prototype.setGender=K.prototype.Fh;J.User.prototype.setDateOfBirth=K.prototype.Bh;J.User.prototype.setCountry=K.prototype.yh;J.User.prototype.setHomeCity=K.prototype.Gh;J.User.prototype.setLanguage=K.prototype.Hh;J.User.prototype.setEmailNotificationSubscriptionType=K.prototype.Dh;
|
|
J.User.prototype.setPushNotificationSubscriptionType=K.prototype.Ud;J.User.prototype.setPhoneNumber=K.prototype.Jh;J.User.prototype.setAvatarImageUrl=K.prototype.xh;J.User.prototype.setLastKnownLocation=K.prototype.Oc;J.User.prototype.setCustomUserAttribute=K.prototype.Sd;J.User.prototype.addToCustomAttributeArray=K.prototype.Qg;J.User.prototype.removeFromCustomAttributeArray=K.prototype.qh;J.User.prototype.incrementCustomUserAttribute=K.prototype.kh;J.User.prototype.addAlias=K.prototype.Pg;
|
|
J.User.prototype.setCustomLocationAttribute=K.prototype.Ah;J.User.prototype.addToSubscriptionGroup=K.prototype.Rg;J.User.prototype.removeFromSubscriptionGroup=K.prototype.rh;function mb(){}mb.prototype.Ed=function(){};mb.prototype.Fd=function(){};mb.prototype.qb=function(){};function nb(a,b){if(a&&b)if(a=a.toLowerCase(),Ca(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 ob={ae:"Chrome",Wc:"Edge",dc:"Internet Explorer",le:"Opera",hd:"Safari",Zh:"Firefox"};function pb(){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 ob)ob[c]!==ob.dc&&d.push(ob[c]);if((c=b.brand.match(new RegExp("("+d.join("|")+")","i")))&&0<c.length){var e=c[0];var f=b.version;break}}}this.Ya=e||"Unknown Browser";this.version=f||"Unknown Version"}}na(pb,mb);pb.prototype.Ed=function(){return this.Ya};pb.prototype.Fd=function(){return this.version};
|
|
pb.prototype.qb=function(a){var b=this;return this.ga?Promise.resolve(this.ga):(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=nb(c,a[d]);if(e)return b.ga=e,b.ga}return c}).catch(function(){return navigator.platform})};function qb(){this.We=rb()}na(qb,mb);qb.prototype.Ed=function(){return this.We[0]||"Unknown Browser"};qb.prototype.Fd=function(){return this.We[1]||"Unknown Version"};qb.prototype.qb=function(a){for(var b=0;b<a.length;b++){var c=nb(a[b].U,a[b]);if(c)return"Mac"===c&&1<navigator.maxTouchPoints&&(c="iOS"),Promise.resolve(c)}return Promise.resolve(navigator.platform)};
|
|
function rb(){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[ob.dc,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]===ob.ae&&(c=a.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("OPR",ob.le),c[0]=c[0].replace("EdgA",ob.Wc),"Edg"===c[0]&&(c[0]=ob.Wc),[c[0],c[1]];if(b[1]===ob.hd&&(c=a.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("EdgiOS",ob.Wc),
|
|
[c[0],c[1]];b=b[2]?[b[1],b[2]]:[null,null];b[0]===ob.hd&&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]===ob.le&&null!=(c=a.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",c[1]||""];b[0]&&(a=b[0].toLowerCase(),"msie"===a&&(b[0]=ob.dc),"crios"===a&&(b[0]=ob.ae),"tizen"===a&&(b[0]="Samsung Smart TV",b[1]=null),"samsungbrowser"===a&&(b[0]="Samsung Browser"));return b};function sb(){var a=this;this.Md=new (navigator.userAgentData?pb:qb);this.userAgent=navigator.userAgent;this.Ya=this.Md.Ed();this.version=this.Md.Fd();this.qb().then(function(b){return a.ga=b});this.language=(navigator.ji||navigator.language||navigator.browserLanguage||navigator.ii||"").toLowerCase();this.lh=tb(this.userAgent)}sb.prototype.qb=function(){var a=this;return this.ga?Promise.resolve(this.ga):this.Md.qb(ub).then(function(b){return a.ga=b})};
|
|
function tb(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 ub=[{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"}],vb=new sb;function wb(a,b){this.rc=a;this.R=b}function xb(a,b,c){var d=c;null!=c&&c instanceof Oa&&(d=c.A());a.rc.store(b,d)}function yb(a,b){var c=zb(a,b);null!=c&&(c.Ob=(new Date).valueOf(),xb(a,b,c))}function zb(a,b){a=a.rc.Z(b);null==a||null==a.g?a=null:(b=new Oa(a.g,a.e,a.c),b.Ob=a.l,a=b);return a}function bb(a,b){if(null==b||0===b.length)return!1;Ca(b)||(b=[b]);var c=a.R.Z(M.Wb);null!=c&&Ca(c)||(c=[]);for(var d=0;d<b.length;d++)c.push(b[d].A());return a.R.store(M.Wb,c)}
|
|
function Ab(a){var b=a.R.Z(M.Wb);a.R.remove(M.Wb);null==b&&(b=[]);a=[];var c=!1,d=null;if(Ca(b))for(var e=0;e<b.length;e++)Ma(b[e])?a.push(Na(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 E(null,z.Yc,(new Date).valueOf(),null,{e:e}));return a}
|
|
function O(a,b,c){Aa(M,b,"StorageManager cannot store object.","StorageManager.KEYS.OBJECTS")&&a.R.store(b,c)}function S(a,b){return Aa(M,b,"StorageManager cannot retrieve object.","StorageManager.KEYS.OBJECTS")?a.R.Z(b):!1}function Bb(a,b){Aa(M,b,"StorageManager cannot remove object.","StorageManager.KEYS.OBJECTS")&&a.R.remove(b)}wb.prototype.clearData=function(){for(var a=Ga(Cb),b=Ga(M),c=0;c<a.length;c++)this.rc.remove(Cb[a[c]]);for(a=0;a<b.length;a++)this.R.remove(M[b[a]])};
|
|
function Eb(a,b){var c=a.R.Z(M.Qa);null==c&&(c={});var d=b.user_id||M.Qc,e;for(e in b)"user_id"===e||null!=c[d]&&null!=c[d][e]||Fb(a,b.user_id,e,b[e])}function Fb(a,b,c,d){var e=a.R.Z(M.Qa);null==e&&(e={});var f=b||M.Qc,g=e[f];null==g&&(g={},null!=b&&(g.user_id=b));if("custom"===c){null==g[c]&&(g[c]={});for(var h in d)g[c][h]=d[h]}else g[c]=d;e[f]=g;return a.R.store(M.Qa,e)}function Gb(a){var b=a.R.Z(M.Qa);a.R.remove(M.Qa);a=[];for(var c in b)null!=b[c]&&a.push(b[c]);return a}
|
|
var Cb={lc:"ab.storage.userId",Uc:"ab.storage.deviceId",Ta:"ab.storage.sessionId"},M={jd:"ab.test",Wb:"ab.storage.events",Qa:"ab.storage.attributes",Qc:"ab.storage.attributes.anonymous_user",cc:"ab.storage.device",se:"ab.storage.sdk_metadata",ue:"ab.storage.session_id_for_cached_metadata",kc:"ab.storage.pushToken",dd:"ab.storage.newsFeed",bd:"ab.storage.lastNewsFeedRefresh",vb:"ab.storage.cardImpressions",te:"ab.storage.serverConfig",kd:"ab.storage.triggers",md:"ab.storage.triggers.ts",hg:"ab.storage.lastTriggeredTime",
|
|
gg:"ab.storage.lastTriggeredTimesById",ig:"ab.storage.lastTriggerEventDataById",hc:"ab.storage.messagingSessionStart",wb:"ab.storage.cc",ac:"ab.storage.ccLastFullSync",$b:"ab.storage.ccLastCardUpdated",hb:"ab.storage.ccClicks",ib:"ab.storage.ccImpressions",ua:"ab.storage.ccDismissals",fc:"ab.storage.lastDisplayedTriggerTimesById",ad:"ab.storage.lastDisplayedTriggerTime",zb:"ab.storage.triggerFireInstancesById",jb:"ab.storage.signature"};function Hb(a){this.$=a;this.df=vb.Ya===ob.hd?3:10}
|
|
Hb.prototype.Xa=function(a){return a+"."+this.$};Hb.prototype.store=function(a,b){b={v:b};try{return localStorage.setItem(this.Xa(a),JSON.stringify(b)),!0}catch(c){return x.info("Storage failure: "+c.message),!1}};Hb.prototype.Z=function(a){try{var b=JSON.parse(localStorage.getItem(this.Xa(a)));return null==b?null:b.v}catch(c){return x.info("Storage retrieval failure: "+c.message),null}};
|
|
Hb.prototype.remove=function(a){try{localStorage.removeItem(this.Xa(a))}catch(b){return x.info("Storage removal failure: "+b.message),!1}};function Ib(a,b){this.$=a;a=0;for(var c=document.location.hostname,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.Ee=525949;this.Qe=!!b}
|
|
Ib.prototype.Xa=function(a){return null!=this.$?a+"."+this.$:a};function Jb(a){var b=new Date;b.setTime(b.getTime()+6E4*a.Ee);return b.getFullYear()}
|
|
Ib.prototype.store=function(a,b){for(var c=Ba(Cb),d=document.cookie.split(";"),e=0;e<d.length;e++){for(var f=d[e];" "===f.charAt(0);)f=f.substring(1);for(var g=!1,h=0;h<c.length;h++)if(0===f.indexOf(c[h])){g=!0;break}g&&(f=f.split("=")[0],-1===f.indexOf("."+this.$)&&Kb(this,f))}c=new Date;c.setTime(c.getTime()+6E4*this.Ee);c="expires="+c.toUTCString();d="domain="+this.Me;b=this.Qe?b:encodeURIComponent(JSON.stringify(b));a=this.Xa(a)+"="+b+";"+c+";"+d+";path=/";if(4093<=a.length)return x.info("Storage failure: string is "+
|
|
a.length+" chars which is too large to store as a cookie."),!1;document.cookie=a;return!0};
|
|
Ib.prototype.Z=function(a){for(var b=[],c=this.Xa(a)+"=",d=document.cookie.split(";"),e=0;e<d.length;e++){for(var f=d[e];" "===f.charAt(0);)f=f.substring(1);if(0===f.indexOf(c))try{var g=void 0;g=this.Qe?f.substring(c.length,f.length):JSON.parse(decodeURIComponent(f.substring(c.length,f.length)));b.push(g)}catch(h){return x.info("Storage retrieval failure: "+h.message),this.remove(a),null}}return 0<b.length?b[b.length-1]:null};Ib.prototype.remove=function(a){Kb(this,this.Xa(a))};
|
|
function Kb(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 Lb(){this.ud={};this.Ke=5242880;this.df=3}
|
|
Lb.prototype.store=function(a,b){var c={value:b};var d=[];b=[b];for(var e=0;b.length;){var f=b.pop();if("boolean"===typeof f)e+=4;else if("string"===typeof f)e+=2*f.length;else if("number"===typeof f)e+=8;else if("object"===typeof f&&-1===d.indexOf(f)){d.push(f);for(var g in f)b.push(f[g])}}d=e;if(d>this.Ke)return x.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.Ke),!1;this.ud[a]=c;return!0};Lb.prototype.Z=function(a){a=this.ud[a];return null==a?null:a.value};
|
|
Lb.prototype.remove=function(a){this.ud[a]=null};function Mb(a,b,c){this.ma=[];b&&this.ma.push(new Ib(a));c&&this.ma.push(new Hb(a));this.ma.push(new Lb)}Mb.prototype.store=function(a,b){for(var c=!0,d=0;d<this.ma.length;d++)c=this.ma[d].store(a,b)&&c;return c};Mb.prototype.Z=function(a){for(var b=0;b<this.ma.length;b++){var c=this.ma[b].Z(a);if(null!=c)return c}return null};Mb.prototype.remove=function(a){for(var b=0;b<this.ma.length;b++)this.ma[b].remove(a)};function Nb(){this.Fb={}}function Ob(a,b){if("function"!==typeof b)return null;var c=pa.Ia();a.Fb[c]=b;return c}Nb.prototype.N=function(a){delete this.Fb[a]};Nb.prototype.K=function(){this.Fb={}};function Pb(a,b){var c=[],d;for(d in a.Fb)c.push(a.Fb[d](b))};function Qb(){if(null==Rb){Rb=!1;try{var a=Object.defineProperty({},"passive",{get:function(){Rb=!0}});window.addEventListener("testPassive",null,a);window.removeEventListener("testPassive",null,a)}catch(b){}}return Rb}function Sb(a,b,c){a.addEventListener(b,c,Qb()?{passive:!0}:!1)}
|
|
function Tb(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 Ub(a){if(a.onclick){var b=document.createEvent("MouseEvents");b.initEvent("click",!0,!0);a.onclick.apply(a,[b])}}
|
|
function Vb(a,b,c){var d=null,e=null;Sb(a,"touchstart",function(f){d=f.touches[0].clientX;e=f.touches[0].clientY});Sb(a,"touchmove",function(f){if(null!=d&&null!=e){var g=d-f.touches[0].clientX,h=e-f.touches[0].clientY;Math.abs(g)>Math.abs(h)&&25<=Math.abs(g)?(0<g&&b===Wb?c(f):0>g&&b===Xb&&c(f),e=d=null):25<=Math.abs(h)&&(0<h&&b===Yb&&a.scrollTop===a.scrollHeight-a.offsetHeight?c(f):0>h&&b===Zb&&0===a.scrollTop&&c(f),e=d=null)}})}
|
|
function $b(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 Rb=null,Yb="up",Zb="down",Wb="left",Xb="right";function ac(a,b,c){var d=document.createElement("button");d.setAttribute("aria-label",a);d.setAttribute("tabindex","0");d.setAttribute("role","button");Sb(d,"touchstart",function(){});d.className="ab-close-button";a=$b("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 bc={nh:function(){return 600>=screen.width},hh:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?bc.Sa.Zc:bc.Sa.jc;if("screen"in window){var a=window.screen.orientation||screen.ci||screen.ei;null!=a&&"object"===typeof a&&(a=a.type);if("landscape-primary"===a||"landscape-secondary"===a)return bc.Sa.Zc}return bc.Sa.jc},oh:function(a,b,c){c||null!=b&&b.metaKey?window.open(a):window.location=a},Sa:{jc:0,Zc:1}};J.WindowUtils=bc;
|
|
J.WindowUtils.openUri=bc.oh;function cc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r){this.id=a;this.viewed=b||!1;this.title=c||"";this.imageUrl=d;this.description=e||"";this.created=f||null;this.updated=g||null;this.categories=h||[];this.expiresAt=l||null;this.url=k;this.linkText=m;q=parseFloat(q);this.aspectRatio=isNaN(q)?null:q;this.extras=v;this.pinned=t||!1;this.dismissible=w||!1;this.dismissed=!1;this.clicked=r||!1;this.test=!1;this.pd=this.X=null}function dc(a){null==a.X&&(a.X=new Nb);return a.X}
|
|
function ec(a){null==a.pd&&(a.pd=new Nb);return a.pd}p=cc.prototype;p.Vb=function(a){return Ob(dc(this),a)};p.Wd=function(a){return Ob(ec(this),a)};p.N=function(a){dc(this).N(a);ec(this).N(a)};p.K=function(){dc(this).K();ec(this).K()};p.Od=function(){this.viewed=!0};p.fb=function(){this.clicked=this.viewed=!0;Pb(dc(this))};p.Nd=function(){return this.dismissible&&!this.dismissed?(this.dismissed=!0,Pb(ec(this)),!0):!1};
|
|
function fc(a,b){if(null==b||b[T.wa]!==a.id)return!0;if(b[T.pe])return!1;if(null!=b[T.ea]&&null!=a.updated&&b[T.ea]<Ia(a.updated.valueOf()))return!0;b[T.za]&&!a.viewed&&(a.viewed=!0);b[T.ta]&&!a.clicked&&(a.clicked=b[T.ta]);null!=b[T.Ua]&&(a.title=b[T.Ua]);null!=b[T.xa]&&(a.imageUrl=b[T.xa]);null!=b[T.Ra]&&(a.description=b[T.Ra]);if(null!=b[T.ea]){var c=Ja(b[T.ea]);null!=c&&(a.updated=c)}null!=b[T.ca]&&(a.expiresAt=b[T.ca]===gc?null:Ja(b[T.ca]));null!=b[T.URL]&&(a.url=b[T.URL]);null!=b[T.ya]&&(a.linkText=
|
|
b[T.ya]);null!=b[T.sa]&&(c=parseFloat(b[T.sa]),a.aspectRatio=isNaN(c)?null:c);null!=b[T.ka]&&(a.extras=b[T.ka]);null!=b[T.la]&&(a.pinned=b[T.la]);null!=b[T.va]&&(a.dismissible=b[T.va]);null!=b[T.V]&&(a.test=b[T.V]);return!0}
|
|
function hc(a){if(a[T.pe])return null;var b=a[T.wa],c=a[T.TYPE],d=a[T.za],e=a[T.Ua],f=a[T.xa],g=a[T.Ra],h=Ja(a[T.ea]);var l=a[T.ca]===gc?null:Ja(a[T.ca]);var k=a[T.URL],m=a[T.ya],q=a[T.sa],v=a[T.ka],t=a[T.la],w=a[T.va],r=a[T.ta];a=a[T.V]||!1;if(c===ic.xe||c===ic.ic)b=new jc(b,d,e,f,g,null,h,null,l,k,m,q,v,t,w,r);else if(c===ic.Yb)b=new kc(b,d,e,f,g,null,h,null,l,k,m,q,v,t,w,r);else if(c===ic.Xb)b=new lc(b,d,f,null,h,null,l,k,m,q,v,t,w,r);else if(c===ic.Sc)b=new mc(b,d,h,l,v,t);else return x.error("Ignoring card with unknown type "+
|
|
c),null;b.test=a;return b}function nc(a){var b=a[U.wa],c=a[U.TYPE],d=a[U.za],e=a[U.Ua],f=a[U.xa],g=a[U.Ra],h=La(a[U.bc]),l=La(a[U.ea]),k=a[U.Zb],m=La(a[U.ca]),q=a[U.URL],v=a[U.ya],t=a[U.sa],w=a[U.ka],r=a[U.la],F=a[U.va],D=a[U.ta];a=a[U.V]||!1;if(c===ic.ic)b=new jc(b,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D);else if(c===ic.Yb)b=new kc(b,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D);else if(c===ic.Xb)b=new lc(b,d,f,h,l,k,m,q,v,t,w,r,F,D);else if(c===ic.Sc)b=new mc(b,d,l,m,w,r);else return;b.test=a;return b}
|
|
function oc(a){null!=a&&(a=a.querySelectorAll(".ab-unread-indicator")[0],null!=a&&(a.className+=" read"))}
|
|
p.aa=function(a,b,c){function d(q){oc(f);g&&(a(e),bc.openUri(e.url,q,c));return!1}var e=this,f=document.createElement("div");f.className="ab-card ab-effect-card "+this.Dc;f.setAttribute("data-ab-card-id",this.id);f.setAttribute("role","article");f.setAttribute("tabindex","0");var g=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);f.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.xc(l),h.appendChild(l),f.className+=" with-image",g&&!this.Gc?(l=document.createElement("a"),l.setAttribute("href",this.url),l.onclick=d,l.appendChild(h),f.appendChild(l)):f.appendChild(h));h=document.createElement("div");h.className="ab-card-body";if(this.dismissible){this.Je=b;var k=ac("Dismiss Card",void 0,this.bf.bind(this));f.appendChild(k);
|
|
Vb(h,Wb,function(q){f.className+=" ab-swiped-left";k.onclick(q)});Vb(h,Xb,function(q){f.className+=" ab-swiped-right";k.onclick(q)})}if(b=this.title&&""!==this.title){l=document.createElement("h1");l.className="ab-title";l.id=pa.Ia();f.setAttribute("aria-labelledby",l.id);if(g){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=pa.Ia();f.setAttribute("aria-describedby",l.id);l.appendChild(document.createTextNode(this.description));g&&(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);f.appendChild(h);h=document.createElement("div");h.className="ab-unread-indicator";this.viewed&&
|
|
(h.className+=" read");f.appendChild(h);return this.Gg=f};p.xc=function(a){var b="";this.title||this.description||(b="Feed Image");a.setAttribute("alt",b)};p.bf=function(){if(this.dismissible&&!this.dismissed){this.Je&&this.Je(this);var a=this.Gg;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)},pc))},qc))}};
|
|
var gc=-1,ic={Yb:"captioned_image",xe:"text_announcement",ic:"short_news",Xb:"banner_image",Sc:"control"},T={wa:"id",za:"v",va:"db",pe:"r",ea:"ca",la:"p",ca:"ea",ka:"e",TYPE:"tp",xa:"i",Ua:"tt",Ra:"ds",URL:"u",ya:"dm",sa:"ar",ta:"cl",V:"t"},U={wa:"id",za:"v",va:"db",bc:"cr",ea:"ca",la:"p",Zb:"t",ca:"ea",ka:"e",TYPE:"tp",xa:"i",Ua:"tt",Ra:"ds",URL:"u",ya:"dm",sa:"ar",ta:"cl",V:"s"},pc=400;J.Card=cc;J.Card.fromContentCardsJson=hc;J.Card.prototype.dismissCard=cc.prototype.bf;
|
|
J.Card.prototype.subscribeToClickedEvent=cc.prototype.Vb;J.Card.prototype.subscribeToDismissedEvent=cc.prototype.Wd;J.Card.prototype.removeSubscription=cc.prototype.N;J.Card.prototype.removeAllSubscriptions=cc.prototype.K;function lc(a,b,c,d,e,f,g,h,l,k,m,q,v,t){cc.call(this,a,b,null,c,null,d,e,f,g,h,l,k,m,q,v,t);this.Dc="ab-banner";this.Gc=!1}na(lc,cc);lc.prototype.A=function(){var a={};a[U.TYPE]=ic.Xb;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.xa]=this.imageUrl;a[U.ea]=this.updated;a[U.bc]=this.created;a[U.Zb]=this.categories;a[U.ca]=this.expiresAt;a[U.URL]=this.url;a[U.ya]=this.linkText;a[U.sa]=this.aspectRatio;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.va]=this.dismissible;a[U.ta]=this.clicked;a[U.V]=this.test;return a};
|
|
J.Banner=lc;function kc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r){cc.call(this,a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r);this.Dc="ab-captioned-image";this.Gc=!0}na(kc,cc);
|
|
kc.prototype.A=function(){var a={};a[U.TYPE]=ic.Yb;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.Ua]=this.title;a[U.xa]=this.imageUrl;a[U.Ra]=this.description;a[U.ea]=this.updated;a[U.bc]=this.created;a[U.Zb]=this.categories;a[U.ca]=this.expiresAt;a[U.URL]=this.url;a[U.ya]=this.linkText;a[U.sa]=this.aspectRatio;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.va]=this.dismissible;a[U.ta]=this.clicked;a[U.V]=this.test;return a};J.CaptionedImage=kc;function jc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r){cc.call(this,a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r);this.Dc="ab-classic-card";this.Gc=!0}na(jc,cc);
|
|
jc.prototype.A=function(){var a={};a[U.TYPE]=ic.ic;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.Ua]=this.title;a[U.xa]=this.imageUrl;a[U.Ra]=this.description;a[U.ea]=this.updated;a[U.bc]=this.created;a[U.Zb]=this.categories;a[U.ca]=this.expiresAt;a[U.URL]=this.url;a[U.ya]=this.linkText;a[U.sa]=this.aspectRatio;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.va]=this.dismissible;a[U.ta]=this.clicked;a[U.V]=this.test;return a};J.ClassicCard=jc;function mc(a,b,c,d,e,f){cc.call(this,a,b,null,null,null,null,c,null,d,null,null,null,e,f,null);this.Dc="ab-control-card";this.Gc=!1}na(mc,cc);mc.prototype.A=function(){var a={};a[U.TYPE]=ic.Sc;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.ea]=this.updated;a[U.ca]=this.expiresAt;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.V]=this.test;return a};J.ControlCard=mc;function rc(a){a=parseInt(a);return!isNaN(a)&&0===(a&4278190080)>>>24}function sc(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(vb.Ya===ob.dc?8<vb.version:1)?"rgba("+[e,d,c,((a&4278190080)>>>24)/255*b].join()+")":"rgb("+[e,d,c].join()+")"};function W(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u,y,B,P){this.message=a;this.messageAlignment=b||tc;this.duration=q||5E3;this.slideFrom=c||uc;this.extras=d||{};this.campaignId=e;this.cardId=f;this.triggerId=g;this.clickAction=h||vc;this.uri=l;this.openTarget=k||wc;this.dismissType=m||xc;this.icon=v;this.imageUrl=t;this.imageStyle=w||yc;this.iconColor=r||zc.nd;this.iconBackgroundColor=F||zc.$d;this.backgroundColor=D||zc.nd;this.textColor=G||zc.ce;this.closeButtonColor=H||zc.Sf;this.animateIn=
|
|
A;null==this.animateIn&&(this.animateIn=!0);this.animateOut=N;null==this.animateOut&&(this.animateOut=!0);this.header=L;this.headerAlignment=I||tc;this.headerTextColor=V||zc.ce;this.frameColor=Q||zc.vg;this.buttons=n||[];this.cropType=u||Ac;this.orientation=y;this.htmlId=B;this.css=P;this.Fe=this.Wa=this.Ge=!1;this.X=new Nb;this.nc=new Nb}p=W.prototype;p.Ja=function(){return!0};p.xf=function(){return this.Ja()};function Bc(a){return null!=a.htmlId&&4<a.htmlId.length}
|
|
function Cc(a){return Bc(a)&&null!=a.css&&0<a.css.length}function Dc(a){if(Bc(a)&&Cc(a))return a.htmlId+"-css"}p.Vb=function(a){return Ob(this.X,a)};p.Wd=function(a){return Ob(this.nc,a)};p.N=function(a){this.X.N(a);this.nc.N(a)};p.K=function(){this.X.K();this.nc.K()};p.Od=function(){return this.Ge?!1:this.Ge=!0};p.fb=function(){return this.Wa?!1:(this.Wa=!0,Pb(this.X),!0)};p.Nd=function(){return this.Fe?!1:(this.Fe=!0,Pb(this.nc),!0)};
|
|
function Ec(a){if(a.is_control)return new Fc(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,f=a.extras,g=a.campaign_id,h=a.card_id,l=a.trigger_id,k=a.click_action,m=a.uri,q=a.open_target,v=a.message_close,t=a.duration,w=a.icon,r=a.image_url,F=a.image_style,D=a.icon_color,G=a.icon_bg_color,H=a.bg_color,A=a.text_color,N=a.close_btn_color,L=a.header,I=a.text_align_header,V=a.header_text_color,Q=a.frame_color,n=[],u=a.btns;null==u&&(u=[]);
|
|
for(var y=0;y<u.length;y++){var B=u[y];n.push(new Gc(B.text,B.bg_color,B.text_color,B.border_color,B.click_action,B.uri,B.id))}u=a.crop_type;y=a.orientation;B=a.animate_in;var P=a.animate_out,R=a.html_id,Y=a.css;if(null==R||""===R||null==Y||""===Y)Y=R=void 0;if(b===Hc||b===Ic)c=new Jc(c,d,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,B,P,L,I,V,Q,n,u,R,Y);else if(b===Kc)c=new Lc(c,d,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,B,P,L,I,V,Q,n,u,y,R,Y);else if(b===Mc)c=new Nc(c,d,e,f,g,h,l,k,m,q,v,t,w,r,D,G,H,A,N,B,P,R,Y);
|
|
else if(b===Oc||b===Pc)c=new Qc(c,f,g,h,l,v,t,B,P,Q,R,Y,a.message_fields),c.Th=a.trusted||!1;else{x.error("Ignoring message with unknown type "+b);return}c.nf=b;return c}function Rc(a,b){if(b&&b.parentNode){var c=b.closest(".ab-iam-root");null==c&&(c=b);a.Ja()&&null!=c.parentNode&&((b=c.parentNode.classList)&&b.contains(Sc)&&b.remove(Sc),document.body.removeEventListener("touchmove",Tc));c.className=c.className.replace(Uc,Vc)}return a.animateOut}
|
|
function Wc(a,b,c){if(null!=b){a.sc=null;var d=-1===b.className.indexOf("ab-in-app-message")?b.getElementsByClassName("ab-in-app-message")[0]:b;var e=!1;d&&(e=Rc(a,d));var f=document.body;if(null!=f)var g=f.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!=Dc(a)&&(h=document.getElementById(Dc(a)))&&h.parentNode&&h.parentNode.removeChild(h);null!=f&&"Safari"===vb.Ya&&(f.scrollTop=g);c?c():a.Nd()};e?setTimeout(d,
|
|
Xc):d();a.tc&&a.tc.focus()}}p.Ye=function(){Wc(this,this.sc)};
|
|
p.aa=function(a,b,c,d,e){function f(){-1!==h.className.indexOf("ab-start-hidden")&&(h.className=h.className.replace("ab-start-hidden",""),c(h))}var g=this,h=document.createElement("div");h.className="ab-in-app-message ab-start-hidden ab-background";e&&(h.style.zIndex=e+1);this.Ja()&&(h.className+=" ab-modal-interactions",h.setAttribute("tabindex","-1"));Cc(this)||(h.style.color=sc(this.textColor),h.style.backgroundColor=sc(this.backgroundColor),rc(this.backgroundColor)&&(h.className+=" ab-no-shadow"));
|
|
this.imageStyle===Yc&&(h.className+=" graphic");this.orientation===Zc&&(h.className+=" landscape");0===this.buttons.length&&(this.clickAction!==vc&&(h.className+=" ab-clickable"),h.onclick=function(v){Wc(g,h,function(){a.Jc(g);g.clickAction===$c?bc.openUri(g.uri,v,d||g.openTarget===ad):g.clickAction===bd&&b()});v.stopPropagation();return!1});var l=ac("Close Message",Cc(this)?void 0:sc(this.closeButtonColor),function(){Wc(g,h)});h.appendChild(l);e&&(l.style.zIndex=e+2);e=document.createElement("div");
|
|
e.className="ab-message-text";e.className+=" "+(this.messageAlignment||this.Bd).toLowerCase()+"-aligned";l=!1;var k=document.createElement("div");k.className="ab-image-area";if(this.imageUrl){if(this.cropType===cd){var m=document.createElement("span");m.className="ab-center-cropped-img";m.style.backgroundImage="url("+this.imageUrl+")";m.setAttribute("role","img");m.setAttribute("aria-label","Modal Image");this.xc(m);k.appendChild(m)}else m=document.createElement("img"),m.setAttribute("src",this.imageUrl),
|
|
this.xc(m),l=!0,m.onload=f,setTimeout(f,1E3),k.appendChild(m);h.appendChild(k);e.className+=" ab-with-image"}else if(this.icon){k.className+=" ab-icon-area";m=document.createElement("span");m.className="ab-icon";Cc(this)||(m.style.backgroundColor=sc(this.iconBackgroundColor),m.style.color=sc(this.iconColor));var q=document.createElement("i");q.className="fa";q.appendChild(document.createTextNode(this.icon));q.setAttribute("aria-hidden",!0);m.appendChild(q);k.appendChild(m);h.appendChild(k);e.className+=
|
|
" ab-with-icon"}Sb(e,"touchstart",function(){});this.header&&0<this.header.length&&(k=document.createElement("h1"),k.className="ab-message-header",this.qd=pa.Ia(),k.id=this.qd,k.className+=" "+(this.headerAlignment||tc).toLowerCase()+"-aligned",Cc(this)||(k.style.color=sc(this.headerTextColor)),k.appendChild(document.createTextNode(this.header)),e.appendChild(k));e.appendChild(this.Xe());h.appendChild(e);l||f();return this.sc=h};p.Xe=function(){return document.createTextNode(this.message)};
|
|
p.xc=function(a){var b="";this.message||this.header||!this.Ja()||(b="Modal Image");a.setAttribute("alt",b)};function Tc(a){a.targetTouches&&1<a.targetTouches.length||a.target.classList&&a.target.classList.contains("ab-message-text")&&a.target.scrollHeight>a.target.clientHeight||document.querySelector("."+Sc)&&a.preventDefault()}
|
|
p.Kc=function(a){this.Ja()&&null!=a.parentNode&&this.orientation!==Zc&&(null!=a.parentNode.classList&&a.parentNode.classList.add(Sc),document.body.addEventListener("touchmove",Tc,Qb()?{passive:!1}:!1));a.className+=" "+Uc};p.oa=function(){var a="";this.animateIn&&(a+=" ab-animate-in");this.animateOut&&(a+=" ab-animate-out");return a};
|
|
var zc={ce:4281545523,nd:4294967295,$d:4278219733,Tf:4293914607,Uf:4283782485,vg:3224580915,Sf:4288387995},dd={ge:"hd",Bf:"ias",rg:"of",Vf:"do",Ab:"umt",yb:"tf",ie:"te"},uc="BOTTOM",ed={TOP:"TOP",BOTTOM:uc},bd="NEWS_FEED",$c="URI",vc="NONE",fd={NEWS_FEED:bd,URI:$c,NONE:vc},xc="AUTO_DISMISS",gd={AUTO_DISMISS:xc,MANUAL:"SWIPE"},wc="NONE",ad="BLANK",hd={NONE:wc,BLANK:ad},yc="TOP",Yc="GRAPHIC",id={TOP:yc,GRAPHIC:Yc},Zc="LANDSCAPE",jd={PORTRAIT:"PORTRAIT",LANDSCAPE:Zc},tc="CENTER",kd={START:"START",CENTER:tc,
|
|
END:"END"},cd="CENTER_CROP",Ac="FIT_CENTER",ld={CENTER_CROP:cd,FIT_CENTER:Ac},Mc="SLIDEUP",Hc="MODAL",Ic="MODAL_STYLED",Kc="FULL",Oc="WEB_HTML",Pc="HTML",Xc=500,Uc="ab-show",Vc="ab-hide",Sc="ab-pause-scrolling";J.InAppMessage=W;J.InAppMessage.SlideFrom=ed;J.InAppMessage.ClickAction=fd;J.InAppMessage.DismissType=gd;J.InAppMessage.OpenTarget=hd;J.InAppMessage.ImageStyle=id;J.InAppMessage.TextAlignment=kd;J.InAppMessage.Orientation=jd;J.InAppMessage.CropType=ld;J.InAppMessage.fromJson=Ec;
|
|
J.InAppMessage.prototype.subscribeToClickedEvent=W.prototype.Vb;J.InAppMessage.prototype.subscribeToDismissedEvent=W.prototype.Wd;J.InAppMessage.prototype.removeSubscription=W.prototype.N;J.InAppMessage.prototype.removeAllSubscriptions=W.prototype.K;J.InAppMessage.prototype.closeMessage=W.prototype.Ye;function Gc(a,b,c,d,e,f,g){this.text=a||"";this.backgroundColor=b||zc.$d;this.textColor=c||zc.nd;this.borderColor=d||this.backgroundColor;this.clickAction=e||vc;this.uri=f;null==g&&(g=md);this.id=g;this.Wa=!1;this.X=new Nb}Gc.prototype.Vb=function(a){return Ob(this.X,a)};Gc.prototype.N=function(a){this.X.N(a)};Gc.prototype.K=function(){this.X.K()};Gc.prototype.fb=function(){return this.Wa?!1:(this.Wa=!0,Pb(this.X),!0)};var md=-1;J.InAppMessageButton=Gc;
|
|
J.InAppMessageButton.prototype.subscribeToClickedEvent=Gc.prototype.Vb;J.InAppMessageButton.prototype.removeSubscription=Gc.prototype.N;J.InAppMessageButton.prototype.removeAllSubscriptions=Gc.prototype.K;function Fc(a){this.triggerId=a}J.ControlMessage=Fc;function nd(a){for(var b=a.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button"),c=0;c<b.length;c++)b[c].tabIndex=0;if(0<b.length){var d=b[0],e=b[b.length-1];a.addEventListener("keydown",function(f){var g=document.activeElement;9===f.keyCode&&(f.shiftKey||g!==e&&g!==a?!f.shiftKey||g!==d&&g!==a||(f.preventDefault(),e.focus()):(f.preventDefault(),d.focus()))})}}
|
|
function od(a,b){b.setAttribute("role","dialog");b.setAttribute("aria-modal",!0);b.setAttribute("aria-label","Modal Message");a&&b.setAttribute("aria-labelledby",a)}
|
|
function pd(a,b,c,d,e){if(0<a.buttons.length){var f=document.createElement("div");f.className="ab-message-buttons";d.appendChild(f);var g=d.getElementsByClassName("ab-message-text")[0];null!=g&&(g.className+=" ab-with-buttons");g=function(q){return function(v){Wc(a,d,function(){b.Ic(q,a);q.clickAction===$c?bc.openUri(q.uri,v,e||a.openTarget===ad):q.clickAction===bd&&c()});v.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");Sb(k,"touchstart",function(){});var m=l.text;""===l.text&&(m="\u00a0");k.appendChild(document.createTextNode(m));Cc(a)||(k.style.backgroundColor=sc(l.backgroundColor),k.style.color=sc(l.textColor),k.style.borderColor=sc(l.borderColor));k.onclick=g(l);f.appendChild(k)}}};function Lc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u,y,B){n=n||cd;W.call(this,a,b,null,c,d,e,f,g,h,l,k||"SWIPE",m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u||"PORTRAIT",y,B)}na(Lc,W);Lc.prototype.aa=function(a,b,c,d,e,f){this.tc=document.activeElement;b=W.prototype.aa.call(this,a,c,d,e,f);b.className+=" ab-fullscreen ab-centered";pd(this,a,c,b,e);nd(b);od(this.qd,b);return b};Lc.prototype.oa=function(){return W.prototype.oa.call(this)+" ab-effect-fullscreen"};
|
|
fa.Object.defineProperties(Lc.prototype,{Bd:{configurable:!0,enumerable:!0,get:function(){return tc}}});J.FullScreenMessage=Lc;var qd=new function(){this.$e=".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-size:15px;border:none;width:15px;min-width:15px;height:15px;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;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;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.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;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;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;height: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:100%;max-height:100%;width:auto;height: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-size:15px;border:none;width:15px;min-width:15px;height:15px;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;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;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;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;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height: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-initial-spinner{float:none}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-size:15px;border:none;width:15px;min-width:15px;height:15px;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;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;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;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 rd(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 sd(a){return a&&(a=a.toString().toLowerCase(),0===a.lastIndexOf("javascript:",0)||0===a.lastIndexOf("data:",0))?!0:!1};function Qc(a,b,c,d,e,f,g,h,l,k,m,q,v){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,f||"SWIPE",g,null,null,null,null,null,null,null,null,h,l,null,null,null,k,void 0,void 0,void 0,m,q);this.messageFields=v}na(Qc,W);Qc.prototype.xf=function(){return!1};
|
|
Qc.prototype.fb=function(a){if(this.nf===Oc){if(this.Wa)return!1;this.Wa=!0}Pb(this.X,a);return!0};
|
|
Qc.prototype.aa=function(a,b,c,d,e,f){function g(m,q,v){return(v=m.match(new RegExp("([\\w]+)\\s*=\\s*document.createElement\\(['\"]"+v+"['\"]\\)")))?m.slice(0,v.index+v[0].length)+";"+(v[1]+'.setAttribute("nonce", "'+q+'");')+m.slice(v.index+v[0].length):null}function h(m){var q=m.getAttribute("href"),v=m.onclick;return function(t){if(null==v||"function"!==typeof v||!1!==v()){var w=rd(q).abButtonId;if(null==w||""===w)w=m.getAttribute("id");if(null!=q&&""!==q&&0!==q.indexOf("#")){var r="blank"===
|
|
(m.getAttribute("target")||"").toLowerCase().replace("_",""),F=e||l.openTarget===ad||r;r=function(){a.Pb(l,w,q);bc.openUri(q,t,F)};F?r():Wc(l,k,r)}else a.Pb(l,w,q);t.stopPropagation();return!1}}}var l=this;this.tc=document.activeElement;var k=document.createElement("iframe");k.setAttribute("title","Modal Message");f&&(k.style.zIndex=f+1);k.onload=function(){function m(H){return function(){var A=arguments;Wc(l,k,function(){b.display[H].apply(b.display,Array.prototype.slice.call(A))})}}function q(H){return function(){var A=
|
|
b.getUser();A[H].apply(A,Array.prototype.slice.call(arguments))}}function v(H){return function(){b[H].apply(b,Array.prototype.slice.call(arguments))}}var t=null,w=a.ih();if(null!=w){t=document.createElement("html");t.innerHTML=l.message;for(var r=t.getElementsByTagName("style"),F=0;F<r.length;F++)r[F].setAttribute("nonce",w);r=t.getElementsByTagName("script");for(F=0;F<r.length;F++){r[F].setAttribute("nonce",w);r[F].innerHTML=r[F].innerHTML.replace(/<style>/g,"<style nonce='"+w+"'>");var D=g(r[F].innerHTML,
|
|
w,"script");D&&(r[F].innerHTML=D);if(D=g(r[F].innerHTML,w,"style"))r[F].innerHTML=D}}k.contentWindow.focus();k.contentWindow.document.write(t?t.innerHTML:l.message);t=k.contentWindow.document.getElementsByTagName("head")[0];null!=t&&(r=document.createElement("style"),r.innerHTML=qd.$e,null!=w&&r.setAttribute("nonce",w),t.appendChild(r),Cc(l)&&(r=document.createElement("style"),r.innerHTML=l.css,r.id=Dc(l),null!=w&&r.setAttribute("nonce",w),t.appendChild(r)),w=k.contentWindow.document.createElement("base"),
|
|
w.setAttribute("target","_parent"),t.appendChild(w));w=k.contentWindow.document.getElementsByTagName("title");0<w.length&&k.setAttribute("title",w[0].textContent);w={closeMessage:function(){Wc(l,k)},logClick:function(){var H=[l];0<arguments.length&&H.push(arguments[0]);b.logInAppMessageHtmlClick.apply(b,H)},display:{},web:{}};t=["requestImmediateDataFlush","logCustomEvent","logPurchase","unregisterAppboyPushMessages"];for(r=0;r<t.length;r++)w[t[r]]=v(t[r]);t="setFirstName setLastName setEmail setGender setDateOfBirth setCountry setHomeCity setEmailNotificationSubscriptionType setLanguage addAlias setPushNotificationSubscriptionType setPhoneNumber setCustomUserAttribute addToCustomAttributeArray removeFromCustomAttributeArray incrementCustomUserAttribute setCustomLocationAttribute addToSubscriptionGroup removeFromSubscriptionGroup".split(" ");
|
|
var G={};for(r=0;r<t.length;r++)G[t[r]]=q(t[r]);w.getUser=function(){return G};t=["showFeed"];for(r=0;r<t.length;r++)w.display[t[r]]=m(t[r]);t=["registerAppboyPushMessages","trackLocation"];for(r=0;r<t.length;r++)w.web[t[r]]=v(t[r]);k.contentWindow.appboyBridge=w;k.contentWindow.brazeBridge=w;if(l.nf!==Pc){t=k.contentWindow.document.getElementsByTagName("a");for(r=0;r<t.length;r++)t[r].onclick=h(t[r]);t=k.contentWindow.document.getElementsByTagName("button");for(r=0;r<t.length;r++)t[r].onclick=h(t[r])}t=
|
|
k.contentWindow.document.body;null!=t&&(Bc(l)&&(t.id=l.htmlId),r=document.createElement("hidden"),r.onclick=w.closeMessage,r.className="ab-programmatic-close-button",t.appendChild(r));k.contentWindow.dispatchEvent(new CustomEvent("ab.BridgeReady"));-1!==k.className.indexOf("ab-start-hidden")&&(k.className=k.className.replace("ab-start-hidden",""),d(k));document.activeElement!==k&&k.focus()};k.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions";return"iOS"===vb.ga?(c=
|
|
document.createElement("div"),c.className="ab-ios-scroll-wrapper",c.appendChild(k),this.sc=c):this.sc=k};Qc.prototype.oa=function(){return W.prototype.oa.call(this)+" ab-effect-html"};J.HtmlMessage=Qc;function Jc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u,y){n=n||Ac;W.call(this,a,b,null,c,d,e,f,g,h,l,k||"SWIPE",m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,void 0,u,y)}na(Jc,W);Jc.prototype.aa=function(a,b,c,d,e,f){this.tc=document.activeElement;b=W.prototype.aa.call(this,a,c,d,e,f);b.className+=" ab-modal ab-centered";pd(this,a,c,b,e);nd(b);od(this.qd,b);return b};Jc.prototype.oa=function(){return W.prototype.oa.call(this)+" ab-effect-modal"};
|
|
fa.Object.defineProperties(Jc.prototype,{Bd:{configurable:!0,enumerable:!0,get:function(){return tc}}});J.ModalMessage=Jc;function Nc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L){D=D||zc.Uf;F=F||zc.Tf;W.call(this,a,b||"START",c,d,e,f,g,h,l,k,m,q,v,t,null,w,r,F,D,G,H,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N,L)}na(Nc,W);p=Nc.prototype;p.Ja=function(){return!1};
|
|
p.aa=function(a,b,c,d,e,f){var g=W.prototype.aa.call(this,a,c,d,e,f);g.className+=" ab-slideup";var h=g.getElementsByClassName("ab-close-button")[0];null!=h&&(a=$b("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",Cc(this)?void 0:sc(this.closeButtonColor)),a.setAttribute("class","ab-chevron"),h.appendChild(a));Vb(g,Wb,function(k){g.className+=" ab-swiped-left";h.onclick(k)});Vb(g,Xb,function(k){g.className+=" ab-swiped-right";h.onclick(k)});if("TOP"===this.slideFrom){a=
|
|
Yb;var l=" ab-swiped-up"}else a=Zb,l=" ab-swiped-down";Vb(g,a,function(k){g.className+=l;h.onclick(k)});return g};p.Xe=function(){var a=document.createElement("span");a.appendChild(document.createTextNode(this.message));return a};p.Kc=function(a){var b=a.getElementsByClassName("ab-in-app-message")[0];Tb(b,!0,!0)||("TOP"===this.slideFrom?b.style.top="0px":b.style.bottom="0px");W.prototype.Kc.call(this,a)};p.oa=function(){return W.prototype.oa.call(this)+" ab-effect-slide"};
|
|
fa.Object.defineProperties(Nc.prototype,{Bd:{configurable:!0,enumerable:!0,get:function(){return"START"}}});J.SlideUpMessage=Nc;function td(a,b){ud={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==ud[a]){var c=a.indexOf("-");0<c&&(a=a.substring(0,c))}null==ud[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?x.error(a):x.info(a),a="en");vd=a}var ud,vd;function wd(a,b){this.cards=a;this.lastUpdated=b}p=wd.prototype;p.ff=function(){for(var a=0,b=0;b<this.cards.length;b++)this.cards[b].viewed||this.cards[b]instanceof mc||a++;return a};function xd(a,b){b&&(b.className=b.className.replace("ab-show","ab-hide"),setTimeout(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},qc));var c=b.getAttribute(yd);null!=c&&a.N(c)}p.Ma=function(a,b){a.Ma(b)};p.La=function(a,b){a.La(b)};
|
|
function zd(a,b,c){var d=document.createElement("div");d.className="ab-feed-body";d.setAttribute("aria-label","Feed");d.setAttribute("role","feed");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 f=function(k){a.La(b,k)},g=function(k){b.Hc(k)},h=0;h<a.cards.length;h++){var l=a.cards[h]instanceof mc;!l||a instanceof
|
|
Ad?(d.appendChild(a.cards[h].aa(f,g,c)),e=e||!l):x.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=ud[vd].NO_CARDS_MESSAGE,c.setAttribute("role","article"),d.appendChild(c))}return d}
|
|
function Bd(a,b,c){if(null!=c){var d=[];c=c.querySelectorAll(".ab-card");a.od||(a.od={});for(var e=0;e<c.length;e++){var f=c[e].getAttribute("data-ab-card-id");if(!a.od[f]){var g=c[e];g=null!=g&&!!g.getAttribute("data-ab-had-top-impression");var h=c[e];h=null!=h&&!!h.getAttribute("data-ab-had-bottom-impression");var l=g,k=h,m=Tb(c[e],!0,!1,!1),q=Tb(c[e],!1,!0,!1);if(!g&&m){g=!0;var v=c[e];null!=v&&v.setAttribute("data-ab-had-top-impression",!0)}!h&&q&&(h=!0,v=c[e],null!=v&&v.setAttribute("data-ab-had-bottom-impression",
|
|
!0));if(g&&h&&(m||q||oc(c[e]),!l||!k))for(g=0;g<a.cards.length;g++)if(a.cards[e].id===f){a.od[a.cards[e].id]=!0;d.push(a.cards[e]);break}}}0<d.length&&a.Ma(b,d)}}p.Se=function(a){a.Nc()};
|
|
function Cd(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(Dd,e);setTimeout(function(){if(c.getAttribute(Dd)===e){for(var f=c.querySelectorAll(".fa-spin"),g=0;g<f.length;g++)f[g].className=f[g].className.replace(/fa-spin/g,"");f=c.querySelectorAll(".ab-initial-spinner")[0];null!=f&&(g=document.createElement("span"),g.innerHTML=ud[vd].FEED_TIMEOUT_MESSAGE,f.parentNode.appendChild(g),
|
|
f.parentNode.removeChild(f));"true"===c.getAttribute("aria-busy")&&c.setAttribute("aria-busy","false")}},Ed);a.Se(b)}
|
|
p.aa=function(a,b){function c(k){Cd(e,a,f);k.stopPropagation()}function d(k){xd(a,f);k.stopPropagation()}var e=this,f=document.createElement("div");f.className="ab-feed ab-hide ab-effect-slide";f.setAttribute("role","dialog");f.setAttribute("tabindex","-1");var g=document.createElement("div");g.className="ab-feed-buttons-wrapper";g.setAttribute("role","group");f.appendChild(g);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;g.appendChild(l);g.appendChild(h);f.appendChild(zd(this,
|
|
a,b));f.onscroll=function(){Bd(e,a,f)};return f};function Fd(a,b,c,d,e,f){if(Ca(b)){for(var g=[],h=0;h<b.length;h++)b[h]instanceof cc&&g.push(b[h]);a.cards=g;a.lastUpdated=c;null!=d&&(d.setAttribute("aria-busy","false"),null==a.lastUpdated?xd(e,d):(b=d.querySelectorAll(".ab-feed-body")[0],null!=b&&(f=zd(a,e,f),b.parentNode.replaceChild(f,b),Bd(a,e,f.parentNode))))}}var qc=500,yd="data-update-subscription-id",Dd="data-last-requested-refresh",Ed=1E4;J.Feed=wd;J.Feed.prototype.getUnreadCardCount=wd.prototype.ff;function Ad(a,b){wd.call(this,a,b)}na(Ad,wd);Ad.prototype.jh=function(){return wd.prototype.ff.call(this)};Ad.prototype.Ma=function(a,b){a.Ma(b,!0)};Ad.prototype.La=function(a,b){a.La(b,!0)};Ad.prototype.Se=function(a){a.Na()};J.ContentCards=Ad;J.ContentCards.prototype.getUnviewedCardCount=Ad.prototype.jh;function $a(){this.h=!1;this.j=[]};function Gd(a){this.bb=a}Gd.prototype.fa=function(a){return null==this.bb||this.bb===a[0]};Gd.prototype.A=function(){return this.bb};function Hd(a,b,c,d){this.lf=a;this.Mc=b;this.nb=c;this.I=d;this.Mc===Id&&this.nb!==Jd&&this.nb!==Kd&&this.nb!==Ld&&this.nb!==Md&&(this.I=Ja(this.I))}
|
|
Hd.prototype.fa=function(a){var b=null;null!=a&&(b=a[this.lf]);switch(this.nb){case Nd:return null!=b&&b.valueOf()===this.I.valueOf();case Od:return null==b||b.valueOf()!==this.I.valueOf();case Pd:return typeof b===typeof this.I&&b>this.I;case Jd:return this.Mc===Id?null!=b&&Da(b)&&((new Date).valueOf()-b.valueOf())/1E3<=this.I:typeof b===typeof this.I&&b>=this.I;case Qd:return typeof b===typeof this.I&&b<this.I;case Kd:return this.Mc===Id?null!=b&&Da(b)&&((new Date).valueOf()-b.valueOf())/1E3>=this.I:
|
|
typeof b===typeof this.I&&b<=this.I;case Rd:return null!=b&&"string"===typeof b&&typeof b===typeof this.I&&null!=b.match(this.I);case Sd:return null!=b;case Td:return null==b;case Ld:return null!=b&&Da(b)&&(b.valueOf()-(new Date).valueOf())/1E3<this.I;case Md:return null!=b&&Da(b)&&(b.valueOf()-(new Date).valueOf())/1E3>this.I;case Ud:return null==b||typeof b!==typeof this.I||"string"!==typeof b||null==b.match(this.I)}return!1};
|
|
Hd.prototype.A=function(){var a=this.I;Da(this.I)&&(a=Ia(a.valueOf()));return{k:this.lf,t:this.Mc,c:this.nb,v:a}};var Nd=1,Od=2,Pd=3,Jd=4,Qd=5,Kd=6,Rd=10,Sd=11,Td=12,Ld=15,Md=16,Ud=17,Id="date";function Vd(a){this.filters=a}Vd.prototype.fa=function(a){for(var b=!0,c=0;c<this.filters.length;c++){for(var d=this.filters[c],e=!1,f=0;f<d.length;f++)if(d[f].fa(a)){e=!0;break}if(!e){b=!1;break}}return b};function Wd(a){if(null==a||!Ca(a))return null;for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],f=0;f<e.length;f++){var g=e[f];d.push(new Hd(g.property_key,g.property_type,g.comparator,g.property_value))}b.push(d)}return new Vd(b)}
|
|
Vd.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 Xd(a){for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],f=0;f<e.length;f++){var g=e[f];d.push(new Hd(g.k,g.t,g.c,g.v))}b.push(d)}return new Vd(b)};function Yd(a,b){this.bb=a;this.eb=b}Yd.prototype.fa=function(a){if(null==this.bb||null==this.eb)return!1;var b=a[1];return a[0]===this.bb&&this.eb.fa(b)};Yd.prototype.A=function(){return{e:this.bb,pf:this.eb.A()}};function Zd(a,b){this.Za=a;this.Gb=b}Zd.prototype.fa=function(a){if(null==this.Za)return!1;var b=$d(a[0],this.Za);if(!b)return!1;var c=null==this.Gb||0===this.Gb.length;if(null!=this.Gb)for(var d=0;d<this.Gb.length;d++)if(this.Gb[d]===a[1]){c=!0;break}return b&&c};Zd.prototype.A=function(){return this.Za};function ae(a){this.cb=a}ae.prototype.fa=function(a){return null==this.cb||a[0]===this.cb};ae.prototype.A=function(){return this.cb};function be(a,b){this.cb=a;this.eb=b}be.prototype.fa=function(a){if(null==this.cb||null==this.eb)return!1;var b=a[1];return a[0]===this.cb&&this.eb.fa(b)};be.prototype.A=function(){return{id:this.cb,pf:this.eb.A()}};function ce(a){this.Za=a}ce.prototype.fa=function(a){return null==this.Za?!0:$d(a[0],this.Za)};ce.prototype.A=function(){return this.Za};var de={OPEN:"open",fd:"purchase",ne:"push_click",Tc:"custom_event",ec:"iam_click",V:"test"};function ee(a,b){this.type=a;this.data=b}function fe(a,b,c){return ge[a.type]===b&&(null==a.data||a.data.fa(c))}function $d(a,b){var c=null;try{c=window.atob(a)}catch(d){return x.info("Failed to unencode analytics id "+a+": "+d.message),!1}return b===c.split("_")[0]}
|
|
function he(a){var b=a.type;switch(b){case ie:var c=null;break;case je:a=a.data;c=new ae(a?a.product_id:null);break;case ke:a=a.data;c=new be(a?a.product_id:null,a?Wd(a.property_filters):null);break;case le:a=a.data;c=new ce(a?a.campaign_id:null);break;case me:a=a.data;c=new Gd(a?a.event_name:null);break;case ne:a=a.data;c=new Yd(a?a.event_name:null,a?Wd(a.property_filters):null);break;case oe:a=a.data;c=new Zd(a?a.id:null,a?a.buttons:null);break;case pe:c=null}return new ee(b,c)}
|
|
ee.prototype.A=function(){return{t:this.type,d:this.data?this.data.A():null}};function qe(a){switch(a.t){case ie:var b=null;break;case je:b=new ae(a.d);break;case ke:b=a.d||{};b=new be(b.id,Xd(b.pf||[]));break;case le:b=new ce(a.d);break;case me:b=new Gd(a.d);break;case ne:b=a.d||{};b=new Yd(b.e,Xd(b.pf||[]));break;case oe:b=new Zd(a.d);break;case pe:b=null}return new ee(a.t,b)}
|
|
var ie="open",je="purchase",ke="purchase_property",le="push_click",me="custom_event",ne="custom_event_property",oe="iam_click",pe="test",ge={};ge[ie]=de.OPEN;ge[je]=de.fd;ge[ke]=de.fd;ge[le]=de.ne;ge[me]=de.Tc;ge[ne]=de.Tc;ge[oe]=de.ec;ge[pe]=de.V;function re(a,b,c,d,e,f,g,h,l,k,m,q){this.id=a;this.ob=b||[];void 0===c&&(c=null);this.startTime=c;void 0===d&&(d=null);this.endTime=d;this.priority=e||0;this.type=f;this.ab=h||0;null==k&&(k=1E3*(this.ab+30));this.Oa=k;this.data=g;null==l&&(l=se);this.Rb=l;this.kf=m;this.Ca=q||null}
|
|
function te(a,b){var c=(new Date).valueOf()-b;(b=null==b||isNaN(c)||null==a.Oa||c<a.Oa)||x.info("Trigger action "+a.type+" is no longer eligible for display - fired "+c+"ms ago and has a timeout of "+a.Oa+"ms");return!b}re.prototype.A=function(){for(var a=[],b=0;b<this.ob.length;b++)a.push(this.ob[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.ab,r:this.Rb,tm:this.Oa,ss:this.kf,ld:this.Ca}};
|
|
function ue(a){for(var b=[],c=0;c<a.c.length;c++)b.push(qe(a.c[c]));return new re(a.i,b,La(a.s),La(a.e),a.p,a.t,a.da,a.d,a.r,a.tm,a.ss,a.ld)}var se=-1,ve={Xc:"inapp",we:"templated_iam"};function we(a,b){a=Math.ceil(a);b=Math.floor(b);return Math.floor(Math.random()*(b-a+1))+a};function xe(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):x.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.zc&&a.zc(!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.zc&&a.zc(!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 f=a.headers||
|
|
[],g=0;g<f.length;g++)b.setRequestHeader(f[g][0],f[g][1])}b.send(e)}}catch(h){x.error("Network request error: "+h.message)}};function ye(a,b,c,d,e,f,g,h,l,k,m,q){var v=this;this.$=a;this.Kg=b;this.Oe=c;this.Fg=d;this.Bb=e;this.lb=0;this.pc=k.R.df;this.Ie=null;this.D=f;this.mc=g;this.f=h;this.J=l;this.b=k;this.W=q;this.Dg=m;this.sd=new Nb;this.Eb=["npm"];this.Ag=50;this.Va=0;ze(this.W,function(){v.Va=0});this.Cg=1E3;this.Bg=6E4}
|
|
function Ae(a,b){var c=Be(a.mc),d=c.Ac(),e=S(a.b,M.cc);Ha(e,d)||(b.device=d);b.api_key=a.$;b.time=Ia((new Date).valueOf(),!0);b.sdk_version=a.Kg;a.Oe&&(b.sdk_flavor=a.Oe);b.app_version=a.Fg;b.device_id=c.id;c=S(a.b,M.se)||[];d=S(a.b,M.ue)||"";0<a.Eb.length&&(!Ha(c,a.Eb)||d!==a.D.Kb())&&(b.sdk_metadata=a.Eb);return b}
|
|
function Ce(a,b,c,d){var e=c.auth_error,f=c.error;if(!e&&!f)return!0;if(e){a.Va+=1;c={errorCode:e.error_code};d=ba(d);for(f=d.next();!f.done;f=d.next())f=f.value,Ca(f)&&"X-Braze-Auth-Signature"===f[0]&&(c.signature=f[1]);b.respond_with&&b.respond_with.user_id?c.userId=b.respond_with.user_id:b.user_id&&(c.userId=b.user_id);(d=e.reason)?(c.reason=d,e="due to "+d):e="with error code "+e.error_code+".";a.W.Db||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.');
|
|
x.error("SDK Authentication failed "+e);De(a,b);Pb(a.W.ze,c);return!1}if(f){e=f;switch(e){case "empty_response":return bb(a.b,[new E(a.f.o(),z.Yc,(new Date).valueOf(),a.D.Kb,{e:"Received successful response with empty body."})]),x.info("Received successful response with empty body."),!1;case "invalid_json_response":return bb(a.b,[new E(a.f.o(),z.Yc,(new Date).valueOf(),a.D.Kb,{e:"Received successful response with invalid JSON: "+c.response})]),x.info("Received successful response with invalid JSON"),
|
|
!1;case "invalid_api_key":e='The API key "'+b.api_key+'" is invalid for the baseUrl '+a.Bb;break;case "blacklisted":e="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case "no_device_identifier":e="No device identifier. Please contact support@braze.com"}x.error("Backend error: "+e)}return!1}
|
|
function Fe(a,b,c,d,e,f,g,h){null==d&&(d=!0);d&&Ge(a);var l=Ab(a.b),k=Gb(a.b),m=He(a.D);if(0<l.length)for(var q=a.f.o(),v=ba(l),t=v.next();!t.done;t=v.next()){t=t.value;var w=null==t.gb&&null==q||t.gb===q;t.type===z.ve&&w&&(m=!0)}if(!h&&!m&&a.Va>=a.Ag)x.info("Declining to flush data due to 50 consecutive authentication failures");else if(h=c||m,!d||0!==l.length||0!==k.length||b||h){var r=!1,F=function(A,N){var L=!1;xe({url:""+a.Bb+"/data/",data:A,headers:N,h:function(I){null!=A.respond_with&&A.respond_with.triggers&&
|
|
(a.lb=Math.max(a.lb-1,0));if(Ce(a,A,I,N)){a.Va=0;var V=a.J;if(null!=I&&null!=I.config){var Q=I.config;if(Q.time>Ie(V).Nb){Q=new Je(Q.time,Q.events_blacklist,Q.attributes_blacklist,Q.purchases_blacklist,Q.messaging_session_timeout,Q.vapid_public_key,Q.content_cards);var n=!1;null!=Q.ra&&Ie(V).ra!==Q.ra&&(n=!0);var u=!1;null!=Q.Hb.enabled&&(Ie(V).Hb.enabled||!1)!==Q.Hb.enabled&&(u=!0);V.uc=Q;O(V.b,M.te,Q.A());n&&Pb(V.xd);u&&Pb(V.Ae)}}if(null==A.respond_with||A.respond_with.user_id==a.f.o())null!=A.device&&
|
|
O(a.b,M.cc,A.device),null!=A.sdk_metadata&&(O(a.b,M.se,A.sdk_metadata),O(a.b,M.ue,a.D.Kb())),a.Dg(I),"function"===typeof e&&e()}else I.auth_error&&(L=!0)},error:function(){null!=A.respond_with&&A.respond_with.triggers&&(a.lb=Math.max(a.lb-1,0));De(a,A);"function"===typeof f&&f()},zc:function(I){"function"===typeof g&&g(I);if(d&&!r){if(I&&!L)Ke(a);else{I=a.Ie;if(null==I||I<1E3*a.pc)I=1E3*a.pc;Ke(a,Math.min(3E5,we(1E3*a.pc,3*I)))}r=!0}}})},D=function(A){return null!=A?A:""},G={};c=D(a.f.o());if(b||
|
|
h)G[c]=Le(a,b,h),h&&a.lb++;b=function(A,N){var L=D(N.user_id);G[L]||(G[L]=Le(a,!1,!1,L));G[L][A]||(G[L][A]=[]);G[L][A].push(N)};l=ba(l);for(h=l.next();!h.done;h=l.next())b("events",h.value.Ac());k=ba(k);for(l=k.next();!l.done;l=k.next())b("attributes",l.value);k=!1;l={};for(var H in G)a.W.Db&&H!==c?De(a,G[H]):(l.ub=Ae(a,G[H]),l.Pc=Me(a,l.ub),Ne(l.ub,function(A){return function(){return F(A.ub,A.Pc)}}(l)),k=!0),l={ub:l.ub,Pc:l.Pc};d&&!k?Ke(a):m&&(x.info("Invoking new session subscriptions"),Pb(a.sd))}else Ke(a),
|
|
"function"===typeof g&&g(!0)}function Ne(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 De(a,b){if(b.events){for(var c=[],d=ba(b.events),e=d.next();!e.done;e=d.next())e=e.value,e=new E(e.user_id,e.name,e.time,e.session_id,e.data),e.time*=1E3,c.push(e);bb(a.b,c)}if(b.attributes)for(b=ba(b.attributes),c=b.next();!c.done;c=b.next())Eb(a.b,c.value)}function Oe(a,b){var c="HTTP error ";null!=a&&(c+=a+" ");x.error(c+b)}
|
|
function Pe(a,b,c,d,e){var f=Le(a,!1,!1);f=Ae(a,f);f.template={trigger_id:b.Pa,trigger_event_type:c};null!=d&&(f.template.data=d.Ac());var g=Me(a,f);Ne(f,function(){xe({url:""+a.Bb+"/template/",data:f,headers:g,h:function(h){Ce(a,f,h,g)?(a.Va=0,null==h||null==h.templated_message?a.M(b.Pa,dd.yb):(h=h.templated_message,h.type!==ve.Xc?a.M(b.Pa,dd.Ab):(h=Ec(h.data),null==h?a.M(b.Pa,dd.Ab):"function"===typeof b.zf?b.zf(h):a.M(b.Pa,dd.yb)))):(a.M(b.Pa,dd.yb),"function"===typeof b.yf&&b.yf())},error:function(h){var l=
|
|
"getting user personalization for message "+b.Pa;if((new Date).valueOf()-b.Ec>b.Oa)a.M(b.Pa,dd.yb);else{var k=Math.min(b.Oa,a.Bg),m=a.Cg;null==e&&(e=m);var q=Math.min(k,we(m,3*e));l+=". Retrying in "+q+"ms";setTimeout(function(){Pe(a,b,c,d,q)},q)}Oe(h,l)}})})}p=ye.prototype;
|
|
p.Na=function(a,b,c,d,e){var f=this,g=Ae(this,{});g.last_full_sync_at=a;g.last_card_updated_at=b;a=this.f.o();null!=a&&(g.user_id=a);var h=[["X-Braze-Api-Key",this.$],["X-Braze-DataRequest","true"],["X-Braze-ContentCardsRequest","true"]];this.W.Db&&(a=S(this.W.b,M.jb),null!=a&&h.push(["X-Braze-Auth-Signature",a]));Ne(g,function(){xe({url:""+f.Bb+"/content_cards/sync",data:g,headers:h,h:function(l){Ce(f,g,l,h)?(f.Va=0,c(l),"function"===typeof d&&d()):"function"===typeof e&&e()},error:function(l){Oe(l,
|
|
"retrieving content cards");"function"===typeof e&&e()}})})};function Le(a,b,c,d){var e={};b&&(e.feed=!0);c&&(e.triggers=!0);(b=null!=d?d:a.f.o())&&(e.user_id=b);e.config={config_time:Ie(a.J).Nb};return{respond_with:e}}
|
|
function Me(a,b){var c=[["X-Braze-Api-Key",a.$]],d=!1;null!=b.respond_with&&b.respond_with.triggers&&(c.push(["X-Braze-TriggersRequest","true"]),d=!0);null!=b.respond_with&&b.respond_with.feed&&(c.push(["X-Braze-FeedRequest","true"]),d=!0);d&&c.push(["X-Braze-DataRequest","true"]);a.W.Db&&(a=S(a.W.b,M.jb),null!=a&&c.push(["X-Braze-Auth-Signature",a]));return c}
|
|
function Qe(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)return x.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 Re(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 Ke(a,b){a.Ce||(null==b&&(b=1E3*a.pc),Ge(a),a.qc=setTimeout(function(){if(document.hidden){var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),Fe(a))};document.addEventListener("visibilitychange",c,!1)}else Fe(a)},b),a.Ie=b)}function Ge(a){null!=a.qc&&(clearTimeout(a.qc),a.qc=null)}p.Hd=function(){this.Ce=!1;Ke(this)};p.Jb=function(){this.sd.K();this.W.td.K();Ge(this);this.Ce=!0;Fe(this,null,null,!1);this.qc=null};function Se(a,b){Ob(a.sd,b)}
|
|
p.Lc=function(a){var b=this,c=this.D.Kb(),d=ab(this.D);if(c=c!==d)yb(this.b,Cb.Uc),yb(this.b,Cb.lc);Fe(this,null,!1,null,null,null);hb(this);if(c&&null!=a&&(a.Mb()||a.Ka())){var e=function(){a.Hg?x.info("Push token maintenance is disabled, not refreshing token for backend."):a.subscribe()};c=za.ba;ua(new qa(c),c.G.gd,function(f,g){g&&e()},function(){var f=S(b.b,M.kc);(null==f||f)&&e()})}};
|
|
p.$a=function(a,b,c,d){var e=this.f.o();if(e!==a){var f=this.D,g=zb(f.b,Cb.Ta);null!=g&&(f.b.rc.remove(Cb.Ta),g=Te(f,(new Date).valueOf(),g),null==g||bb(f.b,[g]));null!=e&&Fe(this,null,!1,null,null,null);f=this.f;g=null==f.o();xb(f.b,Cb.lc,new Oa(a));if(g){f=f.b;g=f.R.Z(M.Qa);if(null!=g){var h=M.Qc,l=g[h];null!=l&&(g[h]=void 0,f.R.store(M.Qa,g),l.user_id=a,Eb(f,l))}h=zb(f,Cb.Ta);g=null;null!=h&&(g=h.ia);h=Ab(f);if(null!=h)for(l=0;l<h.length;l++){var k=h[l];null==k.gb&&k.sessionId==g&&(k.gb=a);null==
|
|
k||bb(f,[k])}}d?this.W.Tb(d):(d=this.W,Bb(d.b,M.jb),f=za.ba,va(new qa(f),f.G.qe,d.ye));for(d=0;d<b.length;d++)b[d].$a(null==e);null!=e&&Bb(this.b,M.vb);Bb(this.b,M.cc);this.Lc(c);x.info('Changed user to "'+a+'".')}else b="Doing nothing.",d&&S(this.W.b,M.jb)!==d&&(this.W.Tb(d),b="Updated SDK authentication signature"),x.info("Current user is already "+a+". "+b)};p.rb=function(){return new K(this.f,this)};p.tb=function(a){Ge(this);ab(this.D);Fe(this,null,null,null,null,null,a,!0)};
|
|
p.Nc=function(){ab(this.D);Fe(this,!0)};function Ue(a,b,c){ab(a.D);x.info("Requesting explicit trigger refresh.");Fe(a,null,!0,null,b,c)}p.Jd=function(a,b){var c=new $a,d=ab(this.D);if(-1!==Ie(this.J).cf.indexOf(a))return x.info('Custom Event "'+a+'" is blocklisted, ignoring.'),c;c.j.push(new E(this.f.o(),z.CustomEvent,(new Date).valueOf(),d,{n:a,p:b}));c.h=bb(this.b,c.j);return c};
|
|
function gb(a,b,c,d){var e=new $a,f=ab(a.D);if(ib(a.J,c))return x.info('Custom Attribute "'+c+'" is blocklisted, ignoring.'),e;e.j.push(new E(a.f.o(),b,(new Date).valueOf(),f,{key:c,value:d}));e.h=bb(a.b,e.j);return e}p.Kd=function(a,b,c,d,e){var f=new $a,g=ab(this.D);if(-1!==Ie(this.J).mf.indexOf(a))return x.info('Purchase "'+a+'" is blocklisted, ignoring.'),f;f.j.push(new E(this.f.o(),z.eg,(new Date).valueOf(),g,{pid:a,c:c,p:b,q:d,pr:e}));f.h=bb(this.b,f.j);return f};
|
|
p.Oc=function(a,b,c,d,e,f){var g=new $a,h=ab(this.D);b={latitude:b,longitude:c};null!=d&&(b.altitude=d);null!=e&&(b.ll_accuracy=e);null!=f&&(b.alt_accuracy=f);g.j.push(new E(a,z.lg,(new Date).valueOf(),h,b));g.h=bb(this.b,g.j);return g};
|
|
p.Qb=function(a){var b=new $a,c=ab(this.D);if(a instanceof Fc)b.j.push(new E(this.f.o(),z.Mf,(new Date).valueOf(),c,{trigger_ids:[a.triggerId]}));else{if(!a.Od())return x.info("This in-app message has already received an impression. Ignoring analytics event."),b;a=Qe(a);if(null==a)return b;b.j.push(new E(this.f.o(),z.dg,(new Date).valueOf(),c,a))}b.h=bb(this.b,b.j);return b};
|
|
p.Jc=function(a){var b=new $a,c=ab(this.D);if(!a.fb())return x.info("This in-app message has already received a click. Ignoring analytics event."),b;a=Qe(a);if(null==a)return b;b.j.push(new E(this.f.o(),z.ke,(new Date).valueOf(),c,a));b.h=bb(this.b,b.j);return b};
|
|
p.Ic=function(a,b){var c=new $a,d=ab(this.D);if(!a.fb())return x.info("This in-app message button has already received a click. Ignoring analytics event."),c;b=Qe(b);if(null==b)return c;if(a.id===md)return x.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 E(this.f.o(),z.je,(new Date).valueOf(),d,b));c.h=bb(this.b,c.j);return c};
|
|
p.Pb=function(a,b,c){var d=new $a,e=ab(this.D);if(!a.fb(c))return x.info("This in-app message has already received a click. Ignoring analytics event."),d;a=Qe(a);if(null==a)return d;c=z.ke;null!=b&&(a.bid=b,c=z.je);d.j.push(new E(this.f.o(),c,(new Date).valueOf(),e,a));d.h=bb(this.b,d.j);return d};p.M=function(a,b){var c=new $a,d=ab(this.D);a={trigger_ids:[a],error_code:b};c.j.push(new E(this.f.o(),z.cg,(new Date).valueOf(),d,a));c.h=bb(this.b,c.j);return c};
|
|
p.Ma=function(a,b){var c=new $a,d=ab(this.D),e=[],f=[];var g=b?S(this.b,M.ib)||{}:S(this.b,M.vb)||{};for(var h=0;h<a.length;h++)a[h].Od(),a[h]instanceof mc?f.push(a[h]):e.push(a[h]),g[a[h].id]=!0;a=Re(e);f=Re(f);if(null==a&&null==f)return c;b?O(this.b,M.ib,g):O(this.b,M.vb,g);null!=a&&c.j.push(new E(this.f.o(),b?z.Jf:z.Gf,(new Date).valueOf(),d,a));null!=f&&b&&c.j.push(new E(this.f.o(),z.Lf,(new Date).valueOf(),d,f));c.h=bb(this.b,c.j);return c};
|
|
p.La=function(a,b){var c=new $a,d=ab(this.D);a.fb();if(null==a.url||""===a.url)return x.info("Card "+a.id+" has no url. Not logging click to Braze servers."),c;if(b){var e=S(this.b,M.hb)||{};e[a.id]=!0;O(this.b,M.hb,e)}a=Re([a]);if(null==a)return c;c.j.push(new E(this.f.o(),b?z.Hf:z.Ff,(new Date).valueOf(),d,a));c.h=bb(this.b,c.j);return c};
|
|
p.Hc=function(a){var b=new $a,c=ab(this.D);if(!a.Nd())return x.info("Card "+a.id+" refused this dismissal. Ignoring analytics event."),b;var d=S(this.b,M.ua)||{};d[a.id]=!0;O(this.b,M.ua,d);a=Re([a]);if(null==a)return b;b.j.push(new E(this.f.o(),z.If,(new Date).valueOf(),c,a));b.h=bb(this.b,b.j);return b};function Ve(a,b){var c=new $a,d=ab(a.D);c.j.push(new E(a.f.o(),z.fg,(new Date).valueOf(),d,{n:b}));c.h=bb(a.b,c.j);return c}
|
|
function We(a,b,c){var d=ab(a.D);return new E(a.f.o(),z.sg,b,d,{cid:c})}function hb(a){var b=za.ba;(new qa(b)).setItem(b.G.Rf,1,{baseUrl:a.Bb,data:{api_key:a.$,device_id:Be(a.mc).id},userId:a.f.o(),sdkAuthEnabled:a.W.Db})}function jb(a,b,c){var d=new $a,e=ab(a.D);b={group_id:b,status:c};d.j.push(new E(a.f.o(),z.zg,(new Date).valueOf(),e,b));d.h=bb(a.b,d.j);return d}p.zd=function(a){a=ba(a);for(var b=a.next();!b.done;b=a.next())b=b.value,-1===this.Eb.indexOf(b)&&this.Eb.push(b)};var Xe={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};J.DeviceProperties=Xe;function Ye(a){this.id=a}Ye.prototype.Ac=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 Ze(a,b){this.b=a;null==b&&(b=Ba(Xe));this.De=b}
|
|
function Be(a){var b=zb(a.b,Cb.Uc);null==b&&(b=new Oa(pa.Ia()),xb(a.b,Cb.Uc,b));b=new Ye(b.ia);for(var c=0;c<a.De.length;c++){var d=a.De[c];switch(d){case "browser":b[d]=vb.Ya;break;case "browserVersion":b[d]=vb.version;break;case "os":var e=vb.ga?vb.ga||null:(e=S(a.b,M.cc))&&e.os_version?e.os_version:vb.qb();b[d]=e;break;case "resolution":b[d]=screen.width+"x"+screen.height;break;case "language":b[d]=vb.language;break;case "timeZone":a:{e=new Date;if("undefined"!==typeof Intl&&"function"===typeof Intl.DateTimeFormat)try{if("function"===
|
|
typeof Intl.DateTimeFormat().resolvedOptions){var f=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=f&&""!==f){var g=f;break a}}}catch(k){x.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+k.message)}g=e.getTimezoneOffset();e=parseInt(g/60);var h=parseInt(g%60),l="GMT";0!==g&&(l=l+(0>g?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));g=l}b[d]=g;break;case "userAgent":b[d]=
|
|
vb.userAgent}}return b};function $e(a){this.Fa=a;this.wc=null;this.Re="geolocation"in navigator}$e.prototype.Ng=function(a){var b=this;if(document.hidden){af(this);var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),b.watchPosition())};document.addEventListener("visibilitychange",c,!1)}this.Fa.Oc(a.coords.latitude,a.coords.longitude,a.coords.accuracy,a.coords.altitude,a.coords.altitudeAccuracy)};
|
|
$e.prototype.Mg=function(a){a.code===a.PERMISSION_DENIED?x.info(a.message):x.error("Could not detect user location: "+a.code+" - "+a.message)};$e.prototype.watchPosition=function(){this.Re?(af(this),this.wc=navigator.geolocation.watchPosition(this.Ng.bind(this),this.Mg.bind(this)),x.info("Requested Geolocation")):x.info(this.ed)};function af(a){a.Re?null!=a.wc&&(navigator.geolocation.clearWatch(a.wc),a.wc=null,x.info("Stopped watching Geolocation")):x.info(a.ed)};function bf(a,b,c,d,e){this.endpoint=a||null;this.Ze=b||null;this.publicKey=c||null;this.Wh=d||null;this.ra=e||null}bf.prototype.A=function(){return{e:this.endpoint,c:this.Ze,p:this.publicKey,u:this.Wh,v:this.ra}};function cf(a,b,c,d,e,f,g,h,l,k){this.Fa=a;this.$=b;this.mc=c;this.Jg=d;this.Pe=e||"/service-worker.js";this.Ne=f;this.J=g;this.rd=h||!1;this.Hg=l||!1;this.b=k;this.vc="serviceWorker"in navigator&&"undefined"!==typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window;this.vd="safari"in window&&"pushNotification"in window.safari}p=cf.prototype;p.qa=function(){return this.vc||this.vd};
|
|
p.Ka=function(){var a=this.qa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,b=this.qa()&&(!("Notification"in window)||null==window.Notification);return a||b};p.Mb=function(){return this.qa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission};
|
|
p.Id=function(a,b,c){var d=this;c=this.Ne||c;this.qa()?this.vc?df(this).then(function(e){d.Ka()?b():null==e?b():e.pushManager.getSubscription().then(function(f){f?a():b()}).catch(function(){b()})}).catch(function(){b()}):null==c||""===c?x.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 ef(a,b,c,d,e,f){b.unsubscribe().then(function(g){g?ff(a,c,d,e,f):(x.error("Failed to unsubscribe device from push."),"function"===typeof f&&f(!1))}).catch(function(g){x.error("Push unsubscription error: "+g);"function"===typeof f&&f(!1)})}
|
|
function gf(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),f=null,g=null;if(null!=b.getKey)try{f=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("p256dh")))),g=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.Fa.Pd(e,d,f,g,b);e&&"function"===typeof c&&c(e,f,g)}function hf(a,b,c){a.Fa.Sb(!1);x.info(b);"function"===typeof c&&c(!1)}
|
|
function jf(a,b,c,d,e){if("default"===c.permission)try{window.safari.pushNotification.requestPermission(a.Jg,b,{api_key:a.$,device_id:Be(a.mc).id},function(f){"granted"===f.permission&&a.Fa.Ud("opted_in");jf(a,b,f,d,e)})}catch(f){hf(a,"Could not request permission for push: "+f,e)}else"denied"===c.permission?hf(a,"The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",e):"granted"===c.permission&&(x.info("Device successfully subscribed to push."),
|
|
gf(a,c.deviceToken,d,new Date))}function kf(a,b,c){function d(g){switch(g){case "granted":"function"===typeof a&&a();break;case "default":"function"===typeof b&&b();break;case "denied":"function"===typeof c&&c();break;default:x.error("Received unexpected permission result "+g)}}var e=!1,f=window.Notification.requestPermission(function(g){e&&d(g)});f?f.then(function(g){d(g)}):e=!0}
|
|
function ff(a,b,c,d,e){var f={userVisibleOnly:!0};null!=c&&(f.applicationServerKey=c);b.pushManager.subscribe(f).then(function(g){x.info("Device successfully subscribed to push.");gf(a,g,d,new Date)}).catch(function(g){a.Ka()?(x.info("Permission for push notifications was denied."),"function"===typeof e&&e(!1)):x.error("Push subscription failed: "+g)})}
|
|
function df(a){return a.rd?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){x.info("ServiceWorker update failed: "+c)});return b})})}
|
|
p.subscribe=function(a,b,c){var d=this;a=this.Ne||a;if(this.qa())if(this.vc){if(!this.rd&&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))){x.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.Ka())hf(this,"Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",c);else if(this.J&&!Ie(this.J).ra&&0===Ie(this.J).Nb)x.info("Waiting for VAPID key from server config before subscribing to push."),lf(this.J,function(){d.subscribe(a,b,c)});else{var f=this.Mb();kf(function(){f||d.Fa.Ud("opted_in");df(d).then(function(g){null==g?(x.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()):g.pushManager.getSubscription().then(function(h){var l=null;d.J&&null!=Ie(d.J).ra&&(l=oa.Vh(Ie(d.J).ra));if(h){var k=null,m=null,q=S(d.b,M.kc);if(q&&!Ca(q)){try{var v=(new bf(q.e,La(q.c),q.p,q.u,q.v)).Ze}catch(t){v=null}null==v||isNaN(v.getTime())||0===v.getTime()||(k=v,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&&!Ha(l,new Uint8Array(h.options.applicationServerKey))?
|
|
(12<h.options.applicationServerKey.byteLength?x.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):x.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."),ef(d,h,g,l,b,c)):h.expirationTime&&new Date(h.expirationTime)<=(new Date).valueOf()?(x.info("Push subscription is expired, creating new subscription."),ef(d,h,g,l,b,
|
|
c)):q&&Ca(q)?ef(d,h,g,l,b,c):null==m?(x.info("No push subscription creation date found, creating new subscription."),ef(d,h,g,l,b,c)):m<=(new Date).valueOf()?(x.info("Push subscription older than 6 months, creating new subscription."),ef(d,h,g,l,b,c)):(x.info("Device already subscribed to push, sending existing subscription to backend."),gf(d,h,b,k))}else ff(d,g,l,b,c)}).catch(function(h){x.error("Error checking current push subscriptions: "+h)})}).catch(function(g){x.error("ServiceWorker registration failed: "+
|
|
g)})},function(){var g="Permission for push notifications was ignored.";d.Ka()&&(g+=" The browser has automatically blocked further permission requests for a period (probably 1 week).");x.info(g);"function"===typeof c&&c(!0)},function(){x.info("Permission for push notifications was denied.");"function"===typeof c&&c(!1)})}}else this.vd&&(null==a||""===a?x.error("You must supply the safariWebsitePushId argument in order to use registerAppboyPushMessages on Safari"):(e=window.safari.pushNotification.permission(a),
|
|
jf(this,a,e,b,c)));else x.info(this.ed)};
|
|
p.unsubscribe=function(a,b){var c=this;this.qa()?this.vc?navigator.serviceWorker.getRegistration().then(function(d){d&&d.pushManager.getSubscription().then(function(e){e&&(c.Fa.Sb(!0),e.unsubscribe().then(function(f){f?(x.info("Device successfully unsubscribed from push."),"function"===typeof a&&a()):(x.error("Failed to unsubscribe device from push."),"function"===typeof b&&b());c.rd||(d.unregister(),x.info("Service worker successfully unregistered."))}).catch(function(f){x.error("Push unsubscription error: "+f);
|
|
"function"===typeof b&&b()}))}).catch(function(e){x.error("Error unsubscribing from push: "+e);"function"===typeof b&&b()})}):this.vd&&(this.Fa.Sb(!0),x.info("Device unsubscribed from push."),"function"===typeof a&&a()):x.info(this.ed)};function Je(a,b,c,d,e,f,g){this.Nb=a||0;this.cf=b||[];this.Ve=c||[];this.mf=d||[];this.Ld=e;if(null==e||""===e)this.Ld=null;this.ra=f||null;this.Hb=g||{}}Je.prototype.A=function(){return{s:"3.5.1",l:this.Nb,e:this.cf,a:this.Ve,p:this.mf,m:this.Ld,v:this.ra,c:this.Hb}};function mf(a){this.b=a;this.xd=new Nb;this.Ae=new Nb;this.uc=null}function Ie(a){if(null==a.uc){var b=S(a.b,M.te);if(null!=b){var c=b.l;"3.5.1"!==b.s&&(c=0);b=new Je(c,b.e,b.a,b.p,b.m,b.v,b.c)}else b=new Je;a.uc=b}return a.uc}function lf(a,b){b=Ob(a.xd,b);a.Be&&a.xd.N(a.Be);a.Be=b}function nf(a,b){Ob(a.Ae,b)}function ib(a,b){return-1!==Ie(a).Ve.indexOf(b)};function of(a,b,c,d){this.b=a;this.f=b;this.J=c;this.Cb=1E3;d=parseFloat(d);isNaN(d)&&(d=1800);d<this.Cb/1E3&&(x.info("Specified session timeout of "+d+"s is too small, using the minimum session timeout of "+this.Cb/1E3+"s instead."),d=this.Cb/1E3);this.Lg=d}function Te(a,b,c){return new E(a.f.o(),z.yg,b,c.ia,{d:Ia(b-c.Ib)})}of.prototype.Kb=function(){var a=zb(this.b,Cb.Ta);return null==a?null:a.ia};
|
|
function He(a){var b=(new Date).valueOf(),c=Ie(a.J).Ld,d=S(a.b,M.hc);if(null!=d&&null==c)return!1;(c=null==d||b-d>1E3*c)&&O(a.b,M.hc,b);return c}
|
|
function ab(a){var b=(new Date).valueOf(),c=b+1E3*a.Lg,d=zb(a.b,Cb.Ta);if(null==d||(b-d.Ib<a.Cb?0:d.Cd<b)){var e="Generating session start event with time "+b;if(null!=d){var f=d.Ob;f-d.Ib<a.Cb&&(f=d.Ib+a.ai);d=Te(a,f,d);null==d||bb(a.b,[d]);e+=" (old session ended "+f+")"}e+=". Will expire "+c.valueOf();x.info(e);c=new Oa(pa.Ia(),c);e=new E(a.f.o(),z.ve,b,c.ia);null==e||bb(a.b,[e]);xb(a.b,Cb.Ta,c);null==S(a.b,M.hc)&&O(a.b,M.hc,b);return c.ia}d.Ob=b;d.Cd=c;xb(a.b,Cb.Ta,d);return d.ia};function pf(a,b){var c=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(M.jd,!0),localStorage.getItem(M.jd)&&(localStorage.removeItem(M.jd),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){x.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 Mb(a,d&&!b,
|
|
c);return new wb(b,c?new Hb(a):new Lb)};function qf(a,b){this.J=a;this.b=b}qf.prototype.o=function(){var a=zb(this.b,Cb.lc);if(null==a)return null;var b=a.ia,c=Pa(b);if(997<c){for(;997<c;)b=b.slice(0,b.length-1),c=Pa(b);a.ia=b;xb(this.b,Cb.lc,a)}return b};qf.prototype.Sd=function(a,b){if(ib(this.J,a))return x.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),!1;var c={};c[a]=b;return cb(this,"custom",c)};function cb(a,b,c){return Fb(a.b,a.o(),b,c)}
|
|
qf.prototype.Pd=function(a,b,c,d,e){cb(this,"push_token",a);cb(this,"custom_push_public_key",c);cb(this,"custom_push_user_auth",d);cb(this,"custom_push_vapid_public_key",e);var f=za.ba,g=new qa(f);O(this.b,M.kc,(new bf(a,b,c,d,e)).A());g.setItem(f.G.gd,f.kb,!0)};
|
|
qf.prototype.Sb=function(a){cb(this,"push_token",null);cb(this,"custom_push_public_key",null);cb(this,"custom_push_user_auth",null);cb(this,"custom_push_vapid_public_key",null);if(a){a=za.ba;var b=new qa(a);O(this.b,M.kc,!1);b.setItem(a.G.gd,a.kb,!1)}};function rf(a,b,c){this.b=a;this.Db=b||!1;this.ze=c;this.td=new Nb;this.ye=1}rf.prototype.Tb=function(a){var b=S(this.b,M.jb);O(this.b,M.jb,a);var c=za.ba;(new qa(c)).setItem(c.G.qe,this.ye,a);b!==a&&Pb(this.td)};rf.prototype.Xd=function(a){return Ob(this.ze,a)};function ze(a,b){Ob(a.td,b)};function sf(){}sf.prototype.Lb=function(){};sf.prototype.$a=function(){};sf.prototype.clearData=function(){};function tf(a,b,c,d,e){this.ha=a;this.H=b;this.b=c;this.J=d;this.Eg=e;this.Aa=this.Da=0;this.Ga()}na(tf,sf);p=tf.prototype;p.Ga=function(){for(var a=S(this.b,M.wb)||[],b=[],c=0;c<a.length;c++){var d=nc(a[c]);null!=d&&b.push(d)}this.B=uf(this,vf(this,b,!1));this.Da=S(this.b,M.ac)||this.Da;this.Aa=S(this.b,M.$b)||this.Aa};
|
|
p.Lb=function(a){if(wf(this)&&null!=a&&a.cards){var b=a.full_sync;b||this.Ga();var c=a.cards,d=a.last_full_sync_at;a=a.last_card_updated_at;if(b){var e=[];for(var f=ba(this.B),g=f.next();!g.done;g=f.next())g=g.value,g.test&&e.push(g)}else e=this.B.slice();for(f=0;f<c.length;f++){g=c[f];for(var h=null,l=0;l<this.B.length;l++)if(g.id===this.B[l].id){h=this.B[l];break}if(b)g=hc(g),null!=h&&h.viewed&&(g.viewed=!0),null!=g&&e.push(g);else if(null==h)g=hc(g),null!=g&&e.push(g);else if(!fc(h,g))for(h=0;h<
|
|
e.length;h++)if(g.id===e[h].id){e.splice(h,1);break}}this.B=uf(this,vf(this,e,b));this.yc();this.Da=d||0;O(this.b,M.ac,this.Da);this.Aa=a||0;O(this.b,M.$b,this.Aa);Pb(this.ha,this.pb(!0))}};
|
|
function xf(a,b){if(wf(a)){a.Ga();var c=a.B.slice();a.H.rb().o(function(d){for(var e=0;e<b.length;e++)if(d===b[e].userId||null==d&&null==b[e].userId){for(var f=b[e].card,g=null,h=0;h<a.B.length;h++)if(f.id===a.B[h].id){g=a.B[h];break}if(null==g)f=hc(f),null!=f&&c.push(f);else if(!fc(g,f))for(g=0;g<c.length;g++)if(f.id===c[g].id){c.splice(g,1);break}}a.B=uf(a,vf(a,c,!1));a.yc();Pb(a.ha,a.pb(!0))})}}
|
|
function vf(a,b,c){for(var d=S(a.b,M.hb)||{},e=S(a.b,M.ib)||{},f=S(a.b,M.ua)||{},g={},h={},l={},k=0;k<b.length;k++)d[b[k].id]&&(b[k].clicked=!0,g[b[k].id]=!0),e[b[k].id]&&(b[k].viewed=!0,h[b[k].id]=!0),f[b[k].id]&&(b[k].dismissed=!0,l[b[k].id]=!0);c&&(O(a.b,M.hb,g),O(a.b,M.ib,h),O(a.b,M.ua,l));return b}
|
|
function uf(a,b){for(var c=[],d=new Date,e=S(a.b,M.ua)||{},f=!1,g=0;g<b.length;g++){var h=b[g].url;!a.Eg&&h&&sd(h)?x.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[g].expiresAt||b[g].expiresAt>=d)&&!b[g].dismissed?c.push(b[g]):f=e[b[g].id]=!0}f&&O(a.b,M.ua,e);return c}p.yc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());O(this.b,M.wb,a)};
|
|
p.Na=function(a,b){if(wf(this))return this.H.Na(this.Da,this.Aa,this.Lb.bind(this),a,b)};p.pb=function(a){a||this.Ga();a=uf(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.Aa||0,this.Da||0);0===b&&(b=void 0);return new Ad(a,Ja(b))};
|
|
p.$a=function(a){a||(this.B=[],Pb(this.ha,new Ad(this.B.slice(),null)),Bb(this.b,M.wb),Bb(this.b,M.hb),Bb(this.b,M.ib),Bb(this.b,M.ua));this.Aa=this.Da=0;Bb(this.b,M.ac);Bb(this.b,M.$b)};p.clearData=function(a){this.Aa=this.Da=0;this.B=[];Pb(this.ha,new Ad(this.B.slice(),null));a&&(Bb(this.b,M.wb),Bb(this.b,M.hb),Bb(this.b,M.ib),Bb(this.b,M.ua),Bb(this.b,M.ac),Bb(this.b,M.$b))};
|
|
function wf(a){return Ie(a.J).Hb.enabled?!0:(0!==Ie(a.J).Nb&&(Pb(a.ha,new Ad([],(new Date).valueOf())),Bb(a.b,M.wb)),!1)};function yf(a,b){this.ha=a;this.b=b;this.Ga()}na(yf,sf);p=yf.prototype;p.Ga=function(){for(var a=S(this.b,M.dd)||[],b=[],c=0;c<a.length;c++){var d=nc(a[c]);null!=d&&b.push(d)}this.B=b;this.mb=La(S(this.b,M.bd))};p.yc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());O(this.b,M.dd,a)};
|
|
p.Lb=function(a){if(null!=a&&a.feed){this.Ga();a=a.feed;for(var b=[],c,d=S(this.b,M.vb)||{},e={},f=0;f<a.length;f++){c=a[f];var g=c.id,h=c.type,l=c.viewed,k=c.title,m=c.image,q=c.description,v=Ja(c.created),t=Ja(c.updated),w=c.categories,r=Ja(c.expires_at),F=c.url,D=c.domain,G=c.aspect_ratio;c=c.extras;g=h===ic.xe||h===ic.ic?new jc(g,l,k,m,q,v,t,w,r,F,D,G,c,!1,!1):h===ic.Yb?new kc(g,l,k,m,q,v,t,w,r,F,D,G,c,!1,!1):h===ic.Xb?new lc(g,l,m,v,t,w,r,F,D,G,c,!1,!1):null;null!=g&&(d[g.id]&&(g.viewed=!0,e[g.id]=
|
|
!0),b.push(g))}O(this.b,M.vb,e);this.B=b;this.yc();this.mb=new Date;O(this.b,M.bd,this.mb);Pb(this.ha,new wd(this.B.slice(),this.mb))}};p.Fc=function(){this.Ga();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 wd(a,this.mb)};p.clearData=function(a){null==a&&(a=!1);this.B=[];this.mb=null;a&&(Bb(this.b,M.dd),Bb(this.b,M.bd));Pb(this.ha,new wd(this.B.slice(),this.mb))};function zf(a,b,c,d,e){this.Pa=a;this.zf=b;this.yf=c;this.Ec=d;this.Oa=e}function Af(a,b,c,d,e){return null==a||null==a.trigger_id?null:new zf(a.trigger_id,b,c,d,e)};function Bf(a,b,c,d){this.Ig=a;this.ha=b;this.b=c;this.H=d;this.oc=[];this.na=[];this.Ba=null;this.L={};this.Y={};Cf(this);Df(this)}na(Bf,sf);function Ef(a){a.Ba=S(a.b,M.ad)||a.Ba;a.L=S(a.b,M.zb)||a.L;a.Y=S(a.b,M.fc)||a.Y;for(var b=0;b<a.T.length;b++){var c=a.T[b];null!=a.Y[c.id]&&(c.Ca=a.Y[c.id])}}function Cf(a){a.wd=S(a.b,M.md)||0;for(var b=S(a.b,M.kd)||[],c=[],d=0;d<b.length;d++)c.push(ue(b[d]));a.T=c;Ef(a)}
|
|
function Df(a){function b(F,D,G,H,A){return function(){Ff(a,F,D,G,H,A)}}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 f=a.T[e];if(null!=a.L[f.id]){for(var g=a.L[f.id],h=[],l=0;l<g.length;l++){var k=g[l],m=Math.max(k.Ec+1E3*f.ab-(new Date).valueOf(),0);if(0<m){h.push(k);var q=void 0,v=void 0;null!=k.wf&&(q=k.wf);null!=k.yd&&Ma(k.yd)&&(v=Na(k.yd));var t=[];if(Ca(k.Dd))for(var w=0;w<k.Dd.length;w++){var r=c[k.Dd[w]];null!=r&&t.push(r)}a.na.push(setTimeout(b(f,
|
|
k.Ec,q,v,t),m))}}a.L[f.id].length>h.length&&(a.L[f.id]=h,d=!0,0===a.L[f.id].length&&delete a.L[f.id])}}d&&O(a.b,M.zb,a.L)}
|
|
Bf.prototype.Lb=function(a){var b=!1;if(null!=a&&a.triggers){Ef(this);var c={},d={};this.T=[];for(var e=0;e<a.triggers.length;e++){for(var f=a.triggers[e],g=f.id,h=[],l=0;l<f.trigger_condition.length;l++)h.push(he(f.trigger_condition[l]));l=Ja(f.start_time);var k=Ja(f.end_time),m=f.priority,q=f.type,v=f.delay,t=f.re_eligibility,w=f.timeout,r=f.data;f=f.min_seconds_since_last_trigger;g=Aa(ve,q,"Could not construct Trigger from server data","Trigger.Types")?new re(g,h,l,k,m,q,r,v,t,w,f):null;null!=
|
|
this.Y[g.id]&&(g.Ca=this.Y[g.id],c[g.id]=this.Y[g.id]);null!=this.L[g.id]&&(d[g.id]=this.L[g.id]);for(h=0;h<g.ob.length;h++)if(fe(g.ob[h],de.V,null)){b=!0;break}null!=g&&this.T.push(g)}Ha(this.Y,c)||(this.Y=c,O(this.b,M.fc,this.Y));Ha(this.L,d)||(this.L=d,O(this.b,M.zb,this.L));a=[];for(c=0;c<this.T.length;c++)a.push(this.T[c].A());this.wd=(new Date).valueOf();O(this.b,M.kd,a);O(this.b,M.md,this.wd);b&&(x.info("Trigger with test condition found, firing test."),this.pa(de.V));this.pa(de.OPEN);b=this.oc;
|
|
this.oc=[];for(a=0;a<b.length;a++)this.pa.apply(this,b[a])}};
|
|
function Ff(a,b,c,d,e,f){function g(){Ef(a);var k=f.pop();if(null!=k)if(Gf(a,k,c,d,e,f),te(k,c)){var m="Server aborted in-app message display, but the timeout on fallback trigger "+k.id+"has already elapsed.";0<f.length&&(m+=" Continuing to fall back.");x.info(m);a.H.M(k.id,dd.ie);g()}else x.info("Server aborted in-app message display. Falling back to lower priority "+k.type+" trigger action "+k.id),m=1E3*k.ab-((new Date).valueOf()-c),0<m?a.na.push(setTimeout(function(){Ff(a,k,c,d,e,f)},m)):Ff(a,
|
|
k,c,d,e,f)}function h(k){Ef(a);var m=(new Date).valueOf();te(b,c)?b.type===ve.we?a.H.M(b.id,dd.yb):a.H.M(b.id,dd.ie):!1===navigator.onLine&&b.type===ve.Xc&&k.imageUrl?(x.info("Not showing "+b.type+" trigger action "+b.id+" due to offline state."),a.H.M(b.id,dd.Vf)):(null==b.Ca||b.Rb!==se&&m-b.Ca>=1E3*b.Rb)&&Hf(a,b,m,d)?(Pb(a.ha,[k]),Ef(a),b.Ca=m,a.Ba=m,O(a.b,M.ad,m),a.Y[b.id]=m,O(a.b,M.fc,a.Y)):x.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")}
|
|
switch(b.type){case ve.Xc:var l=Ec(b.data);if(null==l){x.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.M(b.id,dd.Ab);break}h(l);break;case ve.we:l=Af(b.data,h,g,c,b.Oa);if(null==l){x.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.M(b.id,dd.Ab);break}Pe(a.H,l,d,e);break;default:x.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.H.M(b.id,dd.Ab)}}
|
|
Bf.prototype.pa=function(a,b,c){var d=this;if(Aa(de,a,"Cannot fire trigger action.","TriggerEvents"))if(0<this.H.lb)x.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),this.oc.push(arguments);else{(S(this.b,M.md)||0)>this.wd?Cf(this):Ef(this);for(var e=(new Date).valueOf(),f=e-this.Ba,g=!0,h=!0,l=[],k=0;k<this.T.length;k++){var m=this.T[k],q=e+1E3*m.ab;if((null==m.Ca||m.Rb!==se&&q-m.Ca>=1E3*m.Rb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime||
|
|
m.endTime>=e)){for(var v=!1,t=0;t<m.ob.length;t++)if(fe(m.ob[t],a,b)){v=!0;break}v&&(g=!1,Hf(this,m,q,a)&&(h=!1,l.push(m)))}}if(g)x.info("Trigger event "+a+" did not match any trigger conditions.");else if(h)x.info("Ignoring "+a+" trigger event because a trigger was displayed "+f/1E3+"s ago.");else{l.sort(function(r,F){return r.priority-F.priority});var w=l.pop();null!=w&&(x.info("Firing "+w.type+" trigger action "+w.id+" from trigger event "+a+"."),Gf(this,w,e,a,c,l),0===w.ab?Ff(this,w,e,a,c,l):
|
|
this.na.push(setTimeout(function(){Ff(d,w,e,a,c,l)},1E3*w.ab)))}}};Bf.prototype.$a=function(a){this.T=[];Bb(this.b,M.kd);if(!a){this.oc=[];this.Ba=null;this.Y={};this.L={};for(a=0;a<this.na.length;a++)clearTimeout(this.na[a]);this.na=[];Bb(this.b,M.ad);Bb(this.b,M.fc);Bb(this.b,M.zb);Bb(this.b,M.hg);Bb(this.b,M.gg);Bb(this.b,M.ig)}};Bf.prototype.clearData=function(){this.T=[];this.Ba=null;this.Y={};this.L={};for(var a=0;a<this.na.length;a++)clearTimeout(this.na[a]);this.na=[]};
|
|
function Hf(a,b,c,d){if(null==a.Ba)return!0;if(d===de.V)return x.info("Ignoring minimum interval between trigger because it is a test type."),!0;b=b.kf;null==b&&(b=a.Ig);return c-a.Ba>=1E3*b}function Gf(a,b,c,d,e,f){Ef(a);a.L[b.id]=a.L[b.id]||[];var g={};g.Ec=c;g.wf=d;var h;null!=e&&(h=e.A());g.yd=h;c=[];for(d=0;d<f.length;d++)c.push(f[d].id);g.Dd=c;a.L[b.id].push(g);O(a.b,M.zb,a.L)};var If={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};J.BrazeSdkMetadata=If;"undefined"===typeof console&&(window.console={log:function(){}});var Jf=window.Element.prototype;"function"!==typeof Jf.matches&&(Jf.matches=Jf.msMatchesSelector||Jf.mozMatchesSelector||Jf.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 Kf=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};Kf.prototype=window.Event.prototype;window.CustomEvent=Kf};var Lf;"object"===typeof module&&module.exports?Lf=module.exports:(window.appboy||(window.appboy={}),Lf=window.appboy);var Mf=Lf;var X=new function(a){function b(n,u,y){n="The '"+n+"' "+u+" is deprecated.";y&&(n+=" Please use '"+y+"' instead.");x.warn(n)}function c(){x.Jb();V&&(Pb(L),L.K(),w.clearData(!1),w=null,D.clearData(!1),D=null,t.K(),t=null,G.K(),G=null,r.K(),r=null,q.K(),q=null,k.Jb(),H=k=null,af(A),m=f=h=A=null,I=[],l=null);Q=V=!1}function d(){if(Q)return!1;if(!V)throw Error("Appboy must be initialized before calling methods.");return!0}var e={Ug:function(n,u,y){return new rf(n,u,y)},Wg:function(n,u){return new Ze(n,
|
|
u)},$g:function(n,u,y,B,P,R,Y,Db,Xa,Rf){null==P&&(P={});var Ee=new qf(Xa,Y),Sf=new of(Y,Ee,Xa,P[C.xg]);return new ye(n,y,B,P[C.Cf],u,Sf,Db,Ee,Xa,Y,R,Rf)},Bc:function(){return new Nb},Xg:function(n,u){return new yf(n,u)},Vg:function(n,u,y,B){return new tf(n,u,y,B)},ah:function(n,u,y,B){return new Bf(n,u,y,B)},Zg:function(n,u,y,B,P,R,Y){null==P&&(P={});return new cf(n,u,y,B+"/safari/"+u,P[C.wg],P[C.ug],R,P[C.mg],P[C.Wf],Y)},Yg:function(n){return new $e(n)}};null==a&&(a=e);var f,g,h,l,k,m,q,v,t,w,r,
|
|
F,D,G,H,A,N=new Nb,L=new Nb,I=[],V=!1,Q=!1;return{Oh:function(n){return Ob(N,n)},Nh:function(n){return Ob(L,n)},Hd:function(n,u){if(V)return x.info("Braze has already been initialized with an API key."),!0;x.Gd(null!=u&&u[C.Yf]);if(null==n||""===n||"string"!==typeof n)return x.error("Braze requires a valid API key to be initialized."),!1;f=n;h=u||{};if(vb.lh&&!h[C.Af])return x.info("Ignoring activity from crawler bot "+navigator.userAgent),Q=!0,!1;g=u=pf(n,h[C.ng]||!1);var y=new Ib(null,!0);if(y.Z("ab.optOut"))return x.info("Ignoring all activity due to previous opt out"),
|
|
y.store("ab.optOut","This-cookie-will-expire-in-"+Jb(y)),Q=!0,!1;y=ba(Ga(h));for(var B=y.next();!B.done;B=y.next())B=B.value,-1===Ba(C).indexOf(B)&&x.warn("Ignoring unknown initialization option '"+B+"'.");y=["mparticle","wordpress","tealium"];null!=h[C.re]&&(B=h[C.re],-1!==y.indexOf(B)?l=B:x.error("Invalid sdk flavor passed: "+B));var P=[];t=a.Bc();I.push(t);w=a.Xg(t,u);P.push(w);G=a.Bc();I.push(G);y=h[C.Rc];if(null==y||""===y||"string"!==typeof y)return x.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);B=h[C.ee]||h[C.Vc];h[C.Vc]&&b(C.Vc,"initialization option",C.ee);if(null!=B)if(Ca(B)){for(var R=[],Y=0;Y<B.length;Y++)Aa(Xe,B[Y],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&R.push(B[Y]);B=R}else x.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),B=null;v=a.Wg(u,B);B=new mf(u);q=a.Bc();m=a.Ug(u,h[C.Zf],q);I.push(q);k=a.$g(f,y,"3.5.1",l,h,
|
|
function(Db){if(V)for(var Xa=0;Xa<P.length;Xa++)P[Xa].Lb(Db)},u,v,B,m);R=h[C.ag];null==R&&(R=30);D=a.ah(R,G,u,k);P.push(D);R=!0===h[C.Zd]||!0===h[C.fe];null!=h.enableHtmlInAppMessages&&b("enableHtmlInAppMessages","initialization option","allowUserSuppliedJavascript");r=a.Bc();I.push(r);F=a.Vg(r,k,u,B,R);P.push(F);nf(B,function(){F.Na()});Se(k,function(){F.Na()});k.Hd();H=a.Zg(k.rb(),f,v,y,h,B,u);A=a.Yg(k.rb());u="Initialized ";h&&h[C.Rc]&&(u+='for the Braze backend at "'+h[C.Rc]+'" ');x.info(u+('with API key "'+
|
|
n+'".'));n=vb.language;u=!1;h&&(h[C.$c]&&(b(C.$c,"initialization option",C.cd),n=h[C.$c],u=!0),h[C.cd]&&(n=h[C.cd],u=!0));td(n,u);Pb(N,h);return V=!0},Jb:function(){x.info("Destroying appboy instance");g=null;c()},gh:function(n){d()&&(null==n&&x.error("getDeviceId must be supplied with a callback. e.g., appboy.getDeviceId(function(deviceId) {console.log('the device id is ' + deviceId)})"),"function"===typeof n&&n(Be(v).id))},Yd:function(){x.Yd()},Td:function(n){x.Td(n)},Lc:function(){if(d()){k.Lc(H);
|
|
var n=za.ba,u=new qa(n);ua(u,n.G.oe,function(y,B){function P(){D.pa(de.ne,[Y],Db)}var R=B.lastClick,Y=B.trackingString;x.info("Firing push click trigger from "+Y+" push click at "+R);var Db=We(k,R,Y);Ue(k,P,P);va(u,n.G.oe,y)});wa(u,n.G.Ef,function(y){xf(F,y)});wa(u,n.G.me,function(y){var B=k;y=ba(y);for(var P=y.next();!P.done;P=y.next())if(P=P.value,P.api_key!==B.$){var R=za.ba;(new qa(R)).setItem(R.G.me,pa.Ia(),P)}else De(B,P)})}},$a:function(n,u){if(d())if(null==n||0===n.length||n!==n)x.error("changeUser requires a non-empty userId.");
|
|
else if(997<Pa(n))x.error('Rejected user id "'+n+'" because it is longer than 997 bytes.');else{if(null!=u&&!Qa(u,"set signature for new user","signature",!1))return!1;k.$a(n.toString(),[w,F,D],H,u)}},rb:function(){if(d())return k.rb()},ih:function(){if(d())return h[C.be]},tb:function(n){d()&&k.tb(n)},Nc:function(){d()&&k.Nc()},uf:function(n){if(d())return Ob(t,n)},Fc:function(){if(d())return w.Fc()},Na:function(n,u){if(d())return F.Na(n,u)},tf:function(n){if(d())return Ob(r,n)},pb:function(){if(d())return F.pb(!1)},
|
|
Ph:function(n){if(d())return b("subscribeToNewInAppMessages","method","subscribeToInAppMessage"),Ob(G,n)},vf:function(n){if(d())return"function"!==typeof n?null:Ob(G,function(u){n(u[0]);return u.slice(1)})},Qb:function(n){if(d())return n instanceof W||n instanceof Fc?k.Qb(n).h:(x.error("inAppMessage must be an InAppMessage object"),!1)},Jc:function(n){if(d()){if(!(n instanceof W))return x.error("inAppMessage must be an InAppMessage object"),!1;var u=k.Jc(n);if(u.h)for(var y=0;y<u.j.length;y++)D.pa(de.ec,
|
|
[n.triggerId],u.j[y]);return u.h}},Ic:function(n,u){if(d()){if(!(n instanceof Gc))return x.error("button must be an InAppMessageButton object"),!1;if(!(u instanceof W))return x.error("inAppMessage must be an InAppMessage object"),!1;var y=k.Ic(n,u);if(y.h)for(var B=0;B<y.j.length;B++)D.pa(de.ec,[u.triggerId,n.id],y.j[B]);return y.h}},Pb:function(n,u,y){if(d()){if(!(n instanceof Qc))return x.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;y=k.Pb(n,u,y);
|
|
if(y.h)for(var B=0;B<y.j.length;B++)D.pa(de.ec,[n.triggerId,u],y.j[B]);return y.h}},M:function(n,u){if(d())return n instanceof W||n instanceof Fc?Aa(dd,u,u+" is not a valid in-app message display failure","InAppMessage.DisplayFailures")?k.M(n.triggerId,u).h:!1:(x.error("inAppMessage must be an InAppMessage object"),!1)},Ma:function(n,u){if(d()){if(!Ca(n))return x.error("cards must be an array"),!1;for(var y=0;y<n.length;y++)if(!(n[y]instanceof cc))return x.error("Each card in cards must be a Card object"),
|
|
!1;return k.Ma(n,u).h}},La:function(n,u){if(d())return n instanceof cc?k.La(n,u).h:(x.error("card must be a Card object"),!1)},Hc:function(n){if(d())return n instanceof cc?k.Hc(n).h:(x.error("card must be a Card object"),!1)},jf:function(){if(d())return Ve(k,ya.$f).h},hf:function(){if(d())return Ve(k,ya.Kf).h},N:function(n){if(d()){for(var u=ba(I),y=u.next();!y.done;y=u.next())y.value.N(n);N.N(n);L.N(n)}},K:function(){if(d())for(var n=ba(I),u=n.next();!u.done;u=n.next())u.value.K()},Jd:function(n,
|
|
u){if(d()){if(null==n||0>=n.length)return x.error('logCustomEvent requires a non-empty eventName, got "'+n+'". Ignoring event.'),!1;if(!Ra(n,"log custom event","the event name"))return!1;var y=ba(Ta(u,"logCustomEvent","eventProperties",'log custom event "'+n+'"',"event")),B=y.next().value;y=y.next().value;if(!B)return!1;B=k.Jd(n,y);if(B.h)for(x.info('Logged custom event "'+n+'".'),y=0;y<B.j.length;y++)D.pa(de.Tc,[n,u],B.j[y]);return B.h}},Kd:function(n,u,y,B,P){if(d()){null==y&&(y="USD");null==B&&
|
|
(B=1);if(null==n||0>=n.length)return x.error('logPurchase requires a non-empty productId, got "'+n+'", ignoring.'),!1;if(!Ra(n,"log purchase","the purchase name"))return!1;var R=parseFloat(u);if(isNaN(R))return x.error("logPurchase requires a numeric price, got "+u+", ignoring."),!1;R=R.toFixed(2);u=parseInt(B);if(isNaN(u))return x.error("logPurchase requires an integer quantity, got "+B+", ignoring."),!1;if(1>u||100<u)return x.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 x.error("logPurchase requires a valid currencyCode, got "+
|
|
y+", ignoring."),!1;var Y=ba(Ta(P,"logPurchase","purchaseProperties",'log purchase "'+n+'"',"purchase"));B=Y.next().value;Y=Y.next().value;if(!B)return!1;B=k.Kd(n,R,y,u,Y);if(B.h)for(x.info("Logged "+u+" purchase"+(1<u?"s":"")+' of "'+n+'" for '+y+" "+R+"."),y=0;y<B.j.length;y++)D.pa(de.fd,[n,P],B.j[y]);return B.h}},qa:function(){if(d())return H.qa()},Ka:function(){if(d())return H.Ka()},Id:function(n,u,y){d()&&(b("isPushGranted","method","isPushPermissionGranted"),H.Id(n,u,y))},Mb:function(){if(d())return H.Mb()},
|
|
ph:function(n,u,y){if(d())return H.subscribe(y,function(B,P,R){k.tb();"function"===typeof n&&n(B,P,R)},u)},Uh:function(n,u){if(d())return H.unsubscribe(n,u)},Tb:function(n){if(d()){if(""===n||!Qa(n,"set signature","signature",!1))return!1;m.Tb(n);return!0}},Xd:function(n){if(d())return m.Xd(n)},Sh:function(){d()&&(b("trackLocation","method"),A.watchPosition())},zd:function(n){if(d()){if(!Ca(n))return x.error("Cannot set SDK metadata because metadata is not an array."),!1;for(var u=ba(n),y=u.next();!y.done;y=
|
|
u.next())if(!Aa(If,y.value,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return!1;k.zd(n);return!0}},Mh:function(){b("stopWebTracking","method","disableSDK");null!=k&&k.tb();var n=new Ib(null,!0);n.store("ab.optOut","This-cookie-will-expire-in-"+Jb(n));n=za.ba;(new qa(n)).setItem(n.G.xb,n.kb,!0);c();Q=!0},bh:function(){null!=k&&k.tb();var n=new Ib(null,!0);n.store("ab.optOut","This-cookie-will-expire-in-"+Jb(n));n=za.ba;(new qa(n)).setItem(n.G.xb,n.kb,!0);c();Q=!0},vh:function(){b("resumeWebTracking",
|
|
"method","enableSDK");(new Ib(null,!0)).remove("ab.optOut");var n=za.ba;va(new qa(n),n.G.xb,n.kb);c()},dh:function(){(new Ib(null,!0)).remove("ab.optOut");var n=za.ba;va(new qa(n),n.G.xb,n.kb);c()},mh:function(){return!!(new Ib(null,!0)).Z("ab.optOut")},Xh:function(){if(null==g)throw Error("Appboy must be initialized before calling methods.");g.clearData();for(var n=Ga(za),u=0;u<n.length;u++)(new qa(za[n[u]])).clearData();V&&(w.clearData(!0),D.clearData(!0))}}},Z={},Nf;for(Nf in J)Z[Nf]=J[Nf];
|
|
Z.initialize=X.Hd;Z.destroy=X.Jb;Z.getDeviceId=X.gh;Z.toggleAppboyLogging=X.Yd;Z.setLogger=X.Td;Z.openSession=X.Lc;Z.changeUser=X.$a;Z.getUser=X.rb;Z.requestImmediateDataFlush=X.tb;Z.requestFeedRefresh=X.Nc;Z.getCachedFeed=X.Fc;Z.subscribeToFeedUpdates=X.uf;Z.requestContentCardsRefresh=X.Na;Z.getCachedContentCards=X.pb;Z.subscribeToContentCardsUpdates=X.tf;Z.logCardImpressions=X.Ma;Z.logCardClick=X.La;Z.logCardDismissal=X.Hc;Z.logFeedDisplayed=X.jf;Z.logContentCardsDisplayed=X.hf;
|
|
Z.logInAppMessageImpression=X.Qb;Z.logInAppMessageClick=X.Jc;Z.logInAppMessageButtonClick=X.Ic;Z.logInAppMessageHtmlClick=X.Pb;Z.subscribeToNewInAppMessages=X.Ph;Z.subscribeToInAppMessage=X.vf;Z.removeSubscription=X.N;Z.removeAllSubscriptions=X.K;Z.logCustomEvent=X.Jd;Z.logPurchase=X.Kd;Z.isPushSupported=X.qa;Z.isPushBlocked=X.Ka;Z.isPushGranted=X.Id;Z.isPushPermissionGranted=X.Mb;Z.registerAppboyPushMessages=X.ph;Z.unregisterAppboyPushMessages=X.Uh;Z.setSdkAuthenticationSignature=X.Tb;
|
|
Z.subscribeToSdkAuthenticationFailures=X.Xd;Z.trackLocation=X.Sh;Z.addSdkMetadata=X.zd;Z.stopWebTracking=X.Mh;Z.disableSDK=X.bh;Z.resumeWebTracking=X.vh;Z.enableSDK=X.dh;Z.wipeData=X.Xh;Z.isDisabled=X.mh;for(var Of in Z)"object"===typeof appboyInterface?appboyInterface[Of]=Z[Of]:Mf[Of]=Z[Of];var Pf="object"===typeof appboyInterface?appboyInterface:Mf,Qf=new function(a,b){var c=!1,d=!1,e=!1,f=!1,g=null,h=null,l=null,k=null;a.Oh(function(m){function q(t){if(27===t.keyCode&&!e&&0<document.querySelectorAll(".ab-modal-interactions").length){t=document.getElementsByClassName("ab-html-message");for(var w=!1,r=0;r<t.length;r++){var F=t[r].contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0];null!=F&&(Ub(F),w=!0)}w||(t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0],
|
|
null!=t&&Ub(t))}}c=m[C.pg]||!1;d=m[C.og]||m[C.qg]||!1;e=m[C.tg]||!1;f=m[C.fe]||!1;!0===m[C.Zd]&&(f=!0);g=null;l=m[C.be]||null;k=m[C.bg]||null;m[C.Xf]||null!==document.querySelector('link[rel=stylesheet][href="https://use.fontawesome.com/7f85a56ba4.css"]')||(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("href","https://use.fontawesome.com/7f85a56ba4.css"),document.getElementsByTagName("head")[0].appendChild(m));m="ab-css-definitions-"+"3.5.1".replace(/\./g,
|
|
"-");if(null==document.getElementById(m)){var v=document.createElement("style");v.innerHTML=qd.$e;v.id=m;null!=l&&v.setAttribute("nonce",l);document.getElementsByTagName("head")[0].appendChild(v)}e||(document.addEventListener("keydown",q,!1),a.Nh(function(){document.removeEventListener("keydown",q)}))});return{Tg:function(){null==g&&(g=a.vf(function(m){a.display.sf(m)}));return g},sf:function(m,q,v){if(null==m)return!1;if(m instanceof Fc)return x.info("User received control for a multivariate test, logging to Braze servers."),
|
|
a.Qb(m),!0;if(!(m instanceof W))return!1;var t=m instanceof Qc;if(t&&!m.Th&&!f)return x.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these messages.'),a.M(m,dd.ge),!1;null==q&&(q=document.body);if(m.Ja()&&0<q.querySelectorAll(".ab-modal-interactions").length)return x.info("Cannot show in-app message '"+m.message+"' because another message is being shown."),a.M(m,dd.Bf),!1;if(bc.nh()){var w=bc.hh();if(w===bc.Sa.jc&&m.orientation===
|
|
Zc||w===bc.Sa.Zc&&"PORTRAIT"===m.orientation)return x.info("Not showing "+("PORTRAIT"===m.orientation?"portrait":"landscape")+" in-app message '"+m.message+"' because the screen is currently "+(w===bc.Sa.jc?"portrait":"landscape")),a.M(m,dd.rg),!1}if(!f){w=!1;if(m.buttons&&0<m.buttons.length)for(var r=m.buttons,F=0;F<r.length;F++)r[F].clickAction===$c&&(w=sd(r[F].uri));else m.clickAction===$c&&(w=sd(m.uri));if(w)return x.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these actions.'),
|
|
a.M(m,dd.ge),!1}var D=document.createElement("div");D.className="ab-iam-root v3";D.className+=m.oa();D.setAttribute("role","complementary");Bc(m)&&(D.id=m.htmlId);k&&(D.style.zIndex=k+1);q.appendChild(D);Cc(m)&&(q=document.createElement("style"),q.innerHTML=m.css,q.id=Dc(m),null!=l&&q.setAttribute("nonce",l),document.getElementsByTagName("head")[0].appendChild(q));var G=m instanceof Nc;q=m.aa(a,b,function(){a.display.Vd()},function(H){if(m.Ja()&&m.xf()){var A=document.createElement("div");A.className=
|
|
"ab-page-blocker";Cc(m)||(A.style.backgroundColor=sc(m.frameColor));k&&(A.style.zIndex=k);D.appendChild(A);if(!e){var N=(new Date).valueOf();A.onclick=function(V){200<(new Date).valueOf()-N&&(Wc(m,H),V.stopPropagation())}}D.appendChild(H);H.focus();m.Kc(D)}else if(G){var L=document.querySelectorAll(".ab-slideup");A=null;for(var I=L.length-1;0<=I;I--)if(L[I]!==H){A=L[I];break}"TOP"===m.slideFrom?(L=0,null!=A&&(L=A.offsetTop+A.offsetHeight),H.style.top=Math.max(L,0)+"px"):(L=0,null!=A&&(L=(window.innerHeight||
|
|
document.documentElement.clientHeight)-A.offsetTop),H.style.bottom=Math.max(L,0)+"px")}else t&&!e&&H.contentWindow.addEventListener("keydown",function(V){27===V.keyCode&&m.Ye()});a.Qb(m);m.dismissType===xc&&setTimeout(function(){D.contains(H)&&Wc(m,H)},m.duration);"function"===typeof v&&v()},c,k);if(t||G)D.appendChild(q),m.Kc(D);return!0},Vd:function(m,q,v){function t(A){for(var N=A.querySelectorAll(".ab-feed"),L=null,I=0;I<N.length;I++)N[I].parentNode===A&&(L=N[I]);null!=L?(xd(a,L),L.parentNode.replaceChild(G,
|
|
L)):A.appendChild(G);setTimeout(function(){G.className=G.className.replace("ab-hide","ab-show")},0);r&&G.focus();a.jf();Bd(D,a,G)}function w(A,N){if(null==N)return A;for(var L=[],I=0;I<N.length;I++)L.push(N[I].toLowerCase());N=[];for(I=0;I<A.length;I++){for(var V=[],Q=0;Q<A[I].categories.length;Q++)V.push(A[I].categories[Q].toLowerCase());0<Fa(V,L).length&&N.push(A[I])}return N}var r=!1;null==m&&(m=document.body,r=!0);var F=!1,D=null;null==q?(D=a.Fc(),Fd(D,w(D.cards,v),D.lastUpdated,null,a,d),F=!0):
|
|
D=new wd(w(q,v),new Date);var G=D.aa(a,d);if(F){if(null==D.lastUpdated||6E4<(new Date).valueOf()-D.lastUpdated.valueOf())x.info("Cached feed was older than max TTL of 60000 ms, requesting an update from the server."),Cd(D,a,G);var H=(new Date).valueOf();q=a.uf(function(A){var N=G.querySelectorAll(".ab-refresh-button")[0];if(null!=N){var L=500,I=parseInt(G.getAttribute(Dd));L=isNaN(I)?L-((new Date).valueOf()-H):L-((new Date).valueOf()-I);setTimeout(function(){N.className=N.className.replace(/fa-spin/g,
|
|
"")},Math.max(L,0))}Fd(D,w(A.cards,v),A.lastUpdated,G,a,d)});G.setAttribute(yd,q)}null!=m?t(m):window.onload=function(A){return function(){"function"===typeof A&&A();t(document.body)}}(window.onload)},af:function(){for(var m=document.querySelectorAll(".ab-feed"),q=0;q<m.length;q++)xd(a,m[q])},Rh:function(m,q,v){0<document.querySelectorAll(".ab-feed").length?a.display.af():a.display.Vd(m,q,v)},rf:function(m,q){function v(G){for(var H=G.querySelectorAll(".ab-feed"),A=null,N=0;N<H.length;N++)H[N].parentNode===
|
|
G&&(A=H[N]);null!=A?(xd(a,A),A.parentNode.replaceChild(r,A)):G.appendChild(r);setTimeout(function(){r.className=r.className.replace("ab-hide","ab-show")},0);t&&r.focus();a.hf();Bd(w,a,r)}var t=!1;null==m&&(m=document.body,t=!0);var w=null;w=a.pb();"function"===typeof q&&Fd(w,q(w.cards.slice()),w.lastUpdated,null,a,d);var r=w.aa(a,d);(null==w.lastUpdated||6E4<(new Date).valueOf()-w.lastUpdated.valueOf())&&(null==h||6E4<(new Date).valueOf()-h.valueOf())&&(x.info("Cached content cards were older than max TTL of 60000 ms, requesting a sync from the server."),
|
|
Cd(w,a,r),h=(new Date).valueOf());var F=(new Date).valueOf(),D=a.tf(function(G){var H=r.querySelectorAll(".ab-refresh-button")[0];if(null!=H){var A=500,N=parseInt(r.getAttribute(Dd));A=isNaN(N)?A-((new Date).valueOf()-F):A-((new Date).valueOf()-N);setTimeout(function(){H.className=H.className.replace(/fa-spin/g,"")},Math.max(A,0))}A=G.cards;"function"===typeof q&&(A=q(A.slice()));Fd(w,A,G.lastUpdated,r,a,d)});r.setAttribute(yd,D);null!=m?v(m):window.onload=function(G){return function(){"function"===
|
|
typeof G&&G();v(document.body)}}(window.onload)},gf:function(m){for(var q=document.querySelectorAll(".ab-feed"),v=0;v<q.length;v++)(null==m||null!=m&&q[v].parentNode===m)&&xd(a,q[v])},Qh:function(m,q){0<document.querySelectorAll(".ab-feed").length?a.display.gf():a.display.rf(m,q)}}}(X,Pf);Pf.display={};Pf.display.automaticallyShowNewInAppMessages=Qf.Tg;Pf.display.showInAppMessage=Qf.sf;Pf.display.showFeed=Qf.Vd;Pf.display.destroyFeed=Qf.af;Pf.display.toggleFeed=Qf.Rh;Pf.display.showContentCards=Qf.rf;
|
|
Pf.display.hideContentCards=Qf.gf;Pf.display.toggleContentCards=Qf.Qh;X.display=Qf;return appboyInterface});}).call(window);
|