271 lines
186 KiB
JavaScript
271 lines
186 KiB
JavaScript
/*
|
|
* Braze Web SDK v3.3.0
|
|
* (c) Braze, Inc. 2021 - http://braze.com
|
|
* License available at https://github.com/Appboy/appboy-web-sdk/blob/master/LICENSE
|
|
* Compiled on 2021-05-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 ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ca(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}var da="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ea="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 fa(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 ia=fa(this);function ja(a,b){if(b)a:{var c=ia;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&&ea(c,a,{configurable:!0,writable:!0,value:b})}}var ka;
|
|
if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={Gg:!0},na={};try{na.__proto__=ma;la=na.Gg;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
|
|
function pa(a,b){a.prototype=da(b.prototype);a.prototype.constructor=a;if(oa)oa(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.Th=b.prototype}
|
|
ja("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}});
|
|
ja("Promise",function(a){function b(g){this.Nb=0;this.Pd=void 0;this.pb=[];var h=this.xd();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.Ga=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.Me=function(g){if(null==this.Ga){this.Ga=[];var h=this;this.Ne(function(){h.Tg()})}this.Ga.push(g)};var e=ia.setTimeout;c.prototype.Ne=function(g){e(g,0)};c.prototype.Tg=function(){for(;this.Ga&&this.Ga.length;){var g=this.Ga;this.Ga=[];for(var h=
|
|
0;h<g.length;++h){var k=g[h];g[h]=null;try{k()}catch(l){this.Jg(l)}}}this.Ga=null};c.prototype.Jg=function(g){this.Ne(function(){throw g;})};b.prototype.xd=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.gh),reject:g(this.Od)}};b.prototype.gh=function(g){if(g===this)this.Od(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.wh(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.fh(g):this.Ye(g)}};b.prototype.fh=function(g){var h=void 0;try{h=g.then}catch(k){this.Od(k);return}"function"==typeof h?this.xh(h,g):this.Ye(g)};b.prototype.Od=function(g){this.gf(2,g)};b.prototype.Ye=function(g){this.gf(1,g)};b.prototype.gf=function(g,h){if(0!=this.Nb)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.Nb);this.Nb=g;this.Pd=h;this.Ug()};b.prototype.Ug=function(){if(null!=this.pb){for(var g=0;g<this.pb.length;++g)f.Me(this.pb[g]);this.pb=
|
|
null}};var f=new c;b.prototype.wh=function(g){var h=this.xd();g.yc(h.resolve,h.reject)};b.prototype.xh=function(g,h){var k=this.xd();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(q,v){return"function"==typeof q?function(t){try{l(q(t))}catch(A){m(A)}}:v}var l,m,r=new b(function(q,v){l=q;m=v});this.yc(k(g,l),k(h,m));return r};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.yc=function(g,h){function k(){switch(l.Nb){case 1:g(l.Pd);
|
|
break;case 2:h(l.Pd);break;default:throw Error("Unexpected state: "+l.Nb);}}var l=this;null==this.pb?f.Me(k):this.pb.push(k)};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=ca(g),m=l.next();!m.done;m=l.next())d(m.value).yc(h,k)})};b.all=function(g){var h=ca(g),k=h.next();return k.done?d([]):new b(function(l,m){function r(t){return function(A){q[t]=A;v--;0==v&&l(q)}}var q=[],v=0;do q.push(void 0),v++,d(k.value).yc(r(q.length-
|
|
1),m),k=h.next();while(!k.done)})};return b});var qa={Ih: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 ra={bb: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 sa(a){var b=w;this.Ee="undefined"===typeof window?self:window;this.C=a;this.D=b}function ta(a){if("indexedDB"in a.Ee)return a.Ee.indexedDB}
|
|
function ua(a){try{if(null==ta(a))return!1;ta(a).open("Braze IndexedDB Support Test");if("undefined"!==typeof window){var b=window.Ph||window.Xa||window.Rh;if(b&&b.ih&&b.ih.id)return a.D.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}catch(c){return a.D.info("Not using IndexedDB for storage due to following error: "+c),!1}}
|
|
function va(a,b,c){var d=ta(a).open(a.C.P,a.C.VERSION);if(null==d)return"function"===typeof c&&c(),!1;d.onupgradeneeded=function(e){a.D.info("Upgrading indexedDB "+a.C.P+" to v"+a.C.VERSION+"...");e=e.target.result;for(var f in a.C.M)a.C.M.hasOwnProperty(f)&&!e.objectStoreNames.contains(a.C.M[f])&&e.createObjectStore(a.C.M[f])};d.onsuccess=function(e){var f=e.target.result;f.onversionchange=function(){f.close();"function"===typeof c&&c();a.D.error("Needed to close the database unexpectedly because of an upgrade in another tab")};
|
|
b(f)};d.onerror=function(e){a.D.info("Could not open indexedDB "+a.C.P+" v"+a.C.VERSION+": "+e.target.errorCode);"function"===typeof c&&c();return!0};return!0}
|
|
sa.prototype.setItem=function(a,b,c,d,e){if(!ua(this))return"function"===typeof e&&e(),!1;var f=this;return va(this,function(g){g.objectStoreNames.contains(a)?(g=g.transaction([a],"readwrite").objectStore(a).put(c,b),g.onerror=function(){f.D.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.D.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P+" - "+a+" is not a valid objectStore"),"function"===
|
|
typeof e&&e())},e)};sa.prototype.getItem=function(a,b,c){if(!ua(this))return!1;var d=this;return va(this,function(e){e.objectStoreNames.contains(a)?(e=e.transaction([a],"readonly").objectStore(a).get(b),e.onerror=function(){d.D.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.D.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P+" - "+a+" is not a valid objectStore")})};
|
|
function wa(a,b,c,d){ua(a)?va(a,function(e){e.objectStoreNames.contains(b)?(e=e.transaction([b],"readonly").objectStore(b).openCursor(null,"prev"),e.onerror=function(){a.D.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.D.error("Could not retrieve last record from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore"),"function"===
|
|
typeof d&&d())},d):"function"===typeof d&&d()}function xa(a,b,c){ua(a)&&va(a,function(d){d.objectStoreNames.contains(b)?d.transaction([b],"readwrite").objectStore(b)["delete"](c).onerror=function(){a.D.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P)}:a.D.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore")})}
|
|
function ya(a,b,c){ua(a)&&va(a,function(d){if(d.objectStoreNames.contains(b)){var e=d.transaction([b],"readwrite").objectStore(b);d=e.openCursor();var f=[];d.onerror=function(){0<f.length?(a.D.info("Cursor closed midway through for "+b+" on indexedDB "+a.C.P),c(f)):a.D.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.D.error("Could not retrieve objects from "+
|
|
b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore")})}
|
|
sa.prototype.clearData=function(){if(!ua(this))return!1;var a=[],b;for(b in this.C.M)this.C.M.hasOwnProperty(b)&&this.C.M[b]!==this.C.M.cd&&a.push(this.C.M[b]);var c=this;return va(this,function(d){d=d.transaction(a,"readwrite");for(var e=0;e<a.length;e++)d.objectStore(a[e]).clear().onerror=function(){c.D.error("Could not clear "+this.source.name+" on indexedDB "+c.C.P)};d.onerror=function(){c.D.error("Could not clear object stores on indexedDB "+c.C.P)}})};var x={Ed:function(a){if(void 0!==a||void 0===x.Da)x.Da=!!a;x.Ae||(x.Ae=!0)},Db:function(){x.Ae=!1;x.Da=void 0;x.D=void 0},Rd:function(a){"function"!==typeof a?x.info("Ignoring setLogger call since logger is not a function"):(x.Ed(),x.D=a)},Wd:function(){x.Ed();x.Da?(console.log("Disabling Appboy logging"),x.Da=!1):(console.log("Enabled Appboy logging"),x.Da=!0)},info:function(a){x.Da&&(a="Appboy: "+a,null!=x.D?x.D(a):console.log(a))},warn:function(a){x.Da&&(a="Appboy SDK Warning: "+a+" (v3.3.0)",
|
|
null!=x.D?x.D(a):console.warn(a))},error:function(a){x.Da&&(a="Appboy SDK Error: "+a+" (v3.3.0)",null!=x.D?x.D(a):console.error(a))}};var C={CustomEvent:"ce",Yf:"p",lg:"pc",Nh:"ca",Zf:"i",Vc:"ie",Cf:"cci",Ef:"ccic",Af:"ccc",Bf:"ccd",pe:"ss",rg:"se",Xf:"si",ie:"sc",ge:"sbc",Wf:"sfe",Ff:"iec",eg:"lr",wf:"uae",zf:"ci",yf:"cc",cg:"lcaa",dg:"lcar",Hf:"inc",Gf:"add",If:"rem",Jf:"set"},za={Tf:"feed_displayed",Df:"content_cards_displayed"},Aa={Ra:{P:"AppboyServiceWorkerAsyncStorage",VERSION:5,M:{Kf:"data",le:"pushClicks",ed:"pushSubscribed",Lh:"fallbackDevice",xf:"cardUpdates",cd:"optOut"},ec:1}},w=x,E={tf:"allowCrawlerActivity",Oc:"baseUrl",
|
|
gg:"noCookies",be:"devicePropertyAllowlist",Sc:"devicePropertyWhitelist",Pf:"disablePushTokenMaintenance",Rf:"enableLogging",Sf:"enableSdkAuthentication",fg:"manageServiceWorkerExternally",Uf:"minimumIntervalBetweenTriggerActionsInSeconds",qg:"sessionTimeoutInSeconds",vf:"appVersion",pg:"serviceWorkerLocation",ng:"safariWebsitePushId",$c:"localization",$d:"contentSecurityNonce",ce:"enableHtmlInAppMessages",Xd:"allowUserSuppliedJavascript",Vf:"inAppMessageZIndex",ig:"openInAppMessagesInNewTab",jg:"openNewsFeedCardsInNewTab",
|
|
mg:"requireExplicitInAppMessageDismissal",Qf:"doNotLoadFontAwesome",ne:"sdkFlavor",Xc:"language",hg:"openCardsInNewTab"};function Ba(a,b,c,d){a=Ca(a);return-1===a.indexOf(b)?(w.error(c+" Valid values from "+d+' are "'+a.join('"/"')+'".'),!1):!0}function Da(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function Ea(a){return"[object Date]"===Object.prototype.toString.call(a)}function Fa(a){return"[object Object]"===Object.prototype.toString.call(a)}
|
|
function Ga(a){null==a&&(a=[]);for(var b=[],c=arguments.length,d=0,e=a.length;d<e;d++){var 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 Ha(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b}function Ca(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&void 0!==a[c]&&b.push(a[c]);return b}
|
|
function Ia(a,b){if(a===b)return 0!==a||1/a===1/b;if(null==a||null==b)return a===b;var c=a.toString();if(c!==b.toString())return!1;switch(c){case "[object RegExp]":case "[object String]":return""+a===""+b;case "[object Number]":return+a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case "[object Date]":case "[object Boolean]":return+a===+b}c="[object Array]"===c;if(!c){if("object"!==typeof a||"object"!==typeof b)return!1;var d=a.constructor,e=b.constructor;if(d!==e&&!("function"===typeof d&&d instanceof
|
|
d&&"function"===typeof e&&e instanceof e)&&"constructor"in a&&"constructor"in b)return!1}d=[];e=[];for(var 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(!Ia(a[f],b[f]))return!1}else{c=Ha(a);f=c.length;if(Ha(b).length!==f)return!1;for(;f--;){var g=c[f];if(!b.hasOwnProperty(g)||!Ia(a[g],b[g]))return!1}}d.pop();e.pop();return!0};function Ja(a,b){a/=1E3;b&&(a=Math.floor(a));return a}function Ka(a){var b=parseInt(a);return null==a||isNaN(b)?null:new Date(1E3*b)}function La(a){return null!=a&&Ea(a)?a.toISOString().replace(/\.[0-9]{3}Z$/,""):a}function Ma(a){return null==a||""===a?null:new Date(a)};function J(a,b,c,d,e){this.Pb=a;this.type=b;this.time=null==c||""===c?(new Date).valueOf():c;this.sessionId=d;this.data=e}J.prototype.wc=function(){var a={name:this.type,time:Ja(this.time),data:this.data||{},session_id:this.sessionId};null!=this.Pb&&(a.user_id=this.Pb);return a};J.prototype.A=function(){return{u:this.Pb,t:this.type,ts:this.time,s:this.sessionId,d:this.data}};function Na(a){return null!=a&&Fa(a)&&null!=a.t&&""!==a.t}function Oa(a){return new J(a.u,a.t,a.ts,a.s,a.d)};function Pa(a,b,c){null==a&&(a=ra.bb());c=parseInt(c);if(isNaN(c)||0===c)c=(new Date).valueOf();this.ha=a;this.Cb=c;this.Hb=(new Date).valueOf();this.zd=b}Pa.prototype.A=function(){return{g:this.ha,e:this.zd,c:this.Cb,l:this.Hb}};function Qa(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 Ra(a,b,c,d){(d="string"===typeof a||null===a&&d)||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}function Sa(a,b,c){var d=null!=a&&"string"===typeof a&&(""===a||a.match(Ta));d||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}
|
|
function Ua(a,b,c,d,e){null==a&&(a={});if("object"!==typeof a||Da(a))return w.error(b+" requires that "+c+" be an object. Ignoring "+e+"."),[!1,null];b=JSON.stringify(a);if(Qa(b)>Va)return w.error("Could not "+d+" because "+c+" was greater than the max size of "+Xa+"."),[!1,null];try{var f=JSON.parse(b)}catch(l){return w.error("Could not "+d+" because "+c+" did not contain valid JSON."),[!1,null]}for(var g in a){if(!Sa(g,d,"the "+e+" property name"))return[!1,null];c=a[g];if(null==c)delete a[g],delete f[g];
|
|
else{Ea(c)&&(f[g]=La(c));var h=d,k="the "+e+' property "'+g+'"';(b=Fa(c)||Da(c)?Ya(c,f[g]):Za(c))||w.error("Cannot "+h+" because "+k+' "'+c+'" is invalid.');if(!b)return[!1,null]}}return[!0,f]}function Ya(a,b){if(Da(a)&&Da(b))for(var c=0;c<a.length&&c<b.length;c++){if(Ea(a[c])&&(b[c]=La(a[c])),!Ya(a[c],b[c]))return!1}else if(Fa(a)){c=ca(Ha(a));for(var d=c.next();!d.done;d=c.next())if(d=d.value,Ea(a[d])&&(b[d]=La(a[d])),!Ya(a[d],b[d]))return!1}else return Za(a);return!0}
|
|
function Za(a){var b=typeof a;return null==a||"number"===b||"boolean"===b||Ea(a)||"string"===b}var Ta=/^[^\x00-\x1F\x22]+$/,$a=new RegExp(/^.+@.+\..+$/),Va=5E4,Xa="50KB";var K={};function L(a,b){this.f=a;this.H=b}p=L.prototype;p.o=function(a){null==a&&w.error("getUserId must be supplied with a callback. e.g., appboy.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})");"function"===typeof a&&a(this.f.o())};
|
|
p.Hg=function(a,b){if(!Ra(a,"add alias","the alias",!1)||0>=a.length)return w.error("addAlias requires a non-empty alias"),!1;if(!Ra(b,"add alias","the label",!1)||0>=b.length)return w.error("addAlias requires a non-empty label"),!1;var c=this.H,d=new ab,e=bb(c.F),f=C.wf;d.j.push(new J(c.f.o(),f,(new Date).valueOf(),e,{a:a,l:b}));d.h=cb(c.b,d.j);return d.h};p.ph=function(a){return Ra(a,"set first name","the firstName",!0)?db(this.f,"first_name",a):!1};
|
|
p.uh=function(a){return Ra(a,"set last name","the lastName",!0)?db(this.f,"last_name",a):!1};p.nh=function(a){return null===a||"string"===typeof a&&null!=a.toLowerCase().match($a)?db(this.f,"email",a):(w.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};p.qh=function(a){"string"===typeof a&&(a=a.toLowerCase());return null===a||Ba(eb,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?db(this.f,"gender",a):!1};
|
|
p.mh=function(a,b,c){if(null===a&&null===b&&null===c)return db(this.f,"dob",null);a=parseInt(a);b=parseInt(b);c=parseInt(c);return isNaN(a)||isNaN(b)||isNaN(c)||12<b||1>b||31<c||1>c?(w.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):db(this.f,"dob",""+a+"-"+b+"-"+c)};p.kh=function(a){return Ra(a,"set country","the country",!0)?db(this.f,"country",a):!1};
|
|
p.rh=function(a){return Ra(a,"set home city","the homeCity",!0)?db(this.f,"home_city",a):!1};p.sh=function(a){return Ra(a,"set language","the language",!0)?db(this.f,"language",a):!1};p.oh=function(a){return Ba(fb,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?db(this.f,"email_subscribe",a):!1};
|
|
p.Sd=function(a){return Ba(fb,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?db(this.f,"push_subscribe",a):!1};p.vh=function(a){return Ra(a,"set phone number","the phoneNumber",!0)?null===a||a.match(gb)?db(this.f,"phone",a):(w.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};p.jh=function(a){return db(this.f,"image_url",a)};
|
|
p.Kc=function(a,b,c,d,e){if(null==a||null==b)return w.error("Cannot set last-known location - latitude and longitude are required."),!1;a=parseFloat(a);b=parseFloat(b);null!=c&&(c=parseFloat(c));null!=d&&(d=parseFloat(d));null!=e&&(e=parseFloat(e));return isNaN(a)||isNaN(b)||null!=c&&isNaN(c)||null!=d&&isNaN(d)||null!=e&&isNaN(e)?(w.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90<a||-90>a||180<b||-180>b?(w.error("Cannot set last-known location - latitude and longitude are bounded by \u00b190 and \u00b1180 respectively."),
|
|
!1):null!=c&&0>c||null!=e&&0>e?(w.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.H.Kc(this.f.o(),a,b,d,c,e).h};
|
|
p.Qd=function(a,b){if(!Sa(a,"set custom user attribute","the given key"))return!1;var c=typeof b,d=Ea(b),e=Da(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Sa(b,'set custom user attribute "'+a+'"',"the given value"))return!1;d&&(b=La(b));if(e){for(c=0;c<b.length;c++)if(!Sa(b[c],'set custom user attribute "'+a+'"',"the element in the given array"))return!1;return hb(this.H,C.Jf,a,b).h}return this.f.Qd(a,b)};
|
|
p.Ig=function(a,b){return!Sa(a,"add to custom user attribute array","the given key")||null!=b&&!Sa(b,"add to custom user attribute array","the given value")?!1:hb(this.H,C.Gf,a,b).h};p.eh=function(a,b){return!Sa(a,"remove from custom user attribute array","the given key")||null!=b&&!Sa(b,"remove from custom user attribute array","the given value")?!1:hb(this.H,C.If,a,b).h};
|
|
p.Zg=function(a,b){if(!Sa(a,"increment custom user attribute","the given key"))return!1;null==b&&(b=1);var c=parseInt(b);return isNaN(c)||c!==parseFloat(b)?(w.error('Cannot increment custom user attribute because the given incrementValue "'+b+'" is not an integer.'),!1):hb(this.H,C.Hf,a,c).h};p.Nd=function(a,b,c,d,e){this.f.Nd(a,b,c,d,e);ib(this.H)};p.Lb=function(a){this.f.Lb(a)};
|
|
p.lh=function(a,b,c){if(!Sa(a,"set custom location attribute","the given key"))return!1;if(null!==b||null!==c)if(b=parseFloat(b),c=parseFloat(c),isNaN(b)||90<b||-90>b||isNaN(c)||180<c||-180>c)return w.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \u00b190 and \u00b1180 respectively, or must both be null for removal."),!1;var d=this.H,e=c;c=new ab;if(jb(d.I,a))w.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{var f=bb(d.F);
|
|
if(null===b&&null===e){var g=C.dg;a={key:a}}else g=C.cg,a={key:a,latitude:b,longitude:e};c.j.push(new J(d.f.o(),g,(new Date).valueOf(),f,a));c.h=cb(d.b,c.j)}return c.h};var gb=/^[0-9 .\\(\\)\\+\\-]+$/,eb={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},fb={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"};K.User=L;K.User.Genders=eb;K.User.NotificationSubscriptionTypes=fb;K.User.prototype.getUserId=L.prototype.o;
|
|
K.User.prototype.setFirstName=L.prototype.ph;K.User.prototype.setLastName=L.prototype.uh;K.User.prototype.setEmail=L.prototype.nh;K.User.prototype.setGender=L.prototype.qh;K.User.prototype.setDateOfBirth=L.prototype.mh;K.User.prototype.setCountry=L.prototype.kh;K.User.prototype.setHomeCity=L.prototype.rh;K.User.prototype.setLanguage=L.prototype.sh;K.User.prototype.setEmailNotificationSubscriptionType=L.prototype.oh;K.User.prototype.setPushNotificationSubscriptionType=L.prototype.Sd;
|
|
K.User.prototype.setPhoneNumber=L.prototype.vh;K.User.prototype.setAvatarImageUrl=L.prototype.jh;K.User.prototype.setLastKnownLocation=L.prototype.Kc;K.User.prototype.setCustomUserAttribute=L.prototype.Qd;K.User.prototype.addToCustomAttributeArray=L.prototype.Ig;K.User.prototype.removeFromCustomAttributeArray=L.prototype.eh;K.User.prototype.incrementCustomUserAttribute=L.prototype.Zg;K.User.prototype.addAlias=L.prototype.Hg;K.User.prototype.setCustomLocationAttribute=L.prototype.lh;function kb(){}kb.prototype.Bd=function(){};kb.prototype.Dd=function(){};kb.prototype.nb=function(){};function lb(a,b){if(a&&b)if(a=a.toLowerCase(),Da(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 mb={Zd:"Chrome",Tc:"Edge",Yb:"Internet Explorer",je:"Opera",fd:"Safari",Mh:"Firefox"};function nb(){if(this.userAgentData=navigator.userAgentData){var a=this.userAgentData.brands;if(a&&a.length){a=ca(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0,d=[];for(c in mb)mb[c]!==mb.Yb&&d.push(mb[c]);if((c=b.brand.match(new RegExp("("+d.join("|")+")","i")))&&0<c.length){var e=c[0];var f=b.version;break}}}this.Xa=e||"Unknown Browser";this.version=f||"Unknown Version"}}pa(nb,kb);nb.prototype.Bd=function(){return this.Xa};nb.prototype.Dd=function(){return this.version};
|
|
nb.prototype.nb=function(a){var b=this;return this.fa?Promise.resolve(this.fa):(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=lb(c,a[d]);if(e)return b.fa=e,b.fa}return c}).catch(function(){return navigator.platform})};function ob(){this.Pe=pb()}pa(ob,kb);ob.prototype.Bd=function(){return this.Pe[0]||"Unknown Browser"};ob.prototype.Dd=function(){return this.Pe[1]||"Unknown Version"};ob.prototype.nb=function(a){for(var b=0;b<a.length;b++){var c=lb(a[b].U,a[b]);if(c)return Promise.resolve(c)}return Promise.resolve(navigator.platform)};
|
|
function pb(){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[mb.Yb,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]===mb.Zd&&(c=a.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("OPR",mb.je),c[0]=c[0].replace("EdgA",mb.Tc),"Edg"===c[0]&&(c[0]=mb.Tc),[c[0],c[1]];if(b[1]===mb.fd&&(c=a.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("EdgiOS",mb.Tc),
|
|
[c[0],c[1]];b=b[2]?[b[1],b[2]]:[null,null];b[0]===mb.fd&&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]===mb.je&&null!=(c=a.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",c[1]||""];b[0]&&(a=b[0].toLowerCase(),"msie"===a&&(b[0]=mb.Yb),"crios"===a&&(b[0]=mb.Zd),"tizen"===a&&(b[0]="Samsung Smart TV",b[1]=null),"samsungbrowser"===a&&(b[0]="Samsung Browser"));return b};function qb(){var a=this;this.Kd=new (navigator.userAgentData?nb:ob);this.userAgent=navigator.userAgent;this.Xa=this.Kd.Bd();this.version=this.Kd.Dd();this.nb().then(function(b){return a.fa=b});this.language=(navigator.Vh||navigator.language||navigator.browserLanguage||navigator.Uh||"").toLowerCase();this.$g=rb(this.userAgent)}qb.prototype.nb=function(){var a=this;return this.fa?Promise.resolve(this.fa):this.Kd.nb(sb).then(function(b){return a.fa=b})};
|
|
function rb(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 sb=[{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"}],tb=new qb;function ub(a,b){this.mc=a;this.R=b}function vb(a,b,c){var d=c;null!=c&&c instanceof Pa&&(d=c.A());a.mc.store(b,d)}function wb(a,b){var c=xb(a,b);null!=c&&(c.Hb=(new Date).valueOf(),vb(a,b,c))}function xb(a,b){a=a.mc.Y(b);null==a||null==a.g?a=null:(b=new Pa(a.g,a.e,a.c),b.Hb=a.l,a=b);return a}function cb(a,b){if(null==b||0===b.length)return!1;Da(b)||(b=[b]);var c=a.R.Y(O.Qb);null!=c&&Da(c)||(c=[]);for(var d=0;d<b.length;d++)c.push(b[d].A());return a.R.store(O.Qb,c)}
|
|
function yb(a){var b=a.R.Y(O.Qb);a.R.remove(O.Qb);null==b&&(b=[]);a=[];var c=!1,d=null;if(Da(b))for(var e=0;e<b.length;e++)Na(b[e])?a.push(Oa(b[e])):d=e;else c=!0;if(c||null!=d)e="Stored events could not be deserialized as Events",c&&(e+=", was "+Object.prototype.toString.call(b)+" not an array"),null!=d&&(e+=", value at index "+d+" does not look like an event"),e+=", serialized values were of type "+typeof b+": "+JSON.stringify(b),a.push(new J(null,C.Vc,(new Date).valueOf(),null,{e:e}));return a}
|
|
function Q(a,b,c){Ba(O,b,"StorageManager cannot store object.","StorageManager.KEYS.OBJECTS")&&a.R.store(b,c)}function S(a,b){return Ba(O,b,"StorageManager cannot retrieve object.","StorageManager.KEYS.OBJECTS")?a.R.Y(b):!1}function T(a,b){Ba(O,b,"StorageManager cannot remove object.","StorageManager.KEYS.OBJECTS")&&a.R.remove(b)}ub.prototype.clearData=function(){for(var a=Ha(zb),b=Ha(O),c=0;c<a.length;c++)this.mc.remove(zb[a[c]]);for(a=0;a<b.length;a++)this.R.remove(O[b[a]])};
|
|
function Ab(a,b){var c=a.R.Y(O.Oa);null==c&&(c={});var d=b.user_id||O.Nc,e;for(e in b)"user_id"===e||null!=c[d]&&null!=c[d][e]||Bb(a,b.user_id,e,b[e])}function Bb(a,b,c,d){var e=a.R.Y(O.Oa);null==e&&(e={});var f=b||O.Nc,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(O.Oa,e)}function Cb(a){var b=a.R.Y(O.Oa);a.R.remove(O.Oa);a=[];for(var c in b)null!=b[c]&&a.push(b[c]);return a}
|
|
var zb={fc:"ab.storage.userId",Rc:"ab.storage.deviceId",Sa:"ab.storage.sessionId"},O={gd:"ab.test",Qb:"ab.storage.events",Oa:"ab.storage.attributes",Nc:"ab.storage.attributes.anonymous_user",Xb:"ab.storage.device",dc:"ab.storage.pushToken",ad:"ab.storage.newsFeed",Zc:"ab.storage.lastNewsFeedRefresh",rb:"ab.storage.cardImpressions",oe:"ab.storage.serverConfig",hd:"ab.storage.triggers",jd:"ab.storage.triggers.ts",ag:"ab.storage.lastTriggeredTime",$f:"ab.storage.lastTriggeredTimesById",bg:"ab.storage.lastTriggerEventDataById",
|
|
ac:"ab.storage.messagingSessionStart",sb:"ab.storage.cc",Vb:"ab.storage.ccLastFullSync",Ub:"ab.storage.ccLastCardUpdated",gb:"ab.storage.ccClicks",hb:"ab.storage.ccImpressions",ta:"ab.storage.ccDismissals",$b:"ab.storage.lastDisplayedTriggerTimesById",Yc:"ab.storage.lastDisplayedTriggerTime",vb:"ab.storage.triggerFireInstancesById",tb:"ab.storage.signature"};function Eb(a){this.$=a;this.Xe=tb.Xa===mb.fd?3:10}Eb.prototype.Wa=function(a){return a+"."+this.$};
|
|
Eb.prototype.store=function(a,b){b={v:b};try{return localStorage.setItem(this.Wa(a),JSON.stringify(b)),!0}catch(c){return w.info("Storage failure: "+c.message),!1}};Eb.prototype.Y=function(a){try{var b=JSON.parse(localStorage.getItem(this.Wa(a)));return null==b?null:b.v}catch(c){return w.info("Storage retrieval failure: "+c.message),null}};Eb.prototype.remove=function(a){try{localStorage.removeItem(this.Wa(a))}catch(b){return w.info("Storage removal failure: "+b.message),!1}};
|
|
function Fb(a,b){this.$=a;a=0;for(var c=document.domain,d=c.split(".");a<d.length-1&&-1===document.cookie.indexOf("ab._gd=ab._gd");)a++,c="."+d.slice(-1-a).join("."),document.cookie="ab._gd=ab._gd;domain="+c+";";document.cookie="ab._gd=;expires="+(new Date(0)).toGMTString()+";domain="+c+";";this.Fe=c;this.xe=525949;this.Je=!!b}Fb.prototype.Wa=function(a){return null!=this.$?a+"."+this.$:a};function Gb(a){var b=new Date;b.setTime(b.getTime()+6E4*a.xe);return b.getFullYear()}
|
|
Fb.prototype.store=function(a,b){for(var c=Ca(zb),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.$)&&Hb(this,f))}c=new Date;c.setTime(c.getTime()+6E4*this.xe);c="expires="+c.toUTCString();d="domain="+this.Fe;b=this.Je?b:encodeURIComponent(JSON.stringify(b));a=this.Wa(a)+"="+b+";"+c+";"+d+";path=/";if(4093<=a.length)return w.info("Storage failure: string is "+
|
|
a.length+" chars which is too large to store as a cookie."),!1;document.cookie=a;return!0};
|
|
Fb.prototype.Y=function(a){for(var b=[],c=this.Wa(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.Je?f.substring(c.length,f.length):JSON.parse(decodeURIComponent(f.substring(c.length,f.length)));b.push(g)}catch(h){return w.info("Storage retrieval failure: "+h.message),this.remove(a),null}}return 0<b.length?b[b.length-1]:null};Fb.prototype.remove=function(a){Hb(this,this.Wa(a))};
|
|
function Hb(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.Fe;document.cookie=a;document.cookie=a+";path=/";document.cookie=a+";path="+document.location.pathname}function Ib(){this.sd={};this.De=5242880;this.Xe=3}
|
|
Ib.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.De)return w.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.De),!1;this.sd[a]=c;return!0};Ib.prototype.Y=function(a){a=this.sd[a];return null==a?null:a.value};
|
|
Ib.prototype.remove=function(a){this.sd[a]=null};function Jb(a,b,c){this.la=[];b&&this.la.push(new Fb(a));c&&this.la.push(new Eb(a));this.la.push(new Ib)}Jb.prototype.store=function(a,b){for(var c=!0,d=0;d<this.la.length;d++)c=this.la[d].store(a,b)&&c;return c};Jb.prototype.Y=function(a){for(var b=0;b<this.la.length;b++){var c=this.la[b].Y(a);if(null!=c)return c}return null};Jb.prototype.remove=function(a){for(var b=0;b<this.la.length;b++)this.la[b].remove(a)};function Kb(){this.zb={}}function Lb(a,b){if("function"!==typeof b)return null;var c=ra.bb();a.zb[c]=b;return c}Kb.prototype.N=function(a){delete this.zb[a]};Kb.prototype.J=function(){this.zb={}};function Mb(a,b){var c=[],d;for(d in a.zb)c.push(a.zb[d](b))};function Nb(){if(null==Ob){Ob=!1;try{var a=Object.defineProperty({},"passive",{get:function(){Ob=!0}});window.addEventListener("testPassive",null,a);window.removeEventListener("testPassive",null,a)}catch(b){}}return Ob}function Pb(a,b,c){a.addEventListener(b,c,Nb()?{passive:!0}:!1)}
|
|
function Qb(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 Rb(a){if(a.onclick){var b=document.createEvent("MouseEvents");b.initEvent("click",!0,!0);a.onclick.apply(a,[b])}}
|
|
function Sb(a,b,c){var d=null,e=null;Pb(a,"touchstart",function(f){d=f.touches[0].clientX;e=f.touches[0].clientY});Pb(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===Tb?c(f):0>g&&b===Ub&&c(f),e=d=null):25<=Math.abs(h)&&(0<h&&b===Vb&&a.scrollTop===a.scrollHeight-a.offsetHeight?c(f):0>h&&b===Wb&&0===a.scrollTop&&c(f),e=d=null)}})}
|
|
function Xb(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 Ob=null,Vb="up",Wb="down",Tb="left",Ub="right";function Yb(a,b,c){var d=document.createElement("button");d.setAttribute("aria-label",a);d.setAttribute("tabindex","0");d.setAttribute("role","button");Pb(d,"touchstart",function(){});d.className="ab-close-button";a=Xb("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 Zb={ah:function(){return 600>=screen.width},Wg:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?Zb.Qa.Wc:Zb.Qa.cc;if("screen"in window){var a=window.screen.orientation||screen.Qh||screen.Sh;null!=a&&"object"===typeof a&&(a=a.type);if("landscape-primary"===a||"landscape-secondary"===a)return Zb.Qa.Wc}return Zb.Qa.cc},bh:function(a,b,c){c||null!=b&&b.metaKey?window.open(a):window.location=a},Qa:{cc:0,Wc:1}};K.WindowUtils=Zb;
|
|
K.WindowUtils.openUri=Zb.bh;function $b(a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A){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=k||null;this.url=l;this.linkText=m;r=parseFloat(r);this.aspectRatio=isNaN(r)?null:r;this.extras=q;this.pinned=v||!1;this.dismissible=t||!1;this.dismissed=!1;this.clicked=A||!1;this.test=!1;this.nd=this.W=null}function ac(a){null==a.W&&(a.W=new Kb);return a.W}
|
|
function bc(a){null==a.nd&&(a.nd=new Kb);return a.nd}p=$b.prototype;p.Ob=function(a){return Lb(ac(this),a)};p.Ud=function(a){return Lb(bc(this),a)};p.N=function(a){ac(this).N(a);bc(this).N(a)};p.J=function(){ac(this).J();bc(this).J()};p.Md=function(){this.viewed=!0};p.fb=function(){this.clicked=this.viewed=!0;Mb(ac(this))};p.Ld=function(){return this.dismissible&&!this.dismissed?(this.dismissed=!0,Mb(bc(this)),!0):!1};
|
|
function cc(a,b){if(null==b||b[U.va]!==a.id)return!0;if(b[U.me])return!1;if(null!=b[U.ba]&&null!=a.updated&&b[U.ba]<Ja(a.updated.valueOf()))return!0;b[U.ya]&&!a.viewed&&(a.viewed=!0);b[U.sa]&&!a.clicked&&(a.clicked=b[U.sa]);null!=b[U.Ta]&&(a.title=b[U.Ta]);null!=b[U.wa]&&(a.imageUrl=b[U.wa]);null!=b[U.Pa]&&(a.description=b[U.Pa]);if(null!=b[U.ba]){var c=Ka(b[U.ba]);null!=c&&(a.updated=c)}null!=b[U.aa]&&(a.expiresAt=b[U.aa]===dc?null:Ka(b[U.aa]));null!=b[U.URL]&&(a.url=b[U.URL]);null!=b[U.xa]&&(a.linkText=
|
|
b[U.xa]);null!=b[U.ra]&&(c=parseFloat(b[U.ra]),a.aspectRatio=isNaN(c)?null:c);null!=b[U.ia]&&(a.extras=b[U.ia]);null!=b[U.ka]&&(a.pinned=b[U.ka]);null!=b[U.ua]&&(a.dismissible=b[U.ua]);null!=b[U.V]&&(a.test=b[U.V]);return!0}
|
|
function ec(a){if(a[U.me])return null;var b=a[U.va],c=a[U.TYPE],d=a[U.ya],e=a[U.Ta],f=a[U.wa],g=a[U.Pa],h=Ka(a[U.ba]);var k=a[U.aa]===dc?null:Ka(a[U.aa]);var l=a[U.URL],m=a[U.xa],r=a[U.ra],q=a[U.ia],v=a[U.ka],t=a[U.ua],A=a[U.sa];a=a[U.V]||!1;if(c===fc.re||c===fc.bc)b=new gc(b,d,e,f,g,null,h,null,k,l,m,r,q,v,t,A);else if(c===fc.Sb)b=new hc(b,d,e,f,g,null,h,null,k,l,m,r,q,v,t,A);else if(c===fc.Rb)b=new ic(b,d,f,null,h,null,k,l,m,r,q,v,t,A);else if(c===fc.Pc)b=new jc(b,d,h,k,q,v);else return w.error("Ignoring card with unknown type "+
|
|
c),null;b.test=a;return b}function kc(a){var b=a[V.va],c=a[V.TYPE],d=a[V.ya],e=a[V.Ta],f=a[V.wa],g=a[V.Pa],h=Ma(a[V.Wb]),k=Ma(a[V.ba]),l=a[V.Tb],m=Ma(a[V.aa]),r=a[V.URL],q=a[V.xa],v=a[V.ra],t=a[V.ia],A=a[V.ka],I=a[V.ua],z=a[V.sa];a=a[V.V]||!1;if(c===fc.bc)b=new gc(b,d,e,f,g,h,k,l,m,r,q,v,t,A,I,z);else if(c===fc.Sb)b=new hc(b,d,e,f,g,h,k,l,m,r,q,v,t,A,I,z);else if(c===fc.Rb)b=new ic(b,d,f,h,k,l,m,r,q,v,t,A,I,z);else if(c===fc.Pc)b=new jc(b,d,k,m,t,A);else return;b.test=a;return b}
|
|
function lc(a){null!=a&&(a=a.querySelectorAll(".ab-unread-indicator")[0],null!=a&&(a.className+=" read"))}
|
|
p.Z=function(a,b,c){function d(r){lc(f);g&&(a(e),Zb.openUri(e.url,r,c));return!1}var e=this,f=document.createElement("div");f.className="ab-card ab-effect-card "+this.zc;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 k=document.createElement("i");k.className="fa fa-star";h.appendChild(k);f.appendChild(h)}this.imageUrl&&""!==
|
|
this.imageUrl&&(h=document.createElement("div"),h.className="ab-image-area",k=document.createElement("img"),k.setAttribute("src",this.imageUrl),this.tc(k),h.appendChild(k),f.className+=" with-image",g&&!this.Cc?(k=document.createElement("a"),k.setAttribute("href",this.url),k.onclick=d,k.appendChild(h),f.appendChild(k)):f.appendChild(h));h=document.createElement("div");h.className="ab-card-body";if(this.dismissible){this.Ce=b;var l=Yb("Dismiss Card",void 0,this.Ve.bind(this));f.appendChild(l);Sb(h,
|
|
Tb,function(r){f.className+=" ab-swiped-left";l.onclick(r)});Sb(h,Ub,function(r){f.className+=" ab-swiped-right";l.onclick(r)})}if(b=this.title&&""!==this.title){k=document.createElement("h1");k.className="ab-title";k.id=ra.bb();f.setAttribute("aria-labelledby",k.id);if(g){var m=document.createElement("a");m.setAttribute("href",this.url);m.onclick=d;m.appendChild(document.createTextNode(this.title));k.appendChild(m)}else k.appendChild(document.createTextNode(this.title));h.appendChild(k)}k=document.createElement("div");
|
|
k.className=b?"ab-description":"ab-description ab-no-title";k.id=ra.bb();f.setAttribute("aria-describedby",k.id);k.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),k.appendChild(b));h.appendChild(k);f.appendChild(h);h=document.createElement("div");h.className="ab-unread-indicator";this.viewed&&
|
|
(h.className+=" read");f.appendChild(h);return this.yg=f};p.tc=function(a){var b="";this.title||this.description||(b="Feed Image");a.setAttribute("alt",b)};p.Ve=function(){if(this.dismissible&&!this.dismissed){this.Ce&&this.Ce(this);var a=this.yg;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)},mc))},nc))}};
|
|
var dc=-1,fc={Sb:"captioned_image",re:"text_announcement",bc:"short_news",Rb:"banner_image",Pc:"control"},U={va:"id",ya:"v",ua:"db",me:"r",ba:"ca",ka:"p",aa:"ea",ia:"e",TYPE:"tp",wa:"i",Ta:"tt",Pa:"ds",URL:"u",xa:"dm",ra:"ar",sa:"cl",V:"t"},V={va:"id",ya:"v",ua:"db",Wb:"cr",ba:"ca",ka:"p",Tb:"t",aa:"ea",ia:"e",TYPE:"tp",wa:"i",Ta:"tt",Pa:"ds",URL:"u",xa:"dm",ra:"ar",sa:"cl",V:"s"},mc=400;K.Card=$b;K.Card.prototype.dismissCard=$b.prototype.Ve;K.Card.prototype.subscribeToClickedEvent=$b.prototype.Ob;
|
|
K.Card.prototype.subscribeToDismissedEvent=$b.prototype.Ud;K.Card.prototype.removeSubscription=$b.prototype.N;K.Card.prototype.removeAllSubscriptions=$b.prototype.J;function ic(a,b,c,d,e,f,g,h,k,l,m,r,q,v){$b.call(this,a,b,null,c,null,d,e,f,g,h,k,l,m,r,q,v);this.zc="ab-banner";this.Cc=!1}pa(ic,$b);ic.prototype.A=function(){var a={};a[V.TYPE]=fc.Rb;a[V.va]=this.id;a[V.ya]=this.viewed;a[V.wa]=this.imageUrl;a[V.ba]=this.updated;a[V.Wb]=this.created;a[V.Tb]=this.categories;a[V.aa]=this.expiresAt;a[V.URL]=this.url;a[V.xa]=this.linkText;a[V.ra]=this.aspectRatio;a[V.ia]=this.extras;a[V.ka]=this.pinned;a[V.ua]=this.dismissible;a[V.sa]=this.clicked;a[V.V]=this.test;return a};
|
|
K.Banner=ic;function hc(a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A){$b.call(this,a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A);this.zc="ab-captioned-image";this.Cc=!0}pa(hc,$b);
|
|
hc.prototype.A=function(){var a={};a[V.TYPE]=fc.Sb;a[V.va]=this.id;a[V.ya]=this.viewed;a[V.Ta]=this.title;a[V.wa]=this.imageUrl;a[V.Pa]=this.description;a[V.ba]=this.updated;a[V.Wb]=this.created;a[V.Tb]=this.categories;a[V.aa]=this.expiresAt;a[V.URL]=this.url;a[V.xa]=this.linkText;a[V.ra]=this.aspectRatio;a[V.ia]=this.extras;a[V.ka]=this.pinned;a[V.ua]=this.dismissible;a[V.sa]=this.clicked;a[V.V]=this.test;return a};K.CaptionedImage=hc;function gc(a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A){$b.call(this,a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A);this.zc="ab-classic-card";this.Cc=!0}pa(gc,$b);
|
|
gc.prototype.A=function(){var a={};a[V.TYPE]=fc.bc;a[V.va]=this.id;a[V.ya]=this.viewed;a[V.Ta]=this.title;a[V.wa]=this.imageUrl;a[V.Pa]=this.description;a[V.ba]=this.updated;a[V.Wb]=this.created;a[V.Tb]=this.categories;a[V.aa]=this.expiresAt;a[V.URL]=this.url;a[V.xa]=this.linkText;a[V.ra]=this.aspectRatio;a[V.ia]=this.extras;a[V.ka]=this.pinned;a[V.ua]=this.dismissible;a[V.sa]=this.clicked;a[V.V]=this.test;return a};K.ClassicCard=gc;function jc(a,b,c,d,e,f){$b.call(this,a,b,null,null,null,null,c,null,d,null,null,null,e,f,null);this.zc="ab-control-card";this.Cc=!1}pa(jc,$b);jc.prototype.A=function(){var a={};a[V.TYPE]=fc.Pc;a[V.va]=this.id;a[V.ya]=this.viewed;a[V.ba]=this.updated;a[V.aa]=this.expiresAt;a[V.ia]=this.extras;a[V.ka]=this.pinned;a[V.V]=this.test;return a};K.ControlCard=jc;function oc(a){a=parseInt(a);return!isNaN(a)&&0===(a&4278190080)>>>24}function pc(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(tb.Xa===mb.Yb?8<tb.version:1)?"rgba("+[e,d,c,((a&4278190080)>>>24)/255*b].join()+")":"rgb("+[e,d,c].join()+")"};function X(a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A,I,z,G,F,D,H,M,N,aa,ha,n,u,y,B,P){this.message=a;this.messageAlignment=b||qc;this.duration=r||5E3;this.slideFrom=c||rc;this.extras=d||{};this.campaignId=e;this.cardId=f;this.triggerId=g;this.clickAction=h||sc;this.uri=k;this.openTarget=l||tc;this.dismissType=m||uc;this.icon=q;this.imageUrl=v;this.imageStyle=t||vc;this.iconColor=A||wc.kd;this.iconBackgroundColor=I||wc.Yd;this.backgroundColor=z||wc.kd;this.textColor=G||wc.ae;this.closeButtonColor=F||wc.Lf;this.animateIn=
|
|
D;null==this.animateIn&&(this.animateIn=!0);this.animateOut=H;null==this.animateOut&&(this.animateOut=!0);this.header=M;this.headerAlignment=N||qc;this.headerTextColor=aa||wc.ae;this.frameColor=ha||wc.og;this.buttons=n||[];this.cropType=u||xc;this.orientation=y;this.htmlId=B;this.css=P;this.ye=this.Va=this.ze=!1;this.W=new Kb;this.ic=new Kb}p=X.prototype;p.Ha=function(){return!0};p.qf=function(){return this.Ha()};function yc(a){return null!=a.htmlId&&4<a.htmlId.length}
|
|
function zc(a){return yc(a)&&null!=a.css&&0<a.css.length}function Ac(a){if(yc(a)&&zc(a))return a.htmlId+"-css"}p.Ob=function(a){return Lb(this.W,a)};p.Ud=function(a){return Lb(this.ic,a)};p.N=function(a){this.W.N(a);this.ic.N(a)};p.J=function(){this.W.J();this.ic.J()};p.Md=function(){return this.ze?!1:this.ze=!0};p.fb=function(){return this.Va?!1:(this.Va=!0,Mb(this.W),!0)};p.Ld=function(){return this.ye?!1:(this.ye=!0,Mb(this.ic),!0)};
|
|
function Bc(a){if(a.is_control)return new Cc(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,k=a.trigger_id,l=a.click_action,m=a.uri,r=a.open_target,q=a.message_close,v=a.duration,t=a.icon,A=a.image_url,I=a.image_style,z=a.icon_color,G=a.icon_bg_color,F=a.bg_color,D=a.text_color,H=a.close_btn_color,M=a.header,N=a.text_align_header,aa=a.header_text_color,ha=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 Dc(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,W=a.css;if(null==R||""===R||null==W||""===W)W=R=void 0;if(b===Ec||b===Fc)c=new Gc(c,d,f,g,h,k,l,m,r,q,v,t,A,I,z,G,F,D,H,B,P,M,N,aa,ha,n,u,R,W);else if(b===Hc)c=new Ic(c,d,f,g,h,k,l,m,r,q,v,t,A,I,z,G,F,D,H,B,P,M,N,aa,ha,n,u,y,R,W);else if(b===Jc)c=new Kc(c,d,e,f,g,h,k,l,m,r,q,v,t,A,z,G,F,D,H,B,P,R,
|
|
W);else if(b===Lc||b===Mc)c=new Nc(c,f,g,h,k,q,v,B,P,ha,R,W,a.message_fields),c.Gh=a.trusted||!1;else{w.error("Ignoring message with unknown type "+b);return}c.ff=b;return c}function Oc(a,b){if(b&&b.parentNode){var c=b.closest(".ab-iam-root");null==c&&(c=b);a.Ha()&&null!=c.parentNode&&((b=c.parentNode.classList)&&b.contains(Pc)&&b.remove(Pc),document.body.removeEventListener("touchmove",Qc));c.className=c.className.replace(Rc,Sc)}return a.animateOut}
|
|
function Tc(a,b,c){if(null!=b){a.nc=null;var d=-1===b.className.indexOf("ab-in-app-message")?b.getElementsByClassName("ab-in-app-message")[0]:b;var e=!1;d&&(e=Oc(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!=Ac(a)&&(h=document.getElementById(Ac(a)))&&h.parentNode&&h.parentNode.removeChild(h);null!=f&&"Safari"===tb.Xa&&(f.scrollTop=g);c?c():a.Ld()};e?setTimeout(d,
|
|
Uc):d();a.oc&&a.oc.focus()}}p.Re=function(){Tc(this,this.nc)};
|
|
p.Z=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.Ha()&&(h.className+=" ab-modal-interactions",h.setAttribute("tabindex","-1"));zc(this)||(h.style.color=pc(this.textColor),h.style.backgroundColor=pc(this.backgroundColor),oc(this.backgroundColor)&&(h.className+=" ab-no-shadow"));
|
|
this.imageStyle===Vc&&(h.className+=" graphic");this.orientation===Wc&&(h.className+=" landscape");0===this.buttons.length&&(this.clickAction!==sc&&(h.className+=" ab-clickable"),h.onclick=function(q){Tc(g,h,function(){a.Fc(g);g.clickAction===Xc?Zb.openUri(g.uri,q,d||g.openTarget===Yc):g.clickAction===Zc&&b()});q.stopPropagation();return!1});var k=Yb("Close Message",zc(this)?void 0:pc(this.closeButtonColor),function(){Tc(g,h)});h.appendChild(k);e&&(k.style.zIndex=e+2);e=document.createElement("div");
|
|
e.className="ab-message-text";e.className+=" "+(this.messageAlignment||this.yd).toLowerCase()+"-aligned";k=!1;var l=document.createElement("div");l.className="ab-image-area";if(this.imageUrl){if(this.cropType===$c){var m=document.createElement("span");m.className="ab-center-cropped-img";m.style.backgroundImage="url("+this.imageUrl+")";m.setAttribute("role","img");this.tc(m);l.appendChild(m)}else m=document.createElement("img"),m.setAttribute("src",this.imageUrl),this.tc(m),k=!0,m.onload=f,setTimeout(f,
|
|
1E3),l.appendChild(m);h.appendChild(l);e.className+=" ab-with-image"}else if(this.icon){l.className+=" ab-icon-area";m=document.createElement("span");m.className="ab-icon";zc(this)||(m.style.backgroundColor=pc(this.iconBackgroundColor),m.style.color=pc(this.iconColor));var r=document.createElement("i");r.className="fa";r.appendChild(document.createTextNode(this.icon));r.setAttribute("aria-hidden",!0);m.appendChild(r);l.appendChild(m);h.appendChild(l);e.className+=" ab-with-icon"}Pb(e,"touchstart",
|
|
function(){});this.header&&0<this.header.length&&(l=document.createElement("h1"),l.className="ab-message-header",this.od=ra.bb(),l.id=this.od,l.className+=" "+(this.headerAlignment||qc).toLowerCase()+"-aligned",zc(this)||(l.style.color=pc(this.headerTextColor)),l.appendChild(document.createTextNode(this.header)),e.appendChild(l));e.appendChild(this.Qe());h.appendChild(e);k||f();return this.nc=h};p.Qe=function(){return document.createTextNode(this.message)};
|
|
p.tc=function(a){var b="";this.message||this.header||!this.Ha()||(b="Modal Image");a.setAttribute("alt",b)};function Qc(a){a.targetTouches&&1<a.targetTouches.length||a.target.classList&&a.target.classList.contains("ab-message-text")&&a.target.scrollHeight>a.target.clientHeight||a.preventDefault()}
|
|
p.Gc=function(a){this.Ha()&&null!=a.parentNode&&this.orientation!==Wc&&(null!=a.parentNode.classList&&a.parentNode.classList.add(Pc),document.body.addEventListener("touchmove",Qc,Nb()?{passive:!1}:!1));a.className+=" "+Rc};p.na=function(){var a="";this.animateIn&&(a+=" ab-animate-in");this.animateOut&&(a+=" ab-animate-out");return a};
|
|
var wc={ae:4281545523,kd:4294967295,Yd:4278219733,Mf:4293914607,Nf:4283782485,og:3224580915,Lf:4288387995},ad={ee:"hd",uf:"ias",kg:"of",Of:"do",wb:"umt",ub:"tf",fe:"te"},rc="BOTTOM",bd={TOP:"TOP",BOTTOM:rc},Zc="NEWS_FEED",Xc="URI",sc="NONE",cd={NEWS_FEED:Zc,URI:Xc,NONE:sc},uc="AUTO_DISMISS",dd={AUTO_DISMISS:uc,MANUAL:"SWIPE"},tc="NONE",Yc="BLANK",ed={NONE:tc,BLANK:Yc},vc="TOP",Vc="GRAPHIC",fd={TOP:vc,GRAPHIC:Vc},Wc="LANDSCAPE",gd={PORTRAIT:"PORTRAIT",LANDSCAPE:Wc},qc="CENTER",hd={START:"START",CENTER:qc,
|
|
END:"END"},$c="CENTER_CROP",xc="FIT_CENTER",id={CENTER_CROP:$c,FIT_CENTER:xc},Jc="SLIDEUP",Ec="MODAL",Fc="MODAL_STYLED",Hc="FULL",Lc="WEB_HTML",Mc="HTML",Uc=500,Rc="ab-show",Sc="ab-hide",Pc="ab-pause-scrolling";K.InAppMessage=X;K.InAppMessage.SlideFrom=bd;K.InAppMessage.ClickAction=cd;K.InAppMessage.DismissType=dd;K.InAppMessage.OpenTarget=ed;K.InAppMessage.ImageStyle=fd;K.InAppMessage.TextAlignment=hd;K.InAppMessage.Orientation=gd;K.InAppMessage.CropType=id;
|
|
K.InAppMessage.prototype.subscribeToClickedEvent=X.prototype.Ob;K.InAppMessage.prototype.subscribeToDismissedEvent=X.prototype.Ud;K.InAppMessage.prototype.removeSubscription=X.prototype.N;K.InAppMessage.prototype.removeAllSubscriptions=X.prototype.J;K.InAppMessage.prototype.closeMessage=X.prototype.Re;function Dc(a,b,c,d,e,f,g){this.text=a||"";this.backgroundColor=b||wc.Yd;this.textColor=c||wc.kd;this.borderColor=d||this.backgroundColor;this.clickAction=e||sc;this.uri=f;null==g&&(g=jd);this.id=g;this.Va=!1;this.W=new Kb}Dc.prototype.Ob=function(a){return Lb(this.W,a)};Dc.prototype.N=function(a){this.W.N(a)};Dc.prototype.J=function(){this.W.J()};Dc.prototype.fb=function(){return this.Va?!1:(this.Va=!0,Mb(this.W),!0)};var jd=-1;K.InAppMessageButton=Dc;
|
|
K.InAppMessageButton.prototype.subscribeToClickedEvent=Dc.prototype.Ob;K.InAppMessageButton.prototype.removeSubscription=Dc.prototype.N;K.InAppMessageButton.prototype.removeAllSubscriptions=Dc.prototype.J;function Cc(a){this.triggerId=a}K.ControlMessage=Cc;function kd(a){var b=a.querySelectorAll(".ab-close-button, .ab-message-button");if(0<b.length){var c=b[0],d=b[b.length-1];a.addEventListener("keydown",function(e){var f=document.activeElement;9===e.keyCode&&(e.shiftKey||f!==d&&f!==a?!e.shiftKey||f!==c&&f!==a||(e.preventDefault(),d.focus()):(e.preventDefault(),c.focus()))})}}function ld(a,b){b.setAttribute("role","dialog");b.setAttribute("aria-modal",!0);b.setAttribute("aria-label","Modal Message");a&&b.setAttribute("aria-labelledby",a)}
|
|
function md(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(r){return function(q){Tc(a,d,function(){b.Ec(r,a);r.clickAction===Xc?Zb.openUri(r.uri,q,e||a.openTarget===Yc):r.clickAction===Zc&&c()});q.stopPropagation();return!1}};for(var h=0;h<a.buttons.length;h++){var k=a.buttons[h],l=document.createElement("button");l.className=
|
|
"ab-message-button";l.setAttribute("type","button");Pb(l,"touchstart",function(){});var m=k.text;""===k.text&&(m="\u00a0");l.appendChild(document.createTextNode(m));zc(a)||(l.style.backgroundColor=pc(k.backgroundColor),l.style.color=pc(k.textColor),l.style.borderColor=pc(k.borderColor));l.onclick=g(k);f.appendChild(l)}}};function Ic(a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A,I,z,G,F,D,H,M,N,aa,ha,n,u,y,B){n=n||$c;X.call(this,a,b,null,c,d,e,f,g,h,k,l||"SWIPE",m,r,q,v,t,A,I,z,G,F,D,H,M,N,aa,ha,n,u||"PORTRAIT",y,B)}pa(Ic,X);Ic.prototype.Z=function(a,b,c,d,e,f){this.oc=document.activeElement;b=X.prototype.Z.call(this,a,c,d,e,f);b.className+=" ab-fullscreen ab-centered";md(this,a,c,b,e);kd(b);ld(this.od,b);return b};Ic.prototype.na=function(){return X.prototype.na.call(this)+" ab-effect-fullscreen"};
|
|
ia.Object.defineProperties(Ic.prototype,{yd:{configurable:!0,enumerable:!0,get:function(){return qc}}});K.FullScreenMessage=Ic;var nd=new function(){this.Te=".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;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}.ab-centering-div .ab-in-app-message .ab-message-text.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-text.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-text.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-button,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-message-header,.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-centering-div .ab-in-app-message .ab-message-header.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-header.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-header.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-centering-div .ab-in-app-message.ab-slideup,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-centering-div .ab-in-app-message.ab-slideup,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron),.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:50px;max-height:50px;width:auto}.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;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;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-centering-div .ab-in-app-message .ab-message-button:first-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-centering-div .ab-in-app-message .ab-message-button:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-centering-div .ab-in-app-message .ab-message-button:first-of-type:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-centering-div .ab-in-app-message .ab-message-button:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-centering-div .ab-in-app-message .ab-message-button:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-centering-div .ab-in-app-message .ab-message-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-button:active:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-centering-div .ab-in-app-message .ab-message-button:focus:after,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-centering-div .ab-in-app-message .ab-message-button a,.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-centering-div .ab-in-app-message img,.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-centering-div .ab-in-app-message .ab-icon,.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-centering-div .ab-in-app-message .ab-icon .fa,.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-centering-div .ab-start-hidden,.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-centering-div .ab-centered,.ab-centering-div.ab-centering-div .ab-modal,.ab-iam-root.v3 .ab-centered,.ab-iam-root.v3.ab-centering-div .ab-modal{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-email-capture,.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-email-capture .ab-page-blocker,.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1040;pointer-events:all;background-color:rgba(51,51,51,.75)}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-capture-input{margin-bottom:30px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text{max-height:541px;margin-bottom:160px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text.with-explanatory-link{max-height:513px;margin-bottom:188px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text{max-height:385.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text.with-explanatory-link{max-height:357.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-validation-error{margin-top:62px}.ab-email-capture .ab-in-app-message.ab-modal .ab-explanatory-link{display:block}.ab-email-capture .ab-in-app-message.ab-modal .ab-background,.ab-email-capture .ab-in-app-message.ab-modal .ab-mask{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.ab-email-capture .ab-in-app-message.ab-modal .ab-close-button{line-height:normal}.ab-email-capture .ab-in-app-message.ab-modal .ab-html-close-button{right:3px;top:-1px;font-size:34px;padding-top:0}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:50px;max-height:50px;width:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:1050;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;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;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px;padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"};function od(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 pd(a){return a&&(a=a.toString().toLowerCase(),0===a.lastIndexOf("javascript:",0)||0===a.lastIndexOf("data:",0))?!0:!1};function Nc(a,b,c,d,e,f,g,h,k,l,m,r,q){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"')&&(k=h=!0);X.call(this,a,null,null,b,c,d,e,null,null,null,f||"SWIPE",g,null,null,null,null,null,null,null,null,h,k,null,null,null,l,void 0,void 0,void 0,m,r);this.messageFields=q}pa(Nc,X);Nc.prototype.qf=function(){return!1};
|
|
Nc.prototype.fb=function(a){if(this.ff===Lc){if(this.Va)return!1;this.Va=!0}Mb(this.W,a);return!0};
|
|
Nc.prototype.Z=function(a,b,c,d,e,f){function g(l){var m=l.getAttribute("href"),r=l.onclick;return function(q){if(null==r||"function"!==typeof r||!1!==r()){var v=od(m).abButtonId;if(null==v||""===v)v=l.getAttribute("id");if(null!=m&&""!==m&&0!==m.indexOf("#")){var t="blank"===(l.getAttribute("target")||"").toLowerCase().replace("_",""),A=e||h.openTarget===Yc||t;t=function(){a.Ib(h,v,m);Zb.openUri(m,q,A)};A?t():Tc(h,k,t)}else a.Ib(h,v,m);q.stopPropagation();return!1}}}var h=this;this.oc=document.activeElement;
|
|
var k=document.createElement("iframe");k.setAttribute("title","Modal Message");f&&(k.style.zIndex=f+1);k.onload=function(){function l(z){return function(){var G=arguments;Tc(h,k,function(){b.display[z].apply(b.display,Array.prototype.slice.call(G))})}}function m(z){return function(){var G=b.getUser();G[z].apply(G,Array.prototype.slice.call(arguments))}}function r(z){return function(){b[z].apply(b,Array.prototype.slice.call(arguments))}}var q=null,v=a.Xg();if(null!=v){q=document.createElement("html");
|
|
q.innerHTML=h.message;for(var t=q.getElementsByTagName("style"),A=0;A<t.length;A++)t[A].setAttribute("nonce",v);t=q.getElementsByTagName("script");for(A=0;A<t.length;A++)t[A].setAttribute("nonce",v)}k.contentWindow.focus();k.contentWindow.document.write(q?q.innerHTML:h.message);q=k.contentWindow.document.getElementsByTagName("head")[0];null!=q&&(t=document.createElement("style"),t.innerHTML=nd.Te,null!=v&&t.setAttribute("nonce",v),q.appendChild(t),zc(h)&&(t=document.createElement("style"),t.innerHTML=
|
|
h.css,t.id=Ac(h),null!=v&&t.setAttribute("nonce",v),q.appendChild(t)),v=k.contentWindow.document.createElement("base"),v.setAttribute("target","_parent"),q.appendChild(v));v=k.contentWindow.document.getElementsByTagName("title");0<v.length&&k.setAttribute("title",v[0].textContent);v={closeMessage:function(){Tc(h,k)},logClick:function(){var z=[h];0<arguments.length&&z.push(arguments[0]);b.logInAppMessageHtmlClick.apply(b,z)},display:{},web:{}};q=["requestImmediateDataFlush","logCustomEvent","logPurchase",
|
|
"unregisterAppboyPushMessages"];for(t=0;t<q.length;t++)v[q[t]]=r(q[t]);q="setFirstName setLastName setEmail setGender setDateOfBirth setCountry setHomeCity setEmailNotificationSubscriptionType setLanguage addAlias setPushNotificationSubscriptionType setPhoneNumber setCustomUserAttribute addToCustomAttributeArray removeFromCustomAttributeArray incrementCustomUserAttribute setCustomLocationAttribute".split(" ");var I={};for(t=0;t<q.length;t++)I[q[t]]=m(q[t]);v.getUser=function(){return I};q=["showFeed"];
|
|
for(t=0;t<q.length;t++)v.display[q[t]]=l(q[t]);q=["registerAppboyPushMessages","trackLocation"];for(t=0;t<q.length;t++)v.web[q[t]]=r(q[t]);k.contentWindow.appboyBridge=v;k.contentWindow.brazeBridge=v;if(h.ff!==Mc){q=k.contentWindow.document.getElementsByTagName("a");for(t=0;t<q.length;t++)q[t].onclick=g(q[t]);q=k.contentWindow.document.getElementsByTagName("button");for(t=0;t<q.length;t++)q[t].onclick=g(q[t])}q=k.contentWindow.document.body;null!=q&&(yc(h)&&(q.id=h.htmlId),t=document.createElement("hidden"),
|
|
t.onclick=v.closeMessage,t.className="ab-programmatic-close-button",q.appendChild(t));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"===tb.fa?(c=document.createElement("div"),c.className="ab-ios-scroll-wrapper",c.appendChild(k),this.nc=c):this.nc=
|
|
k};Nc.prototype.na=function(){return X.prototype.na.call(this)+" ab-effect-html"};K.HtmlMessage=Nc;function Gc(a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A,I,z,G,F,D,H,M,N,aa,ha,n,u,y){n=n||xc;X.call(this,a,b,null,c,d,e,f,g,h,k,l||"SWIPE",m,r,q,v,t,A,I,z,G,F,D,H,M,N,aa,ha,n,void 0,u,y)}pa(Gc,X);Gc.prototype.Z=function(a,b,c,d,e,f){this.oc=document.activeElement;b=X.prototype.Z.call(this,a,c,d,e,f);b.className+=" ab-modal ab-centered";md(this,a,c,b,e);kd(b);ld(this.od,b);return b};Gc.prototype.na=function(){return X.prototype.na.call(this)+" ab-effect-modal"};
|
|
ia.Object.defineProperties(Gc.prototype,{yd:{configurable:!0,enumerable:!0,get:function(){return qc}}});K.ModalMessage=Gc;function Kc(a,b,c,d,e,f,g,h,k,l,m,r,q,v,t,A,I,z,G,F,D,H,M){z=z||wc.Nf;I=I||wc.Mf;X.call(this,a,b||"START",c,d,e,f,g,h,k,l,m,r,q,v,null,t,A,I,z,G,F,D,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H,M)}pa(Kc,X);p=Kc.prototype;p.Ha=function(){return!1};
|
|
p.Z=function(a,b,c,d,e,f){var g=X.prototype.Z.call(this,a,c,d,e,f);g.className+=" ab-slideup";var h=g.getElementsByClassName("ab-close-button")[0];null!=h&&(a=Xb("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",zc(this)?void 0:pc(this.closeButtonColor)),a.setAttribute("class","ab-chevron"),h.appendChild(a));Sb(g,Tb,function(l){g.className+=" ab-swiped-left";h.onclick(l)});Sb(g,Ub,function(l){g.className+=" ab-swiped-right";h.onclick(l)});if("TOP"===this.slideFrom){a=
|
|
Vb;var k=" ab-swiped-up"}else a=Wb,k=" ab-swiped-down";Sb(g,a,function(l){g.className+=k;h.onclick(l)});return g};p.Qe=function(){var a=document.createElement("span");a.appendChild(document.createTextNode(this.message));return a};p.Gc=function(a){var b=a.getElementsByClassName("ab-in-app-message")[0];Qb(b,!0,!0)||("TOP"===this.slideFrom?b.style.top="0px":b.style.bottom="0px");X.prototype.Gc.call(this,a)};p.na=function(){return X.prototype.na.call(this)+" ab-effect-slide"};
|
|
ia.Object.defineProperties(Kc.prototype,{yd:{configurable:!0,enumerable:!0,get:function(){return"START"}}});K.SlideUpMessage=Kc;function qd(a,b){rd={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==rd[a]){var c=a.indexOf("-");0<c&&(a=a.substring(0,c))}null==rd[a]&&(a="Braze does not yet have a localization for language "+a+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.",b?w.error(a):w.info(a),a="en");sd=a}var rd,sd;function td(a,b){this.cards=a;this.lastUpdated=b}p=td.prototype;p.Ze=function(){for(var a=0,b=0;b<this.cards.length;b++)this.cards[b].viewed||a++;return a};function ud(a,b){b&&(b.className=b.className.replace("ab-show","ab-hide"),setTimeout(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},nc));var c=b.getAttribute(vd);null!=c&&a.N(c)}p.Ka=function(a,b){a.Ka(b)};p.Ja=function(a,b){a.Ja(b)};
|
|
function wd(a,b,c){var d=document.createElement("div");d.className="ab-feed-body";if(null==a.lastUpdated){c=document.createElement("div");c.className="ab-no-cards-message";var e=document.createElement("i");e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner";c.appendChild(e);d.appendChild(c)}else{e=!1;for(var f=function(l){a.Ja(b,l)},g=function(l){b.Dc(l)},h=0;h<a.cards.length;h++){var k=a.cards[h]instanceof jc;!k||a instanceof xd?(d.appendChild(a.cards[h].Z(f,g,c)),e=e||!k):w.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}e||
|
|
(c=document.createElement("div"),c.className="ab-no-cards-message",c.innerHTML=rd[sd].NO_CARDS_MESSAGE,d.appendChild(c))}return d}
|
|
function yd(a,b,c){if(null!=c){var d=[];c=c.querySelectorAll(".ab-card");a.md||(a.md={});for(var e=0;e<c.length;e++){var f=c[e].getAttribute("data-ab-card-id");if(!a.md[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 k=g,l=h,m=Qb(c[e],!0,!1,!1),r=Qb(c[e],!1,!0,!1);if(!g&&m){g=!0;var q=c[e];null!=q&&q.setAttribute("data-ab-had-top-impression",!0)}!h&&r&&(h=!0,q=c[e],null!=q&&q.setAttribute("data-ab-had-bottom-impression",
|
|
!0));if(g&&h&&(m||r||lc(c[e]),!k||!l))for(g=0;g<a.cards.length;g++)if(a.cards[e].id===f){a.md[a.cards[e].id]=!0;d.push(a.cards[e]);break}}}0<d.length&&a.Ka(b,d)}}p.Le=function(a){a.Jc()};
|
|
function zd(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(Ad,e);setTimeout(function(){if(c.getAttribute(Ad)===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=rd[sd].FEED_TIMEOUT_MESSAGE,f.parentNode.appendChild(g),
|
|
f.parentNode.removeChild(f));"true"===c.getAttribute("aria-busy")&&c.setAttribute("aria-busy","false")}},Bd);a.Le(b)}
|
|
p.Z=function(a,b){function c(l){zd(e,a,f);l.stopPropagation()}function d(l){ud(a,f);l.stopPropagation()}var e=this,f=document.createElement("div");f.className="ab-feed ab-hide ab-effect-slide";f.setAttribute("tabindex","-1");f.setAttribute("aria-label","Feed");f.setAttribute("role","feed");var g=document.createElement("div");g.className="ab-feed-buttons-wrapper";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(l){32!==l.keyCode&&13!==l.keyCode||d(l)});h.onclick=d;var k=document.createElement("i");k.className="fa fa-refresh ab-refresh-button";null==this.lastUpdated&&(k.className+=" fa-spin");k.setAttribute("aria-label","Refresh Feed");k.setAttribute("tabindex","0");k.setAttribute("role","button");k.addEventListener("keydown",function(l){32!==l.keyCode&&13!==l.keyCode||c(l)});k.onclick=c;g.appendChild(k);g.appendChild(h);f.appendChild(wd(this,
|
|
a,b));f.onscroll=function(){yd(e,a,f)};return f};function Cd(a,b,c,d,e,f){if(Da(b)){for(var g=[],h=0;h<b.length;h++)b[h]instanceof $b&&g.push(b[h]);a.cards=g;a.lastUpdated=c;null!=d&&(d.setAttribute("aria-busy","false"),null==a.lastUpdated?ud(e,d):(b=d.querySelectorAll(".ab-feed-body")[0],null!=b&&(f=wd(a,e,f),b.parentNode.replaceChild(f,b),yd(a,e,f.parentNode))))}}var nc=500,vd="data-update-subscription-id",Ad="data-last-requested-refresh",Bd=1E4;K.Feed=td;K.Feed.prototype.getUnreadCardCount=td.prototype.Ze;function xd(a,b){td.call(this,a,b)}pa(xd,td);xd.prototype.Yg=function(){return td.prototype.Ze.call(this)};xd.prototype.Ka=function(a,b){a.Ka(b,!0)};xd.prototype.Ja=function(a,b){a.Ja(b,!0)};xd.prototype.Le=function(a){a.La()};K.ContentCards=xd;K.ContentCards.prototype.getUnviewedCardCount=xd.prototype.Yg;function ab(){this.h=!1;this.j=[]};function Dd(a){this.ab=a}Dd.prototype.ea=function(a){return null==this.ab||this.ab===a[0]};Dd.prototype.A=function(){return this.ab};function Ed(a,b,c,d){this.df=a;this.Ic=b;this.kb=c;this.G=d;this.Ic===Fd&&this.kb!==Gd&&this.kb!==Hd&&this.kb!==Id&&this.kb!==Jd&&(this.G=Ka(this.G))}
|
|
Ed.prototype.ea=function(a){var b=null;null!=a&&(b=a[this.df]);switch(this.kb){case Kd:return null!=b&&b.valueOf()===this.G.valueOf();case Ld:return null==b||b.valueOf()!==this.G.valueOf();case Md:return typeof b===typeof this.G&&b>this.G;case Gd:return this.Ic===Fd?null!=b&&Ea(b)&&((new Date).valueOf()-b.valueOf())/1E3<=this.G:typeof b===typeof this.G&&b>=this.G;case Nd:return typeof b===typeof this.G&&b<this.G;case Hd:return this.Ic===Fd?null!=b&&Ea(b)&&((new Date).valueOf()-b.valueOf())/1E3>=this.G:
|
|
typeof b===typeof this.G&&b<=this.G;case Od:return null!=b&&"string"===typeof b&&typeof b===typeof this.G&&null!=b.match(this.G);case Pd:return null!=b;case Qd:return null==b;case Id:return null!=b&&Ea(b)&&(b.valueOf()-(new Date).valueOf())/1E3<this.G;case Jd:return null!=b&&Ea(b)&&(b.valueOf()-(new Date).valueOf())/1E3>this.G;case Rd:return null==b||typeof b!==typeof this.G||"string"!==typeof b||null==b.match(this.G)}return!1};
|
|
Ed.prototype.A=function(){var a=this.G;Ea(this.G)&&(a=Ja(a.valueOf()));return{k:this.df,t:this.Ic,c:this.kb,v:a}};var Kd=1,Ld=2,Md=3,Gd=4,Nd=5,Hd=6,Od=10,Pd=11,Qd=12,Id=15,Jd=16,Rd=17,Fd="date";function Sd(a){this.filters=a}Sd.prototype.ea=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].ea(a)){e=!0;break}if(!e){b=!1;break}}return b};function Td(a){if(null==a||!Da(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 Ed(g.property_key,g.property_type,g.comparator,g.property_value))}b.push(d)}return new Sd(b)}
|
|
Sd.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 Ud(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 Ed(g.k,g.t,g.c,g.v))}b.push(d)}return new Sd(b)};function Vd(a,b){this.ab=a;this.eb=b}Vd.prototype.ea=function(a){if(null==this.ab||null==this.eb)return!1;var b=a[1];return a[0]===this.ab&&this.eb.ea(b)};Vd.prototype.A=function(){return{e:this.ab,pf:this.eb.A()}};function Wd(a,b){this.Ya=a;this.Ab=b}Wd.prototype.ea=function(a){if(null==this.Ya)return!1;var b=Xd(a[0],this.Ya);if(!b)return!1;var c=null==this.Ab||0===this.Ab.length;if(null!=this.Ab)for(var d=0;d<this.Ab.length;d++)if(this.Ab[d]===a[1]){c=!0;break}return b&&c};Wd.prototype.A=function(){return this.Ya};function Yd(a){this.cb=a}Yd.prototype.ea=function(a){return null==this.cb||a[0]===this.cb};Yd.prototype.A=function(){return this.cb};function Zd(a,b){this.cb=a;this.eb=b}Zd.prototype.ea=function(a){if(null==this.cb||null==this.eb)return!1;var b=a[1];return a[0]===this.cb&&this.eb.ea(b)};Zd.prototype.A=function(){return{id:this.cb,pf:this.eb.A()}};function $d(a){this.Ya=a}$d.prototype.ea=function(a){return null==this.Ya?!0:Xd(a[0],this.Ya)};$d.prototype.A=function(){return this.Ya};var ae={OPEN:"open",dd:"purchase",ke:"push_click",Qc:"custom_event",Zb:"iam_click",V:"test"};function be(a,b){this.type=a;this.data=b}function ce(a,b,c){return de[a.type]===b&&(null==a.data||a.data.ea(c))}function Xd(a,b){var c=null;try{c=window.atob(a)}catch(d){return w.info("Failed to unencode analytics id "+a+": "+d.message),!1}return b===c.split("_")[0]}
|
|
function ee(a){var b=a.type;switch(b){case fe:var c=null;break;case ge:a=a.data;c=new Yd(a?a.product_id:null);break;case he:a=a.data;c=new Zd(a?a.product_id:null,a?Td(a.property_filters):null);break;case ie:a=a.data;c=new $d(a?a.campaign_id:null);break;case je:a=a.data;c=new Dd(a?a.event_name:null);break;case ke:a=a.data;c=new Vd(a?a.event_name:null,a?Td(a.property_filters):null);break;case le:a=a.data;c=new Wd(a?a.id:null,a?a.buttons:null);break;case me:c=null}return new be(b,c)}
|
|
be.prototype.A=function(){return{t:this.type,d:this.data?this.data.A():null}};function ne(a){switch(a.t){case fe:var b=null;break;case ge:b=new Yd(a.d);break;case he:b=a.d||{};b=new Zd(b.id,Ud(b.pf||[]));break;case ie:b=new $d(a.d);break;case je:b=new Dd(a.d);break;case ke:b=a.d||{};b=new Vd(b.e,Ud(b.pf||[]));break;case le:b=new Wd(a.d);break;case me:b=null}return new be(a.t,b)}
|
|
var fe="open",ge="purchase",he="purchase_property",ie="push_click",je="custom_event",ke="custom_event_property",le="iam_click",me="test",de={};de[fe]=ae.OPEN;de[ge]=ae.dd;de[he]=ae.dd;de[ie]=ae.ke;de[je]=ae.Qc;de[ke]=ae.Qc;de[le]=ae.Zb;de[me]=ae.V;function oe(a,b,c,d,e,f,g,h,k,l,m,r){this.id=a;this.lb=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.$a=h||0;null==l&&(l=1E3*(this.$a+30));this.Ma=l;this.data=g;null==k&&(k=pe);this.Kb=k;this.cf=m;this.Ba=r||null}
|
|
function qe(a,b){var c=(new Date).valueOf()-b;(b=null==b||isNaN(c)||null==a.Ma||c<a.Ma)||w.info("Trigger action "+a.type+" is no longer eligible for display - fired "+c+"ms ago and has a timeout of "+a.Ma+"ms");return!b}oe.prototype.A=function(){for(var a=[],b=0;b<this.lb.length;b++)a.push(this.lb[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.$a,r:this.Kb,tm:this.Ma,ss:this.cf,ld:this.Ba}};
|
|
function re(a){for(var b=[],c=0;c<a.c.length;c++)b.push(ne(a.c[c]));return new oe(a.i,b,Ma(a.s),Ma(a.e),a.p,a.t,a.da,a.d,a.r,a.tm,a.ss,a.ld)}var pe=-1,se={Uc:"inapp",qe:"templated_iam"};function te(a,b){a=Math.ceil(a);b=Math.floor(b);return Math.floor(Math.random()*(b-a+1))+a};function ue(a){var b,c=!1;try{if(window.XMLHttpRequest&&(b=new XMLHttpRequest)&&"undefined"!==typeof b.withCredentials||("undefined"!==typeof XDomainRequest?(b=new XDomainRequest,c=b.async=!0):w.error("This browser does not have any supported ajax options!")),null!=b){var d=function(){"function"===typeof a.error&&a.error(b.status);"function"===typeof a.vc&&a.vc(!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 k=JSON.parse(b.responseText)}catch(l){a.h({error:""===b.responseText?"empty_response":"invalid_json_response",response:b.responseText})}k&&a.h(k)}"function"===typeof a.vc&&a.vc(!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){w.error("Network request error: "+h.message)}};function ve(a,b,c,d,e,f,g,h,k,l,m,r){var q=this;this.$=a;this.Cg=b;this.He=c;this.xg=d;this.xb=e;this.ib=0;this.kc=l.R.Xe;this.Be=null;this.F=f;this.hc=g;this.f=h;this.I=k;this.b=l;this.ca=r;this.vg=m;this.qd=new Kb;this.sg=50;this.Ua=0;we(this.ca,function(){q.Ua=0});this.ug=1E3;this.tg=6E4}
|
|
function xe(a,b){var c=ye(a.hc),d=c.wc(),e=S(a.b,O.Xb);Ia(e,d)||(b.device=d);b.api_key=a.$;b.time=Ja((new Date).valueOf(),!0);b.sdk_version=a.Cg;a.He&&(b.sdk_flavor=a.He);b.app_version=a.xg;b.device_id=c.id;return b}
|
|
function ze(a,b,c,d){var e=c.auth_error,f=c.error;if(!e&&!f)return!0;if(e){a.Ua+=1;c={errorCode:e.error_code};d=ca(d);for(f=d.next();!f.done;f=d.next())f=f.value,Da(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.ca.pc||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.');
|
|
w.error("SDK Authentication failed "+e);Ae(a,b);Mb(a.ca.se,c);return!1}if(f){e=f;switch(e){case "empty_response":return cb(a.b,[new J(a.f.o(),C.Vc,(new Date).valueOf(),a.F.Cd,{e:"Received successful response with empty body."})]),w.info("Received successful response with empty body."),!1;case "invalid_json_response":return cb(a.b,[new J(a.f.o(),C.Vc,(new Date).valueOf(),a.F.Cd,{e:"Received successful response with invalid JSON: "+c.response})]),w.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.xb;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"}w.error("Backend error: "+e)}return!1}
|
|
function Ce(a,b,c,d,e,f,g,h){null==d&&(d=!0);d&&De(a);var k=yb(a.b),l=Cb(a.b),m=Ee(a.F);if(0<k.length)for(var r=0;r<k.length;r++)k[r].type===C.pe&&(m=!0);if(!h&&!m&&a.Ua>=a.sg)w.info("Declining to flush data due to 50 consecutive authentication failures");else if(h=c||m,!d||0!==k.length||0!==l.length||b||h){var q=!1,v=function(z,G){ue({url:""+a.xb+"/data/",data:z,headers:G,h:function(F){null!=z.respond_with&&z.respond_with.triggers&&(a.ib=Math.max(a.ib-1,0));if(ze(a,z,F,G)){a.Ua=0;var D=a.I;if(null!=
|
|
F&&null!=F.config){var H=F.config;if(H.time>Fe(D).Gb){H=new Ge(H.time,H.events_blacklist,H.attributes_blacklist,H.purchases_blacklist,H.messaging_session_timeout,H.vapid_public_key,H.content_cards);var M=!1;null!=H.qa&&Fe(D).qa!==H.qa&&(M=!0);var N=!1;null!=H.Bb.enabled&&(Fe(D).Bb.enabled||!1)!==H.Bb.enabled&&(N=!0);D.qc=H;Q(D.b,O.oe,H.A());M&&Mb(D.vd);N&&Mb(D.te)}}if(null==z.respond_with||z.respond_with.user_id==a.f.o())null!=z.device&&Q(a.b,O.Xb,z.device),a.vg(F),"function"===typeof e&&e()}},error:function(){null!=
|
|
z.respond_with&&z.respond_with.triggers&&(a.ib=Math.max(a.ib-1,0));Ae(a,z);"function"===typeof f&&f()},vc:function(F){"function"===typeof g&&g(F);if(d&&!q){if(F)He(a);else{F=a.Be;if(null==F||F<1E3*a.kc)F=1E3*a.kc;He(a,Math.min(3E5,te(1E3*a.kc,3*F)))}q=!0}}})},t=function(z){return null!=z?z:""},A={};c=t(a.f.o());if(b||h)A[c]=Ie(a,b,h);b=function(z,G){var F=t(G.user_id);A[F]||(A[F]=Ie(a,!1,!1,G.user_id));A[F][z]||(A[F][z]=[]);A[F][z].push(G)};k=ca(k);for(r=k.next();!r.done;r=k.next())b("events",r.value.wc());
|
|
l=ca(l);for(k=l.next();!k.done;k=l.next())b("attributes",k.value);h&&a.ib++;l=!1;h={};for(var I in A)a.ca.pc&&I!==c?Ae(a,A[I]):(h.qb=xe(a,A[I]),h.Mc=Je(a,h.qb),Ke(h.qb,function(z){return function(){return v(z.qb,z.Mc)}}(h)),l=!0),h={qb:h.qb,Mc:h.Mc};d&&!l?He(a):m&&(w.info("Invoking new session subscriptions"),Mb(a.qd))}else He(a),"function"===typeof g&&g(!0)}function Ke(a,b){var c=a.device;c&&c.os_version instanceof Promise?c.os_version.then(function(d){a.device.os_version=d;b()}):b()}
|
|
function Ae(a,b){if(b.events){for(var c=[],d=ca(b.events),e=d.next();!e.done;e=d.next())e=e.value,c.push(new J(e.user_id,e.name,e.time,e.session_id,e.data));cb(a.b,c)}if(b.attributes)for(b=ca(b.attributes),c=b.next();!c.done;c=b.next())Ab(a.b,c.value)}function Le(a,b){var c="HTTP error ";null!=a&&(c+=a+" ");w.error(c+b)}
|
|
function Me(a,b,c,d,e){var f=Ie(a,!1,!1);f=xe(a,f);f.template={trigger_id:b.Na,trigger_event_type:c};null!=d&&(f.template.data=d.wc());var g=Je(a,f);Ke(f,function(){ue({url:""+a.xb+"/template/",data:f,headers:g,h:function(h){ze(a,f,h,g)?(a.Ua=0,null==h||null==h.templated_message?a.L(b.Na,ad.ub):(h=h.templated_message,h.type!==se.Uc?a.L(b.Na,ad.wb):(h=Bc(h.data),null==h?a.L(b.Na,ad.wb):"function"===typeof b.sf?b.sf(h):a.L(b.Na,ad.ub)))):(a.L(b.Na,ad.ub),"function"===typeof b.rf&&b.rf())},error:function(h){var k=
|
|
"getting user personalization for message "+b.Na;if((new Date).valueOf()-b.Ac>b.Ma)a.L(b.Na,ad.ub);else{var l=Math.min(b.Ma,a.tg),m=a.ug;null==e&&(e=m);var r=Math.min(l,te(m,3*e));k+=". Retrying in "+r+"ms";setTimeout(function(){Me(a,b,c,d,r)},r)}Le(h,k)}})})}p=ve.prototype;
|
|
p.La=function(a,b,c,d,e){var f=this,g=xe(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.ca.pc&&(a=S(this.ca.b,O.tb),null!=a&&h.push(["X-Braze-Auth-Signature",a]));Ke(g,function(){ue({url:""+f.xb+"/content_cards/sync",data:g,headers:h,h:function(k){ze(f,g,k,h)?(f.Ua=0,c(k),"function"===typeof d&&d()):"function"===typeof e&&e()},error:function(k){Le(k,
|
|
"retrieving content cards");"function"===typeof e&&e()}})})};function Ie(a,b,c,d){var e={};b&&(e.feed=!0);c&&(e.triggers=!0);b=d||a.f.o();null!=b&&(e.user_id=b);e.config={config_time:Fe(a.I).Gb};return{respond_with:e}}
|
|
function Je(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.ca.pc&&(a=S(a.ca.b,O.tb),null!=a&&c.push(["X-Braze-Auth-Signature",a]));return c}
|
|
function Ne(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)return w.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;var b={};null!=a.cardId&&(b.card_ids=[a.cardId]);null!=a.campaignId&&(b.campaign_ids=[a.campaignId]);null!=a.triggerId&&(b.trigger_ids=[a.triggerId]);return b}function Oe(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 He(a,b){a.ve||(null==b&&(b=1E3*a.kc),De(a),a.lc=setTimeout(function(){if(document.hidden){var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),Ce(a))};document.addEventListener("visibilitychange",c,!1)}else Ce(a)},b),a.Be=b)}function De(a){null!=a.lc&&(clearTimeout(a.lc),a.lc=null)}p.Fd=function(){this.ve=!1;He(this)};p.Db=function(){this.qd.J();this.ca.rd.J();De(this);this.ve=!0;Ce(this,null,null,!1);this.lc=null};function Pe(a,b){Lb(a.qd,b)}
|
|
p.Hc=function(a){var b=this,c=this.F.Cd(),d=bb(this.F);if(c=c!==d)wb(this.b,zb.Rc),wb(this.b,zb.fc);Ce(this,null,!1,null,null,null);ib(this);if(c&&null!=a&&(a.Fb()||a.Ia())){var e=function(){a.zg?w.info("Push token maintenance is disabled, not refreshing token for backend."):a.subscribe()};c=Aa.Ra;wa(new sa(c),c.M.ed,function(f,g){g&&e()},function(){var f=S(b.b,O.dc);(null==f||f)&&e()})}};
|
|
p.Za=function(a,b,c,d){var e=this.f.o();if(e!==a){var f=this.F,g=xb(f.b,zb.Sa);null!=g&&(f.b.mc.remove(zb.Sa),g=Qe(f,(new Date).valueOf(),g),null==g||cb(f.b,[g]));null!=e&&Ce(this,null,!1,null,null,null);f=this.f;g=null==f.o();vb(f.b,zb.fc,new Pa(a));if(g){f=f.b;g=f.R.Y(O.Oa);if(null!=g){var h=O.Nc,k=g[h];null!=k&&(g[h]=void 0,f.R.store(O.Oa,g),k.user_id=a,Ab(f,k))}h=xb(f,zb.Sa);g=null;null!=h&&(g=h.ha);h=yb(f);if(null!=h)for(k=0;k<h.length;k++){var l=h[k];null==l.Pb&&l.sessionId==g&&(l.Pb=a);null==
|
|
l||cb(f,[l])}}d?this.ca.Lc(d):T(this.ca.b,O.tb);for(d=0;d<b.length;d++)b[d].Za(null==e);null!=e&&T(this.b,O.rb);T(this.b,O.Xb);this.Hc(c);w.info('Changed user to "'+a+'".')}else w.info('Current user is already "'+a+'". Doing nothing.')};p.ob=function(){return new L(this.f,this)};p.Mb=function(a){De(this);bb(this.F);Ce(this,null,null,null,null,null,a,!0)};p.Jc=function(){bb(this.F);Ce(this,!0)};function Re(a,b,c){bb(a.F);w.info("Requesting explicit trigger refresh.");Ce(a,null,!0,null,b,c)}
|
|
p.Hd=function(a,b){var c=new ab,d=bb(this.F);if(-1!==Fe(this.I).We.indexOf(a))return w.info('Custom Event "'+a+'" is blocklisted, ignoring.'),c;c.j.push(new J(this.f.o(),C.CustomEvent,(new Date).valueOf(),d,{n:a,p:b}));c.h=cb(this.b,c.j);return c};function hb(a,b,c,d){var e=new ab,f=bb(a.F);if(jb(a.I,c))return w.info('Custom Attribute "'+c+'" is blocklisted, ignoring.'),e;e.j.push(new J(a.f.o(),b,(new Date).valueOf(),f,{key:c,value:d}));e.h=cb(a.b,e.j);return e}
|
|
p.Id=function(a,b,c,d,e){var f=new ab,g=bb(this.F);if(-1!==Fe(this.I).ef.indexOf(a))return w.info('Purchase "'+a+'" is blocklisted, ignoring.'),f;f.j.push(new J(this.f.o(),C.Yf,(new Date).valueOf(),g,{pid:a,c:c,p:b,q:d,pr:e}));f.h=cb(this.b,f.j);return f};p.Kc=function(a,b,c,d,e,f){var g=new ab,h=bb(this.F);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 J(a,C.eg,(new Date).valueOf(),h,b));g.h=cb(this.b,g.j);return g};
|
|
p.Jb=function(a){var b=new ab,c=bb(this.F);if(a instanceof Cc)b.j.push(new J(this.f.o(),C.Ff,(new Date).valueOf(),c,{trigger_ids:[a.triggerId]}));else{if(!a.Md())return w.info("This in-app message has already received an impression. Ignoring analytics event."),b;a=Ne(a);if(null==a)return b;b.j.push(new J(this.f.o(),C.Xf,(new Date).valueOf(),c,a))}b.h=cb(this.b,b.j);return b};
|
|
p.Fc=function(a){var b=new ab,c=bb(this.F);if(!a.fb())return w.info("This in-app message has already received a click. Ignoring analytics event."),b;a=Ne(a);if(null==a)return b;b.j.push(new J(this.f.o(),C.ie,(new Date).valueOf(),c,a));b.h=cb(this.b,b.j);return b};
|
|
p.Ec=function(a,b){var c=new ab,d=bb(this.F);if(!a.fb())return w.info("This in-app message button has already received a click. Ignoring analytics event."),c;b=Ne(b);if(null==b)return c;if(a.id===jd)return w.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),c;null!=a.id&&(b.bid=a.id);c.j.push(new J(this.f.o(),C.ge,(new Date).valueOf(),d,b));c.h=cb(this.b,c.j);return c};
|
|
p.Ib=function(a,b,c){var d=new ab,e=bb(this.F);if(!a.fb(c))return w.info("This in-app message has already received a click. Ignoring analytics event."),d;a=Ne(a);if(null==a)return d;c=C.ie;null!=b&&(a.bid=b,c=C.ge);d.j.push(new J(this.f.o(),c,(new Date).valueOf(),e,a));d.h=cb(this.b,d.j);return d};p.L=function(a,b){var c=new ab,d=bb(this.F);a={trigger_ids:[a],error_code:b};c.j.push(new J(this.f.o(),C.Wf,(new Date).valueOf(),d,a));c.h=cb(this.b,c.j);return c};
|
|
p.Ka=function(a,b){var c=new ab,d=bb(this.F),e=[],f=[];var g=b?S(this.b,O.hb)||{}:S(this.b,O.rb)||{};for(var h=0;h<a.length;h++)a[h].Md(),a[h]instanceof jc?f.push(a[h]):e.push(a[h]),g[a[h].id]=!0;a=Oe(e);f=Oe(f);if(null==a&&null==f)return c;b?Q(this.b,O.hb,g):Q(this.b,O.rb,g);null!=a&&c.j.push(new J(this.f.o(),b?C.Cf:C.zf,(new Date).valueOf(),d,a));null!=f&&b&&c.j.push(new J(this.f.o(),C.Ef,(new Date).valueOf(),d,f));c.h=cb(this.b,c.j);return c};
|
|
p.Ja=function(a,b){var c=new ab,d=bb(this.F);a.fb();if(null==a.url||""===a.url)return w.info("Card "+a.id+" has no url. Not logging click to Braze servers."),c;if(b){var e=S(this.b,O.gb)||{};e[a.id]=!0;Q(this.b,O.gb,e)}a=Oe([a]);if(null==a)return c;c.j.push(new J(this.f.o(),b?C.Af:C.yf,(new Date).valueOf(),d,a));c.h=cb(this.b,c.j);return c};
|
|
p.Dc=function(a){var b=new ab,c=bb(this.F);if(!a.Ld())return w.info("Card "+a.id+" refused this dismissal. Ignoring analytics event."),b;var d=S(this.b,O.ta)||{};d[a.id]=!0;Q(this.b,O.ta,d);a=Oe([a]);if(null==a)return b;b.j.push(new J(this.f.o(),C.Bf,(new Date).valueOf(),c,a));b.h=cb(this.b,b.j);return b};function Se(a,b){var c=new ab,d=bb(a.F);c.j.push(new J(a.f.o(),C.Zf,(new Date).valueOf(),d,{n:b}));c.h=cb(a.b,c.j);return c}
|
|
function Te(a,b,c){var d=bb(a.F);return new J(a.f.o(),C.lg,b,d,{cid:c})}function ib(a){var b=Aa.Ra;(new sa(b)).setItem(b.M.Kf,1,{baseUrl:a.xb,data:{api_key:a.$,device_id:ye(a.hc).id},userId:a.f.o()})};var Ue={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};K.DeviceProperties=Ue;function Ve(a){this.id=a}Ve.prototype.wc=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 We(a,b){this.b=a;null==b&&(b=Ca(Ue));this.we=b}
|
|
function ye(a){var b=xb(a.b,zb.Rc);null==b&&(b=new Pa(ra.bb()),vb(a.b,zb.Rc,b));b=new Ve(b.ha);for(var c=0;c<a.we.length;c++){var d=a.we[c];switch(d){case "browser":b[d]=tb.Xa;break;case "browserVersion":b[d]=tb.version;break;case "os":var e=tb.fa?tb.fa||null:(e=S(a.b,O.Xb))&&e.os_version?e.os_version:tb.nb();b[d]=e;break;case "resolution":b[d]=screen.width+"x"+screen.height;break;case "language":b[d]=tb.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(l){w.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+l.message)}g=e.getTimezoneOffset();e=parseInt(g/60);var h=parseInt(g%60),k="GMT";0!==g&&(k=k+(0>g?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));g=k}b[d]=g;break;case "userAgent":b[d]=
|
|
tb.userAgent}}return b};function Xe(a){this.Ea=a;this.sc=null;this.Ke="geolocation"in navigator}Xe.prototype.Fg=function(a){var b=this;if(document.hidden){Ye(this);var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),b.watchPosition())};document.addEventListener("visibilitychange",c,!1)}this.Ea.Kc(a.coords.latitude,a.coords.longitude,a.coords.accuracy,a.coords.altitude,a.coords.altitudeAccuracy)};
|
|
Xe.prototype.Eg=function(a){a.code===a.PERMISSION_DENIED?w.info(a.message):w.error("Could not detect user location: "+a.code+" - "+a.message)};Xe.prototype.watchPosition=function(){this.Ke?(Ye(this),this.sc=navigator.geolocation.watchPosition(this.Fg.bind(this),this.Eg.bind(this)),w.info("Requested Geolocation")):w.info(this.bd)};function Ye(a){a.Ke?null!=a.sc&&(navigator.geolocation.clearWatch(a.sc),a.sc=null,w.info("Stopped watching Geolocation")):w.info(a.bd)};function Ze(a,b,c,d,e){this.endpoint=a||null;this.Se=b||null;this.publicKey=c||null;this.Jh=d||null;this.qa=e||null}Ze.prototype.A=function(){return{e:this.endpoint,c:this.Se,p:this.publicKey,u:this.Jh,v:this.qa}};function $e(a,b,c,d,e,f,g,h,k,l){this.Ea=a;this.$=b;this.hc=c;this.Bg=d;this.Ie=e||"/service-worker.js";this.Ge=f;this.I=g;this.pd=h||!1;this.zg=k||!1;this.b=l;this.rc="serviceWorker"in navigator&&"undefined"!==typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window;this.td="safari"in window&&"pushNotification"in window.safari}p=$e.prototype;p.pa=function(){return this.rc||this.td};
|
|
p.Ia=function(){var a=this.pa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,b=this.pa()&&(!("Notification"in window)||null==window.Notification);return a||b};p.Fb=function(){return this.pa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission};
|
|
p.Gd=function(a,b,c){var d=this;c=this.Ge||c;this.pa()?this.rc?af(this).then(function(e){d.Ia()?b():null==e?b():e.pushManager.getSubscription().then(function(f){f?a():b()}).catch(function(){b()})}).catch(function(){b()}):null==c||""===c?w.error("You must supply the safariWebsitePushId argument in order to use isPushGranted on Safari"):"granted"===window.safari.pushNotification.permission(c).permission?a():b():b()};
|
|
function bf(a,b,c,d,e,f){b.unsubscribe().then(function(g){g?cf(a,c,d,e,f):(w.error("Failed to unsubscribe device from push."),"function"===typeof f&&f(!1))}).catch(function(g){w.error("Push unsubscription error: "+g);"function"===typeof f&&f(!1)})}
|
|
function df(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 k=h.endpoint;h.subscriptionId&&-1===h.endpoint.indexOf(h.subscriptionId)&&(k=h.endpoint+"/"+h.subscriptionId);return k}(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 k;return h.options&&(k=h.options.applicationServerKey)&&k.byteLength&&0<k.byteLength?btoa(String.fromCharCode.apply(null,new Uint8Array(k))).replace(/\+/g,"-").replace(/\//g,"_"):null}(b);a.Ea.Nd(e,d,f,g,b);e&&"function"===typeof c&&c(e,f,g)}function ef(a,b,c){a.Ea.Lb(!1);w.info(b);"function"===typeof c&&c(!1)}
|
|
function ff(a,b,c,d,e){if("default"===c.permission)try{window.safari.pushNotification.requestPermission(a.Bg,b,{api_key:a.$,device_id:ye(a.hc).id},function(f){"granted"===f.permission&&a.Ea.Sd("opted_in");ff(a,b,f,d,e)})}catch(f){ef(a,"Could not request permission for push: "+f,e)}else"denied"===c.permission?ef(a,"The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",e):"granted"===c.permission&&(w.info("Device successfully subscribed to push."),
|
|
df(a,c.deviceToken,d,new Date))}function gf(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:w.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 cf(a,b,c,d,e){var f={userVisibleOnly:!0};null!=c&&(f.applicationServerKey=c);b.pushManager.subscribe(f).then(function(g){w.info("Device successfully subscribed to push.");df(a,g,d,new Date)}).catch(function(g){a.Ia()?(w.info("Permission for push notifications was denied."),"function"===typeof e&&e(!1)):w.error("Push subscription failed: "+g)})}
|
|
function af(a){return a.pd?navigator.serviceWorker.getRegistration():navigator.serviceWorker.register(a.Ie).then(function(){return navigator.serviceWorker.ready.then(function(b){b&&"function"===typeof b.update&&b.update().catch(function(c){w.info("ServiceWorker update failed: "+c)});return b})})}
|
|
p.subscribe=function(a,b,c){var d=this;a=this.Ge||a;if(this.pa())if(this.rc){if(!this.pd&&null!=window.location){var e=this.Ie;-1===e.indexOf(window.location.host)&&(e=window.location.host+e);-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e);if(0!==window.location.href.indexOf(e.substr(0,e.lastIndexOf("/")+1))){w.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+
|
|
e+")");return}}if(this.Ia())ef(this,"Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",c);else if(this.I&&!Fe(this.I).qa&&0===Fe(this.I).Gb)w.info("Waiting for VAPID key from server config before subscribing to push."),hf(this.I,function(){d.subscribe(a,b,c)});else{var f=this.Fb();gf(function(){f||d.Ea.Sd("opted_in");af(d).then(function(g){null==g?(w.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerAppboyPushMessages."),
|
|
"function"===typeof c&&c()):g.pushManager.getSubscription().then(function(h){var k=null;d.I&&null!=Fe(d.I).qa&&(k=qa.Ih(Fe(d.I).qa));if(h){var l=null,m=null,r=S(d.b,O.dc);if(r&&!Da(r)){try{var q=(new Ze(r.e,Ma(r.c),r.p,r.u,r.v)).Se}catch(v){q=null}null==q||isNaN(q.getTime())||0===q.getTime()||(l=q,m=new Date(l),m.setMonth(l.getMonth()+6))}null!=k&&h.options&&h.options.applicationServerKey&&h.options.applicationServerKey.byteLength&&0<h.options.applicationServerKey.byteLength&&!Ia(k,new Uint8Array(h.options.applicationServerKey))?
|
|
(12<h.options.applicationServerKey.byteLength?w.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):w.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),bf(d,h,g,k,b,c)):h.expirationTime&&new Date(h.expirationTime)<=(new Date).valueOf()?(w.info("Push subscription is expired, creating new subscription."),bf(d,h,g,k,b,
|
|
c)):r&&Da(r)?bf(d,h,g,k,b,c):null==m?(w.info("No push subscription creation date found, creating new subscription."),bf(d,h,g,k,b,c)):m<=(new Date).valueOf()?(w.info("Push subscription older than 6 months, creating new subscription."),bf(d,h,g,k,b,c)):(w.info("Device already subscribed to push, sending existing subscription to backend."),df(d,h,b,l))}else cf(d,g,k,b,c)}).catch(function(h){w.error("Error checking current push subscriptions: "+h)})}).catch(function(g){w.error("ServiceWorker registration failed: "+
|
|
g)})},function(){var g="Permission for push notifications was ignored.";d.Ia()&&(g+=" The browser has automatically blocked further permission requests for a period (probably 1 week).");w.info(g);"function"===typeof c&&c(!0)},function(){w.info("Permission for push notifications was denied.");"function"===typeof c&&c(!1)})}}else this.td&&(null==a||""===a?w.error("You must supply the safariWebsitePushId argument in order to use registerAppboyPushMessages on Safari"):(e=window.safari.pushNotification.permission(a),
|
|
ff(this,a,e,b,c)));else w.info(this.bd)};
|
|
p.unsubscribe=function(a,b){var c=this;this.pa()?this.rc?navigator.serviceWorker.getRegistration().then(function(d){d&&d.pushManager.getSubscription().then(function(e){e&&(c.Ea.Lb(!0),e.unsubscribe().then(function(f){f?(w.info("Device successfully unsubscribed from push."),"function"===typeof a&&a()):(w.error("Failed to unsubscribe device from push."),"function"===typeof b&&b());c.pd||(d.unregister(),w.info("Service worker successfully unregistered."))}).catch(function(f){w.error("Push unsubscription error: "+f);
|
|
"function"===typeof b&&b()}))}).catch(function(e){w.error("Error unsubscribing from push: "+e);"function"===typeof b&&b()})}):this.td&&(this.Ea.Lb(!0),w.info("Device unsubscribed from push."),"function"===typeof a&&a()):w.info(this.bd)};function Ge(a,b,c,d,e,f,g){this.Gb=a||0;this.We=b||[];this.Oe=c||[];this.ef=d||[];this.Jd=e;if(null==e||""===e)this.Jd=null;this.qa=f||null;this.Bb=g||{}}Ge.prototype.A=function(){return{s:"3.3.0",l:this.Gb,e:this.We,a:this.Oe,p:this.ef,m:this.Jd,v:this.qa,c:this.Bb}};function jf(a){this.b=a;this.vd=new Kb;this.te=new Kb;this.qc=null}function Fe(a){if(null==a.qc){var b=S(a.b,O.oe);if(null!=b){var c=b.l;"3.3.0"!==b.s&&(c=0);b=new Ge(c,b.e,b.a,b.p,b.m,b.v,b.c)}else b=new Ge;a.qc=b}return a.qc}function hf(a,b){b=Lb(a.vd,b);a.ue&&a.vd.N(a.ue);a.ue=b}function kf(a,b){Lb(a.te,b)}function jb(a,b){return-1!==Fe(a).Oe.indexOf(b)};function lf(a,b,c,d){this.b=a;this.f=b;this.I=c;this.yb=1E3;d=parseFloat(d);isNaN(d)&&(d=1800);d<this.yb/1E3&&(w.info("Specified session timeout of "+d+"s is too small, using the minimum session timeout of "+this.yb/1E3+"s instead."),d=this.yb/1E3);this.Dg=d}function Qe(a,b,c){return new J(a.f.o(),C.rg,b,c.ha,{d:Ja(b-c.Cb)})}lf.prototype.Cd=function(){var a=xb(this.b,zb.Sa);return null==a?null:a.ha};
|
|
function Ee(a){var b=(new Date).valueOf(),c=Fe(a.I).Jd,d=S(a.b,O.ac);if(null!=d&&null==c)return!1;(c=null==d||b-d>1E3*c)&&Q(a.b,O.ac,b);return c}
|
|
function bb(a){var b=(new Date).valueOf(),c=b+1E3*a.Dg,d=xb(a.b,zb.Sa);if(null==d||(b-d.Cb<a.yb?0:d.zd<b)){var e="Generating session start event with time "+b;if(null!=d){var f=d.Hb;f-d.Cb<a.yb&&(f=d.Cb+a.Oh);d=Qe(a,f,d);null==d||cb(a.b,[d]);e+=" (old session ended "+f+")"}e+=". Will expire "+c.valueOf();w.info(e);c=new Pa(ra.bb(),c);e=new J(a.f.o(),C.pe,b,c.ha);null==e||cb(a.b,[e]);vb(a.b,zb.Sa,c);null==S(a.b,O.ac)&&Q(a.b,O.ac,b);return c.ha}d.Hb=b;d.zd=c;vb(a.b,zb.Sa,d);return d.ha};function mf(a,b){var c=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(O.gd,!0),localStorage.getItem(O.gd)&&(localStorage.removeItem(O.gd),c=!0)}catch(e){if(("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0<localStorage.length)c=!0;else throw e;}}catch(e){w.info("Local Storage not supported!")}var d=navigator.cookieEnabled||"cookie"in document&&(0<document.cookie.length||-1<(document.cookie="test").indexOf.call(document.cookie,"test"));b=new Jb(a,d&&!b,
|
|
c);return new ub(b,c?new Eb(a):new Ib)};function nf(a,b){this.I=a;this.b=b}nf.prototype.o=function(){var a=xb(this.b,zb.fc);if(null==a)return null;var b=a.ha,c=Qa(b);if(997<c){for(;997<c;)b=b.slice(0,b.length-1),c=Qa(b);a.ha=b;vb(this.b,zb.fc,a)}return b};nf.prototype.Qd=function(a,b){if(jb(this.I,a))return w.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),!1;var c={};c[a]=b;return db(this,"custom",c)};function db(a,b,c){return Bb(a.b,a.o(),b,c)}
|
|
nf.prototype.Nd=function(a,b,c,d,e){db(this,"push_token",a);db(this,"custom_push_public_key",c);db(this,"custom_push_user_auth",d);db(this,"custom_push_vapid_public_key",e);var f=Aa.Ra,g=new sa(f);Q(this.b,O.dc,(new Ze(a,b,c,d,e)).A());g.setItem(f.M.ed,f.ec,!0)};
|
|
nf.prototype.Lb=function(a){db(this,"push_token",null);db(this,"custom_push_public_key",null);db(this,"custom_push_user_auth",null);db(this,"custom_push_vapid_public_key",null);if(a){a=Aa.Ra;var b=new sa(a);Q(this.b,O.dc,!1);b.setItem(a.M.ed,a.ec,!1)}};function of(a,b,c){this.b=a;this.pc=b||!1;this.se=c;this.rd=new Kb}of.prototype.Lc=function(a){var b=S(this.b,O.tb);Q(this.b,O.tb,a);b!==a&&Mb(this.rd)};of.prototype.Vd=function(a){return Lb(this.se,a)};function we(a,b){Lb(a.rd,b)};function pf(){}pf.prototype.Eb=function(){};pf.prototype.Za=function(){};pf.prototype.clearData=function(){};function qf(a,b,c,d,e){this.ga=a;this.H=b;this.b=c;this.I=d;this.wg=e;this.za=this.Ca=0;this.Fa()}pa(qf,pf);p=qf.prototype;p.Fa=function(){for(var a=S(this.b,O.sb)||[],b=[],c=0;c<a.length;c++){var d=kc(a[c]);null!=d&&b.push(d)}this.B=rf(this,sf(this,b,!1));this.Ca=S(this.b,O.Vb)||this.Ca;this.za=S(this.b,O.Ub)||this.za};
|
|
p.Eb=function(a){if(tf(this)&&null!=a&&a.cards){var b=a.full_sync;b||this.Fa();var c=a.cards,d=a.last_full_sync_at;a=a.last_card_updated_at;if(b){var e=[];for(var f=ca(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,k=0;k<this.B.length;k++)if(g.id===this.B[k].id){h=this.B[k];break}if(b)g=ec(g),null!=h&&h.viewed&&(g.viewed=!0),null!=g&&e.push(g);else if(null==h)g=ec(g),null!=g&&e.push(g);else if(!cc(h,g))for(h=0;h<
|
|
e.length;h++)if(g.id===e[h].id){e.splice(h,1);break}}this.B=rf(this,sf(this,e,b));this.uc();this.Ca=d||0;Q(this.b,O.Vb,this.Ca);this.za=a||0;Q(this.b,O.Ub,this.za);Mb(this.ga,this.mb(!0))}};
|
|
function uf(a,b){if(tf(a)){a.Fa();var c=a.B.slice();a.H.ob().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=ec(f),null!=f&&c.push(f);else if(!cc(g,f))for(g=0;g<c.length;g++)if(f.id===c[g].id){c.splice(g,1);break}}a.B=rf(a,sf(a,c,!1));a.uc();Mb(a.ga,a.mb(!0))})}}
|
|
function sf(a,b,c){for(var d=S(a.b,O.gb)||{},e=S(a.b,O.hb)||{},f=S(a.b,O.ta)||{},g={},h={},k={},l=0;l<b.length;l++)d[b[l].id]&&(b[l].clicked=!0,g[b[l].id]=!0),e[b[l].id]&&(b[l].viewed=!0,h[b[l].id]=!0),f[b[l].id]&&(b[l].dismissed=!0,k[b[l].id]=!0);c&&(Q(a.b,O.gb,g),Q(a.b,O.hb,h),Q(a.b,O.ta,k));return b}
|
|
function rf(a,b){for(var c=[],d=new Date,e=S(a.b,O.ta)||{},f=!1,g=0;g<b.length;g++){var h=b[g].url;!a.wg&&h&&pd(h)?w.error('Card with url "'+h+'" will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable this card.'):(null==b[g].expiresAt||b[g].expiresAt>=d)&&!b[g].dismissed?c.push(b[g]):f=e[b[g].id]=!0}f&&Q(a.b,O.ta,e);return c}p.uc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());Q(this.b,O.sb,a)};
|
|
p.La=function(a,b){if(tf(this))return this.H.La(this.Ca,this.za,this.Eb.bind(this),a,b)};p.mb=function(a){a||this.Fa();a=rf(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.za||0,this.Ca||0);0===b&&(b=void 0);return new xd(a,Ka(b))};
|
|
p.Za=function(a){a||(this.B=[],Mb(this.ga,new xd(this.B.slice(),null)),T(this.b,O.sb),T(this.b,O.gb),T(this.b,O.hb),T(this.b,O.ta));this.za=this.Ca=0;T(this.b,O.Vb);T(this.b,O.Ub)};p.clearData=function(a){this.za=this.Ca=0;this.B=[];Mb(this.ga,new xd(this.B.slice(),null));a&&(T(this.b,O.sb),T(this.b,O.gb),T(this.b,O.hb),T(this.b,O.ta),T(this.b,O.Vb),T(this.b,O.Ub))};function tf(a){return Fe(a.I).Bb.enabled?!0:(0!==Fe(a.I).Gb&&(Mb(a.ga,new xd([],(new Date).valueOf())),T(a.b,O.sb)),!1)};function vf(a,b){this.ga=a;this.b=b;this.Fa()}pa(vf,pf);p=vf.prototype;p.Fa=function(){for(var a=S(this.b,O.ad)||[],b=[],c=0;c<a.length;c++){var d=kc(a[c]);null!=d&&b.push(d)}this.B=b;this.jb=Ma(S(this.b,O.Zc))};p.uc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());Q(this.b,O.ad,a)};
|
|
p.Eb=function(a){if(null!=a&&a.feed){this.Fa();a=a.feed;for(var b=[],c,d=S(this.b,O.rb)||{},e={},f=0;f<a.length;f++){c=a[f];var g=c.id,h=c.type,k=c.viewed,l=c.title,m=c.image,r=c.description,q=Ka(c.created),v=Ka(c.updated),t=c.categories,A=Ka(c.expires_at),I=c.url,z=c.domain,G=c.aspect_ratio;c=c.extras;g=h===fc.re||h===fc.bc?new gc(g,k,l,m,r,q,v,t,A,I,z,G,c,!1,!1):h===fc.Sb?new hc(g,k,l,m,r,q,v,t,A,I,z,G,c,!1,!1):h===fc.Rb?new ic(g,k,m,q,v,t,A,I,z,G,c,!1,!1):null;null!=g&&(d[g.id]&&(g.viewed=!0,e[g.id]=
|
|
!0),b.push(g))}Q(this.b,O.rb,e);this.B=b;this.uc();this.jb=new Date;Q(this.b,O.Zc,this.jb);Mb(this.ga,new td(this.B.slice(),this.jb))}};p.Bc=function(){this.Fa();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 td(a,this.jb)};p.clearData=function(a){null==a&&(a=!1);this.B=[];this.jb=null;a&&(T(this.b,O.ad),T(this.b,O.Zc));Mb(this.ga,new td(this.B.slice(),this.jb))};function wf(a,b,c,d,e){this.Na=a;this.sf=b;this.rf=c;this.Ac=d;this.Ma=e}function xf(a,b,c,d,e){return null==a||null==a.trigger_id?null:new wf(a.trigger_id,b,c,d,e)};function yf(a,b,c,d){this.Ag=a;this.ga=b;this.b=c;this.H=d;this.jc=[];this.ma=[];this.Aa=null;this.K={};this.X={};zf(this);Af(this)}pa(yf,pf);function Bf(a){a.Aa=S(a.b,O.Yc)||a.Aa;a.K=S(a.b,O.vb)||a.K;a.X=S(a.b,O.$b)||a.X;for(var b=0;b<a.T.length;b++){var c=a.T[b];null!=a.X[c.id]&&(c.Ba=a.X[c.id])}}function zf(a){a.ud=S(a.b,O.jd)||0;for(var b=S(a.b,O.hd)||[],c=[],d=0;d<b.length;d++)c.push(re(b[d]));a.T=c;Bf(a)}
|
|
function Af(a){function b(I,z,G,F,D){return function(){Cf(a,I,z,G,F,D)}}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.K[f.id]){for(var g=a.K[f.id],h=[],k=0;k<g.length;k++){var l=g[k],m=Math.max(l.Ac+1E3*f.$a-(new Date).valueOf(),0);if(0<m){h.push(l);var r=void 0,q=void 0;null!=l.nf&&(r=l.nf);null!=l.wd&&Na(l.wd)&&(q=Oa(l.wd));var v=[];if(Da(l.Ad))for(var t=0;t<l.Ad.length;t++){var A=c[l.Ad[t]];null!=A&&v.push(A)}a.ma.push(setTimeout(b(f,
|
|
l.Ac,r,q,v),m))}}a.K[f.id].length>h.length&&(a.K[f.id]=h,d=!0,0===a.K[f.id].length&&delete a.K[f.id])}}d&&Q(a.b,O.vb,a.K)}
|
|
yf.prototype.Eb=function(a){var b=!1;if(null!=a&&a.triggers){Bf(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=[],k=0;k<f.trigger_condition.length;k++)h.push(ee(f.trigger_condition[k]));k=Ka(f.start_time);var l=Ka(f.end_time),m=f.priority,r=f.type,q=f.delay,v=f.re_eligibility,t=f.timeout,A=f.data;f=f.min_seconds_since_last_trigger;g=Ba(se,r,"Could not construct Trigger from server data","Trigger.Types")?new oe(g,h,k,l,m,r,A,q,v,t,f):null;null!=
|
|
this.X[g.id]&&(g.Ba=this.X[g.id],c[g.id]=this.X[g.id]);null!=this.K[g.id]&&(d[g.id]=this.K[g.id]);for(h=0;h<g.lb.length;h++)if(ce(g.lb[h],ae.V,null)){b=!0;break}null!=g&&this.T.push(g)}Ia(this.X,c)||(this.X=c,Q(this.b,O.$b,this.X));Ia(this.K,d)||(this.K=d,Q(this.b,O.vb,this.K));a=[];for(c=0;c<this.T.length;c++)a.push(this.T[c].A());this.ud=(new Date).valueOf();Q(this.b,O.hd,a);Q(this.b,O.jd,this.ud);b&&(w.info("Trigger with test condition found, firing test."),this.oa(ae.V));this.oa(ae.OPEN);b=this.jc;
|
|
this.jc=[];for(a=0;a<b.length;a++)this.oa.apply(this,b[a])}};
|
|
function Cf(a,b,c,d,e,f){function g(){Bf(a);var l=f.pop();if(null!=l)if(Df(a,l,c,d,e,f),qe(l,c)){var m="Server aborted in-app message display, but the timeout on fallback trigger "+l.id+"has already elapsed.";0<f.length&&(m+=" Continuing to fall back.");w.info(m);a.H.L(l.id,ad.fe);g()}else w.info("Server aborted in-app message display. Falling back to lower priority "+l.type+" trigger action "+l.id),m=1E3*l.$a-((new Date).valueOf()-c),0<m?a.ma.push(setTimeout(function(){Cf(a,l,c,d,e,f)},m)):Cf(a,
|
|
l,c,d,e,f)}function h(l){Bf(a);var m=(new Date).valueOf();qe(b,c)?b.type===se.qe?a.H.L(b.id,ad.ub):a.H.L(b.id,ad.fe):!1===navigator.onLine&&b.type===se.Uc&&l.imageUrl?(w.info("Not showing "+b.type+" trigger action "+b.id+" due to offline state."),a.H.L(b.id,ad.Of)):(null==b.Ba||b.Kb!==pe&&m-b.Ba>=1E3*b.Kb)&&Ef(a,b,m,d)?(Mb(a.ga,[l]),Bf(a),b.Ba=m,a.Aa=m,Q(a.b,O.Yc,m),a.X[b.id]=m,Q(a.b,O.$b,a.X)):w.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")}
|
|
switch(b.type){case se.Uc:var k=Bc(b.data);if(null==k){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.L(b.id,ad.wb);break}h(k);break;case se.qe:k=xf(b.data,h,g,c,b.Ma);if(null==k){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.L(b.id,ad.wb);break}Me(a.H,k,d,e);break;default:w.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.H.L(b.id,ad.wb)}}
|
|
yf.prototype.oa=function(a,b,c){var d=this;if(Ba(ae,a,"Cannot fire trigger action.","TriggerEvents"))if(0<this.H.ib)w.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),this.jc.push(arguments);else{(S(this.b,O.jd)||0)>this.ud?zf(this):Bf(this);for(var e=(new Date).valueOf(),f=e-this.Aa,g=!0,h=!0,k=[],l=0;l<this.T.length;l++){var m=this.T[l],r=e+1E3*m.$a;if((null==m.Ba||m.Kb!==pe&&r-m.Ba>=1E3*m.Kb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime||
|
|
m.endTime>=e)){for(var q=!1,v=0;v<m.lb.length;v++)if(ce(m.lb[v],a,b)){q=!0;break}q&&(g=!1,Ef(this,m,r,a)&&(h=!1,k.push(m)))}}if(g)w.info("Trigger event "+a+" did not match any trigger conditions.");else if(h)w.info("Ignoring "+a+" trigger event because a trigger was displayed "+f/1E3+"s ago.");else{k.sort(function(A,I){return A.priority-I.priority});var t=k.pop();null!=t&&(w.info("Firing "+t.type+" trigger action "+t.id+" from trigger event "+a+"."),Df(this,t,e,a,c,k),0===t.$a?Cf(this,t,e,a,c,k):
|
|
this.ma.push(setTimeout(function(){Cf(d,t,e,a,c,k)},1E3*t.$a)))}}};yf.prototype.Za=function(a){this.T=[];T(this.b,O.hd);if(!a){this.jc=[];this.Aa=null;this.X={};this.K={};for(a=0;a<this.ma.length;a++)clearTimeout(this.ma[a]);this.ma=[];T(this.b,O.Yc);T(this.b,O.$b);T(this.b,O.vb);T(this.b,O.ag);T(this.b,O.$f);T(this.b,O.bg)}};yf.prototype.clearData=function(){this.T=[];this.Aa=null;this.X={};this.K={};for(var a=0;a<this.ma.length;a++)clearTimeout(this.ma[a]);this.ma=[]};
|
|
function Ef(a,b,c,d){if(null==a.Aa)return!0;if(d===ae.V)return w.info("Ignoring minimum interval between trigger because it is a test type."),!0;b=b.cf;null==b&&(b=a.Ag);return c-a.Aa>=1E3*b}function Df(a,b,c,d,e,f){Bf(a);a.K[b.id]=a.K[b.id]||[];var g={};g.Ac=c;g.nf=d;var h;null!=e&&(h=e.A());g.wd=h;c=[];for(d=0;d<f.length;d++)c.push(f[d].id);g.Ad=c;a.K[b.id].push(g);Q(a.b,O.vb,a.K)};"undefined"===typeof console&&(window.console={log:function(){}});var Ff=window.Element.prototype;"function"!==typeof Ff.matches&&(Ff.matches=Ff.msMatchesSelector||Ff.mozMatchesSelector||Ff.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 Gf=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};Gf.prototype=window.Event.prototype;window.CustomEvent=Gf};var Hf;"object"===typeof module&&module.exports?Hf=module.exports:(window.appboy||(window.appboy={}),Hf=window.appboy);var If=Hf;var Y=new function(a){function b(n,u,y){n="The '"+n+"' "+u+" is deprecated.";y&&(n+=" Please use '"+y+"' instead.");w.warn(n)}function c(){w.Db();aa&&(Mb(M),M.J(),t.clearData(!1),t=null,z.clearData(!1),z=null,v.J(),v=null,G.J(),G=null,A.J(),A=null,r.J(),r=null,l.Db(),F=l=null,Ye(D),m=f=h=D=null,N=[],k=null);ha=aa=!1}function d(){if(ha)return!1;if(!aa)throw Error("Appboy must be initialized before calling methods.");return!0}var e={Lg:function(n,u,y){return new of(n,u,y)},Ng:function(n,u){return new We(n,
|
|
u)},Rg:function(n,u,y,B,P,R,W,Db,Wa,Nf){null==P&&(P={});var Be=new nf(Wa,W),Of=new lf(W,Be,Wa,P[E.qg]);return new ve(n,y,B,P[E.vf],u,Of,Db,Be,Wa,W,R,Nf)},xc:function(){return new Kb},Og:function(n,u){return new vf(n,u)},Mg:function(n,u,y,B){return new qf(n,u,y,B)},Sg:function(n,u,y,B){return new yf(n,u,y,B)},Qg:function(n,u,y,B,P,R,W){null==P&&(P={});return new $e(n,u,y,B+"/safari/"+u,P[E.pg],P[E.ng],R,P[E.fg],P[E.Pf],W)},Pg:function(n){return new Xe(n)}};null==a&&(a=e);var f,g,h,k,l,m,r,q,v,t,A,
|
|
I,z,G,F,D,H=new Kb,M=new Kb,N=[],aa=!1,ha=!1;return{Bh:function(n){return Lb(H,n)},Ah:function(n){return Lb(M,n)},Fd:function(n,u){if(aa)return w.info("Braze has already been initialized with an API key."),!0;w.Ed(null!=u&&u[E.Rf]);if(null==n||""===n||"string"!==typeof n)return w.error("Braze requires a valid API key to be initialized."),!1;f=n;h=u||{};if(tb.$g&&!h[E.tf])return w.info("Ignoring activity from crawler bot "+navigator.userAgent),ha=!0,!1;g=u=mf(n,h[E.gg]||!1);var y=new Fb(null,!0);if(y.Y("ab.optOut"))return w.info("Ignoring all activity due to previous opt out"),
|
|
y.store("ab.optOut","This-cookie-will-expire-in-"+Gb(y)),ha=!0,!1;y=ca(Ha(h));for(var B=y.next();!B.done;B=y.next())B=B.value,-1===Ca(E).indexOf(B)&&w.warn("Ignoring unknown initialization option '"+B+"'.");y=["mparticle","wordpress","tealium"];null!=h[E.ne]&&(B=h[E.ne],-1!==y.indexOf(B)?k=B:w.error("Invalid sdk flavor passed: "+B));var P=[];v=a.xc();N.push(v);t=a.Og(v,u);P.push(t);G=a.xc();N.push(G);y=h[E.Oc];if(null==y||""===y||"string"!==typeof y)return w.error("Braze requires a valid SDK Endpoint to be initialized. Please set the 'baseUrl' initialization option to the value of your SDK Endpoint."),
|
|
!1;y=y.replace(/(\.[a-z]+)[^\.]*$/i,"$1/api/v3");0!==y.indexOf("http")&&(y="https://"+y);B=h[E.be]||h[E.Sc];h[E.Sc]&&b(E.Sc,"initialization option",E.be);if(null!=B)if(Da(B)){for(var R=[],W=0;W<B.length;W++)Ba(Ue,B[W],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&R.push(B[W]);B=R}else w.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),B=null;q=a.Ng(u,B);B=new jf(u);r=a.xc();m=a.Lg(u,h[E.Sf],r);N.push(r);l=a.Rg(f,y,"3.3.0",k,h,
|
|
function(Db){if(aa)for(var Wa=0;Wa<P.length;Wa++)P[Wa].Eb(Db)},u,q,B,m);R=h[E.Uf];null==R&&(R=30);z=a.Sg(R,G,u,l);P.push(z);R=!0===h[E.Xd]||!0===h[E.ce];null!=h.enableHtmlInAppMessages&&b("enableHtmlInAppMessages","initialization option","allowUserSuppliedJavascript");A=a.xc();N.push(A);I=a.Mg(A,l,u,B,R);P.push(I);kf(B,function(){I.La()});Pe(l,function(){I.La()});l.Fd();F=a.Qg(l.ob(),f,q,y,h,B,u);D=a.Pg(l.ob());u="Initialized ";h&&h[E.Oc]&&(u+='for the Braze backend at "'+h[E.Oc]+'" ');w.info(u+('with API key "'+
|
|
n+'".'));n=tb.language;u=!1;h&&(h[E.Xc]&&(b(E.Xc,"initialization option",E.$c),n=h[E.Xc],u=!0),h[E.$c]&&(n=h[E.$c],u=!0));qd(n,u);Mb(H,h);return aa=!0},Db:function(){w.info("Destroying appboy instance");g=null;c()},Vg:function(n){d()&&(null==n&&w.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(ye(q).id))},Wd:function(){w.Wd()},Rd:function(n){w.Rd(n)},Hc:function(){if(d()){l.Hc(F);
|
|
var n=Aa.Ra,u=new sa(n);wa(u,n.M.le,function(y,B){function P(){z.oa(ae.ke,[W],Db)}var R=B.lastClick,W=B.trackingString;w.info("Firing push click trigger from "+W+" push click at "+R);var Db=Te(l,R,W);Re(l,P,P);xa(u,n.M.le,y)});ya(u,n.M.xf,function(y){uf(I,y)})}},Za:function(n,u){if(d())if(null==n||0===n.length||n!==n)w.error("changeUser requires a non-empty userId.");else if(997<Qa(n))w.error('Rejected user id "'+n+'" because it is longer than 997 bytes.');else{if(null!=u&&!Ra(u,"set signature for new user",
|
|
"signature",!1))return!1;l.Za(n.toString(),[t,I,z],F,u)}},ob:function(){if(d())return l.ob()},Xg:function(){if(d())return h[E.$d]},Mb:function(n){d()&&l.Mb(n)},Jc:function(){d()&&l.Jc()},lf:function(n){if(d())return Lb(v,n)},Bc:function(){if(d())return t.Bc()},La:function(n,u){if(d())return I.La(n,u)},kf:function(n){if(d())return Lb(A,n)},mb:function(){if(d())return I.mb(!1)},Ch:function(n){if(d())return b("subscribeToNewInAppMessages","method","subscribeToInAppMessage"),Lb(G,n)},mf:function(n){if(d())return"function"!==
|
|
typeof n?null:Lb(G,function(u){n(u[0]);return u.slice(1)})},Jb:function(n){if(d())return n instanceof X||n instanceof Cc?l.Jb(n).h:(w.error("inAppMessage must be an InAppMessage object"),!1)},Fc:function(n){if(d()){if(!(n instanceof X))return w.error("inAppMessage must be an InAppMessage object"),!1;var u=l.Fc(n);if(u.h)for(var y=0;y<u.j.length;y++)z.oa(ae.Zb,[n.triggerId],u.j[y]);return u.h}},Ec:function(n,u){if(d()){if(!(n instanceof Dc))return w.error("button must be an InAppMessageButton object"),
|
|
!1;if(!(u instanceof X))return w.error("inAppMessage must be an InAppMessage object"),!1;var y=l.Ec(n,u);if(y.h)for(var B=0;B<y.j.length;B++)z.oa(ae.Zb,[u.triggerId,n.id],y.j[B]);return y.h}},Ib:function(n,u,y){if(d()){if(!(n instanceof Nc))return w.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;y=l.Ib(n,u,y);if(y.h)for(var B=0;B<y.j.length;B++)z.oa(ae.Zb,[n.triggerId,u],y.j[B]);return y.h}},L:function(n,u){if(d())return n instanceof X||n instanceof Cc?
|
|
Ba(ad,u,u+" is not a valid in-app message display failure","InAppMessage.DisplayFailures")?l.L(n.triggerId,u).h:!1:(w.error("inAppMessage must be an InAppMessage object"),!1)},Ka:function(n,u){if(d()){if(!Da(n))return w.error("cards must be an array"),!1;for(var y=0;y<n.length;y++)if(!(n[y]instanceof $b))return w.error("Each card in cards must be a Card object"),!1;return l.Ka(n,u).h}},Ja:function(n,u){if(d())return n instanceof $b?l.Ja(n,u).h:(w.error("card must be a Card object"),!1)},Dc:function(n){if(d())return n instanceof
|
|
$b?l.Dc(n).h:(w.error("card must be a Card object"),!1)},bf:function(){if(d())return Se(l,za.Tf).h},af:function(){if(d())return Se(l,za.Df).h},N:function(n){if(d()){for(var u=ca(N),y=u.next();!y.done;y=u.next())y.value.N(n);H.N(n);M.N(n)}},J:function(){if(d())for(var n=ca(N),u=n.next();!u.done;u=n.next())u.value.J()},Hd:function(n,u){if(d()){if(null==n||0>=n.length)return w.error('logCustomEvent requires a non-empty eventName, got "'+n+'". Ignoring event.'),!1;if(!Sa(n,"log custom event","the event name"))return!1;
|
|
var y=ca(Ua(u,"logCustomEvent","eventProperties",'log custom event "'+n+'"',"event")),B=y.next().value;y=y.next().value;if(!B)return!1;B=l.Hd(n,y);if(B.h)for(w.info('Logged custom event "'+n+'".'),y=0;y<B.j.length;y++)z.oa(ae.Qc,[n,u],B.j[y]);return B.h}},Id:function(n,u,y,B,P){if(d()){null==y&&(y="USD");null==B&&(B=1);if(null==n||0>=n.length)return w.error('logPurchase requires a non-empty productId, got "'+n+'", ignoring.'),!1;if(!Sa(n,"log purchase","the purchase name"))return!1;var R=parseFloat(u);
|
|
if(isNaN(R))return w.error("logPurchase requires a numeric price, got "+u+", ignoring."),!1;R=R.toFixed(2);u=parseInt(B);if(isNaN(u))return w.error("logPurchase requires an integer quantity, got "+B+", ignoring."),!1;if(1>u||100<u)return w.error("logPurchase requires a quantity >1 and <100, got "+u+", ignoring."),!1;y=y.toUpperCase();if(-1==="AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BRL BSD BTC BTN BWP BYR BZD CAD CDF CHF CLF CLP CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EEK EGP ERN ETB EUR FJD FKP GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LTL LVL LYD MAD MDL MGA MKD MMK MNT MOP MRO MTL MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD UYU UZS VEF VND VUV WST XAF XAG XAU XCD XDR XOF XPD XPF XPT YER ZAR ZMK ZMW ZWL".split(" ").indexOf(y))return w.error("logPurchase requires a valid currencyCode, got "+
|
|
y+", ignoring."),!1;var W=ca(Ua(P,"logPurchase","purchaseProperties",'log purchase "'+n+'"',"purchase"));B=W.next().value;W=W.next().value;if(!B)return!1;B=l.Id(n,R,y,u,W);if(B.h)for(w.info("Logged "+u+" purchase"+(1<u?"s":"")+' of "'+n+'" for '+y+" "+R+"."),y=0;y<B.j.length;y++)z.oa(ae.dd,[n,P],B.j[y]);return B.h}},pa:function(){if(d())return F.pa()},Ia:function(){if(d())return F.Ia()},Gd:function(n,u,y){d()&&(b("isPushGranted","method","isPushPermissionGranted"),F.Gd(n,u,y))},Fb:function(){if(d())return F.Fb()},
|
|
dh:function(n,u,y){if(d())return F.subscribe(y,function(B,P,R){l.Mb();"function"===typeof n&&n(B,P,R)},u)},Hh:function(n,u){if(d())return F.unsubscribe(n,u)},Lc:function(n){if(d()){if(""===n||!Ra(n,"set signature","signature",!1))return!1;m.Lc(n);return!0}},Vd:function(n){if(d())return m.Vd(n)},Fh:function(){d()&&(b("trackLocation","method"),D.watchPosition())},yh:function(){null!=l&&l.Mb();var n=new Fb(null,!0);n.store("ab.optOut","This-cookie-will-expire-in-"+Gb(n));n=Aa.Ra;(new sa(n)).setItem(n.M.cd,
|
|
n.ec,!0);c();ha=!0},hh:function(){(new Fb(null,!0)).remove("ab.optOut");var n=Aa.Ra;xa(new sa(n),n.M.cd,n.ec);c()},Kh:function(){if(null==g)throw Error("Appboy must be initialized before calling methods.");g.clearData();for(var n=Ha(Aa),u=0;u<n.length;u++)(new sa(Aa[n[u]])).clearData();aa&&(t.clearData(!0),z.clearData(!0))}}},Z={},Jf;for(Jf in K)Z[Jf]=K[Jf];Z.initialize=Y.Fd;Z.destroy=Y.Db;Z.getDeviceId=Y.Vg;Z.toggleAppboyLogging=Y.Wd;Z.setLogger=Y.Rd;Z.openSession=Y.Hc;Z.changeUser=Y.Za;
|
|
Z.getUser=Y.ob;Z.requestImmediateDataFlush=Y.Mb;Z.requestFeedRefresh=Y.Jc;Z.getCachedFeed=Y.Bc;Z.subscribeToFeedUpdates=Y.lf;Z.requestContentCardsRefresh=Y.La;Z.getCachedContentCards=Y.mb;Z.subscribeToContentCardsUpdates=Y.kf;Z.logCardImpressions=Y.Ka;Z.logCardClick=Y.Ja;Z.logCardDismissal=Y.Dc;Z.logFeedDisplayed=Y.bf;Z.logContentCardsDisplayed=Y.af;Z.logInAppMessageImpression=Y.Jb;Z.logInAppMessageClick=Y.Fc;Z.logInAppMessageButtonClick=Y.Ec;Z.logInAppMessageHtmlClick=Y.Ib;
|
|
Z.subscribeToNewInAppMessages=Y.Ch;Z.subscribeToInAppMessage=Y.mf;Z.removeSubscription=Y.N;Z.removeAllSubscriptions=Y.J;Z.logCustomEvent=Y.Hd;Z.logPurchase=Y.Id;Z.isPushSupported=Y.pa;Z.isPushBlocked=Y.Ia;Z.isPushGranted=Y.Gd;Z.isPushPermissionGranted=Y.Fb;Z.registerAppboyPushMessages=Y.dh;Z.unregisterAppboyPushMessages=Y.Hh;Z.setSdkAuthenticationSignature=Y.Lc;Z.subscribeToSdkAuthenticationFailures=Y.Vd;Z.trackLocation=Y.Fh;Z.stopWebTracking=Y.yh;Z.resumeWebTracking=Y.hh;Z.wipeData=Y.Kh;
|
|
for(var Kf in Z)"object"===typeof appboyInterface?appboyInterface[Kf]=Z[Kf]:If[Kf]=Z[Kf];var Lf="object"===typeof appboyInterface?appboyInterface:If,Mf=new function(a,b){var c=!1,d=!1,e=!1,f=!1,g=null,h=null,k=null,l=null;a.Bh(function(m){function r(v){if(27===v.keyCode&&!e&&0<document.querySelectorAll(".ab-modal-interactions").length){v=document.getElementsByClassName("ab-html-message");for(var t=!1,A=0;A<v.length;A++){var I=v[A].contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0];null!=I&&(Rb(I),t=!0)}t||(v=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0],
|
|
null!=v&&Rb(v))}}c=m[E.ig]||!1;d=m[E.hg]||m[E.jg]||!1;e=m[E.mg]||!1;f=m[E.ce]||!1;!0===m[E.Xd]&&(f=!0);g=null;k=m[E.$d]||null;l=m[E.Vf]||null;m[E.Qf]||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.3.0".replace(/\./g,
|
|
"-");if(null==document.getElementById(m)){var q=document.createElement("style");q.innerHTML=nd.Te;q.id=m;null!=k&&q.setAttribute("nonce",k);document.getElementsByTagName("head")[0].appendChild(q)}e||(document.addEventListener("keydown",r,!1),a.Ah(function(){document.removeEventListener("keydown",r)}))});return{Kg:function(){null==g&&(g=a.mf(function(m){a.display.jf(m)}));return g},jf:function(m,r,q){if(null==m)return!1;if(m instanceof Cc)return w.info("User received control for a multivariate test, logging to Braze servers."),
|
|
a.Jb(m),!0;if(!(m instanceof X))return!1;var v=m instanceof Nc;if(v&&!m.Gh&&!f)return w.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these messages.'),a.L(m,ad.ee),!1;null==r&&(r=document.body);if(m.Ha()&&0<r.querySelectorAll(".ab-modal-interactions").length)return w.info("Cannot show in-app message '"+m.message+"' because another message is being shown."),a.L(m,ad.uf),!1;if(Zb.ah()){var t=Zb.Wg();if(t===Zb.Qa.cc&&m.orientation===
|
|
Wc||t===Zb.Qa.Wc&&"PORTRAIT"===m.orientation)return w.info("Not showing "+("PORTRAIT"===m.orientation?"portrait":"landscape")+" in-app message '"+m.message+"' because the screen is currently "+(t===Zb.Qa.cc?"portrait":"landscape")),a.L(m,ad.kg),!1}if(!f){t=!1;if(m.buttons&&0<m.buttons.length)for(var A=m.buttons,I=0;I<A.length;I++)A[I].clickAction===Xc&&(t=pd(A[I].uri));else m.clickAction===Xc&&(t=pd(m.uri));if(t)return w.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these actions.'),
|
|
a.L(m,ad.ee),!1}var z=document.createElement("div");z.className="ab-iam-root v3";z.className+=m.na();yc(m)&&(z.id=m.htmlId);l&&(z.style.zIndex=l+1);r.appendChild(z);zc(m)&&(r=document.createElement("style"),r.innerHTML=m.css,r.id=Ac(m),null!=k&&r.setAttribute("nonce",k),document.getElementsByTagName("head")[0].appendChild(r));var G=m instanceof Kc;r=m.Z(a,b,function(){a.display.Td()},function(F){if(m.Ha()&&m.qf()){var D=document.createElement("div");D.className="ab-page-blocker";zc(m)||(D.style.backgroundColor=
|
|
pc(m.frameColor));l&&(D.style.zIndex=l);z.appendChild(D);if(!e){var H=(new Date).valueOf();D.onclick=function(aa){200<(new Date).valueOf()-H&&(Tc(m,F),aa.stopPropagation())}}z.appendChild(F);F.focus();m.Gc(z)}else if(G){var M=document.querySelectorAll(".ab-slideup");D=null;for(var N=M.length-1;0<=N;N--)if(M[N]!==F){D=M[N];break}"TOP"===m.slideFrom?(M=0,null!=D&&(M=D.offsetTop+D.offsetHeight),F.style.top=Math.max(M,0)+"px"):(M=0,null!=D&&(M=(window.innerHeight||document.documentElement.clientHeight)-
|
|
D.offsetTop),F.style.bottom=Math.max(M,0)+"px")}else v&&!e&&F.contentWindow.addEventListener("keydown",function(aa){27===aa.keyCode&&m.Re()});a.Jb(m);m.dismissType===uc&&setTimeout(function(){z.contains(F)&&Tc(m,F)},m.duration);"function"===typeof q&&q()},c,l);if(v||G)z.appendChild(r),m.Gc(z);return!0},Td:function(m,r,q){function v(D){for(var H=D.querySelectorAll(".ab-feed"),M=null,N=0;N<H.length;N++)H[N].parentNode===D&&(M=H[N]);null!=M?(ud(a,M),M.parentNode.replaceChild(G,M)):D.appendChild(G);setTimeout(function(){G.className=
|
|
G.className.replace("ab-hide","ab-show")},0);A&&G.focus();a.bf();yd(z,a,G)}function t(D,H){if(null==H)return D;for(var M=[],N=0;N<H.length;N++)M.push(H[N].toLowerCase());H=[];for(N=0;N<D.length;N++){for(var aa=[],ha=0;ha<D[N].categories.length;ha++)aa.push(D[N].categories[ha].toLowerCase());0<Ga(aa,M).length&&H.push(D[N])}return H}var A=!1;null==m&&(m=document.body,A=!0);var I=!1,z=null;null==r?(z=a.Bc(),Cd(z,t(z.cards,q),z.lastUpdated,null,a,d),I=!0):z=new td(t(r,q),new Date);var G=z.Z(a,d);if(I){if(null==
|
|
z.lastUpdated||6E4<(new Date).valueOf()-z.lastUpdated.valueOf())w.info("Cached feed was older than max TTL of 60000 ms, requesting an update from the server."),zd(z,a,G);var F=(new Date).valueOf();r=a.lf(function(D){var H=G.querySelectorAll(".ab-refresh-button")[0];if(null!=H){var M=500,N=parseInt(G.getAttribute(Ad));M=isNaN(N)?M-((new Date).valueOf()-F):M-((new Date).valueOf()-N);setTimeout(function(){H.className=H.className.replace(/fa-spin/g,"")},Math.max(M,0))}Cd(z,t(D.cards,q),D.lastUpdated,
|
|
G,a,d)});G.setAttribute(vd,r)}null!=m?v(m):window.onload=function(D){return function(){"function"===typeof D&&D();v(document.body)}}(window.onload)},Ue:function(){for(var m=document.querySelectorAll(".ab-feed"),r=0;r<m.length;r++)ud(a,m[r])},Eh:function(m,r,q){0<document.querySelectorAll(".ab-feed").length?a.display.Ue():a.display.Td(m,r,q)},hf:function(m,r){function q(G){for(var F=G.querySelectorAll(".ab-feed"),D=null,H=0;H<F.length;H++)F[H].parentNode===G&&(D=F[H]);null!=D?(ud(a,D),D.parentNode.replaceChild(A,
|
|
D)):G.appendChild(A);setTimeout(function(){A.className=A.className.replace("ab-hide","ab-show")},0);v&&A.focus();a.af();yd(t,a,A)}var v=!1;null==m&&(m=document.body,v=!0);var t=null;t=a.mb();"function"===typeof r&&Cd(t,r(t.cards.slice()),t.lastUpdated,null,a,d);var A=t.Z(a,d);(null==t.lastUpdated||6E4<(new Date).valueOf()-t.lastUpdated.valueOf())&&(null==h||6E4<(new Date).valueOf()-h.valueOf())&&(w.info("Cached content cards were older than max TTL of 60000 ms, requesting a sync from the server."),
|
|
zd(t,a,A),h=(new Date).valueOf());var I=(new Date).valueOf(),z=a.kf(function(G){var F=A.querySelectorAll(".ab-refresh-button")[0];if(null!=F){var D=500,H=parseInt(A.getAttribute(Ad));D=isNaN(H)?D-((new Date).valueOf()-I):D-((new Date).valueOf()-H);setTimeout(function(){F.className=F.className.replace(/fa-spin/g,"")},Math.max(D,0))}D=G.cards;"function"===typeof r&&(D=r(D.slice()));Cd(t,D,G.lastUpdated,A,a,d)});A.setAttribute(vd,z);null!=m?q(m):window.onload=function(G){return function(){"function"===
|
|
typeof G&&G();q(document.body)}}(window.onload)},$e:function(m){for(var r=document.querySelectorAll(".ab-feed"),q=0;q<r.length;q++)(null==m||null!=m&&r[q].parentNode===m)&&ud(a,r[q])},Dh:function(m,r){0<document.querySelectorAll(".ab-feed").length?a.display.$e():a.display.hf(m,r)}}}(Y,Lf);Lf.display={};Lf.display.automaticallyShowNewInAppMessages=Mf.Kg;Lf.display.showInAppMessage=Mf.jf;Lf.display.showFeed=Mf.Td;Lf.display.destroyFeed=Mf.Ue;Lf.display.toggleFeed=Mf.Eh;Lf.display.showContentCards=Mf.hf;
|
|
Lf.display.hideContentCards=Mf.$e;Lf.display.toggleContentCards=Mf.Dh;Y.display=Mf;return appboyInterface});}).call(window);
|