cf-kbf.store.cffunkb.com Open in urlscan Pro
104.18.15.157  Public Scan

URL: https://cf-kbf.store.cffunkb.com/embed/accesso.js
Submission: On June 30 via manual from DE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(e){"use strict";function t(){var e=document.documentElement;return e.matches?"matches":e.webkitMatchesSelector?"webkitMatchesSelector":e.mozMatchesSelector?"mozMatchesSelector":e.msMatchesSelector?"msMatchesSelector":e.oMatchesSelector?"oMatchesSelector":e.matchesSelector?"matchesSelector":void 0}function a(){console&&console.warn&&console.warn.apply(console.warn,arguments)}function o(e){return e.match(/GoogleTV|SmartTV|Internet.TV|NetCast|NETTV|AppleTV|boxee|Kylo|Roku|DLNADOC|CE\-HTML/i)?"tv":e.match(/Xbox|PLAYSTATION.3|Wii/i)?"tv":e.match(/iPad/i)||e.match(/tablet/i)&&!e.match(/RX-34/i)&&!e.match(/Windows NT/)||e.match(/FOLIO/i)?"tablet":e.match("Windows NT")&&e.match("ARM")?"tablet":e.match(/Linux/i)&&e.match(/Android/i)&&!e.match(/Fennec|mobi|HTC.Magic|HTCX06HT|Nexus.One|SC-02B|fone.945/i)?"tablet":e.match(/Kindle/i)||e.match(/Mac.OS/i)&&e.match(/Silk/i)?"tablet":e.match(/GT-P10|SC-01C|SHW-M180S|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC(.Flyer|\_Flyer)|Sprint.ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos.S7|Dell.Streak.7|Advent.Vega|A101IT|A70BHT|MID7015|Next2|nook/i)||e.match(/MB511/i)&&e.match(/RUTEM/i)?"tablet":e.match(/BOLT|Fennec|Iris|Maemo|Minimo|Mobi|mowser|NetFront|Novarra|Prism|RX-34|Skyfire|Tear|XV6875|XV6975|Google.Wireless.Transcoder/i)?"mobile":e.match(/Opera/i)&&e.match(/Windows.NT.5/i)&&e.match(/HTC|Xda|Mini|Vario|SAMSUNG\-GT\-i8000|SAMSUNG\-SGH\-i9/i)?"mobile":e.match(/Windows.(NT|XP|ME|9)/)&&!e.match(/Phone/i)||e.match(/Win(9|.9|NT)/i)?"desktop":e.match(/Macintosh|PowerPC/i)&&!e.match(/Silk/i)?"desktop":e.match(/Linux/i)&&e.match(/X11/i)?"desktop":e.match(/Chrome/i)&&e.match(/CrOS/)?"desktop":e.match(/Solaris|SunOS|BSD/i)?"desktop":e.match(/Bot|Crawler|Spider|Yahoo|ia_archiver|Covario-IDS|findlinks|DataparkSearch|larbin|Mediapartners-Google|NG-Search|Snappy|Teoma|Jeeves|TinEye/i)&&!e.match(/Mobile/i)?"desktop":"mobile"}function n(){return window.location.pathname.indexOf("store.php")>-1||window.location.pathname.indexOf("aaa.jsp")>-1}function r(){return window.location.pathname.indexOf("aaa.jsp")>-1}function i(e){return J&&("all"===J.new_window||J.new_window===e||"true"===J.new_window&&"mobile"===e)}function c(){var e=document.querySelectorAll("[data-datalayer]");if(e.length>0)for(var t=0;t<e.length;t++){var a=e[t].getAttribute("data-datalayer").split(",");a.forEach(function(e){var t=e.split("=");2===t.length&&Z.updateAccessoDataLayer(t[0],t[1])})}}function s(e){this.uri=e,this.parts=function(){var e=this.queryString();if(null===e)return[];var t=e.split("#");return t=t[0].split("&"),t.map(function(e){var t=e.split("=");if(1==t.length)return{k:t[0],v:""};if(2==t.length)return{k:t[0],v:t[1]};if(3==t.length)return{k:t[0],v:t.splice(1,2).join("=")};throw new Error("Invalid URL Query String: too many ='s for parameter in query string")})},this.queryString=function(){var e=this.uri.indexOf("?");return e==-1||e+2>=this.uri.length?null:this.uri.substring(e+1)}}function l(e,t){e instanceof RegExp?this.matchParam={conditions:[e],predicate:[l.AND]}:this.matchParam=e,this.template=t,this.matches=function(e){return!(null==this.getMatch(e))},this.getMatch=function(e){for(var t=e.parts(),a=this.matchParam,o=[],n=0;n<a.conditions.length;n++){var r=a.conditions[n],i=t.filter(function(e){return null!==r.exec(e.k+"="+e.v)});if(i.length>1)throw new Error("More than one match candidate found for the given url. Please refine your regular expressions to match only one candidate.");1==i.length&&o.push(i[0])}return a.predicate==l.AND&&o.length===a.conditions.length?o:a.predicate==l.OR&&o.length>=1?o:null},this.executeWith=function(e){for(var t=this.getReplacements(e),a=this.template,o=0;o<t.length;o++)a=a.replace(new RegExp("\\{"+o+"\\}","g"),t[o]);return a},this.getReplacements=function(e){for(var t=[],a=this.getMatch(e),o=0;o<a.length;o++){var n=a[o],r=this.matchParam.conditions[o],i=r.exec(n.k+"="+n.v);t.push(i.splice(1))}return t.reduce(function(e,t){return e.concat(t)})}}function p(){l.apply(this,arguments)}function d(e,t){l.call(this,e,""),this.callback=t,this.executeWith=function(e){return t(e,this.getReplacements(e))}}function u(e){if("undefined"!=typeof window.ga){var t;try{t=ga.getAll()[0].get("clientId"),"undefined"!=typeof t&&(e+=e.indexOf("?")===-1?"?":"&",e+="_cid="+t)}catch(a){console.log("client id for analytics could not be calculated")}var o;return ga(function(e){o=e.get("linkerParam")}),ga(function(t){var a=new window.gaplugins.Linker(t);e=a.decorate(e)}),e}if(void 0!==window._gat){var n=_gat._getTrackerByName();return n._getLinkerUrl(e)}return e}function h(e){try{var t=e.getElementsByTagName("iframe")[0],a=t.src.split("?")[0],o=Y.parse(t.src.split("?")[1]),n=u(a),r=Y.parse(n.split("?")[1]),i=m(o,r),c=a+"?"+Y.stringify(i);return c}catch(s){return e.getElementsByTagName("iframe")[0].src}}function m(e,t){for(var a in e)t[a]=e[a];return t}function f(e,t){J=J?J:{};var a=m(t,J);return e.replace(/\{\{(?:#(.+?)#)?\s*(.+?)\s*\}\}/g,function(e,t,o){var n=a[o];return n===!1?"":n?(t||"")+n:t?e:""})}function g(e){for(var t=document.getElementsByTagName("script"),a=0;a<t.length;a++){var o=t[a].src;if(o.indexOf(e)>=0)return o}}function y(e){var t=e.indexOf(":",6)!==-1,a={},o=document.createElement("a");return o.href=e,a.path=o.pathname.split("/"),a.path[0]||a.path.splice(0,1),0==t&&o.host.indexOf(":")>0?a.host=o.host.split(":")[0]:a.host=o.host,a.protocol=o.protocol,a.href=e,a}function w(e){return["complete","interactive"].indexOf(document.readyState)>-1?e.apply():void(document.onreadystatechange=function(){"interactive"===document.readyState&&e.apply()})}function v(e,t){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css";var n=e+"{";t.forEach(function(e){n+=e}),n+="}",o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a.appendChild(o)}function A(e,t){void 0!==t&&"string"==typeof t&&(t=t.replace("accesso=",""));var a=b(t);Q.open(e,a,void 0,t)}function b(e){var t="";switch(e){case"all":t="packageList";break;case"checkout":t="cartView";break;case"cartView":t="cartView";break;case"clearcart":t="reset";break;case"reset":t="reset";break;case"activation":t="packageList";break;case"orderLookup":t="orderLookup";break;case"knowledgeBaseView":t="open-knowledge-base";break;case"promoBox":t="/packageList/promoOpen";break;case"profile-login/signin":t="/profile-login/signin";break;default:t="packageList/keyword/"+e}return t}function k(e,t,a){var o=document.querySelectorAll(e);if(void 0!==o)for(var n=o.length-1;n>=0;n--)o[n].innerHTML=f(t)}function S(e,a,o){document.addEventListener(a,function(a){for(var n=a.target,r=t();n&&n!=this;n=n.parentNode)if(n[r](e)){o.call(n,a);break}},!1)}function x(e){S(e,"click",function(e){!this.name&&this.href&&this.href.split("#").length>1&&this.href.split("#")[1].length>0&&A(e,this.href.split("#")[1])})}function T(e){var t=!0;return null!==e&&"undefined"!=typeof e||(t=!1),t}function P(e){var t,a=e.filter(function(e){return e.matches(new s(document.URL))});if(a.length>1){if(t=a.find(function(e){return e instanceof p}),!t)throw new Error("More than one hook matched in the URL. Please disambiguate the URL");a=[t]}if(1==a.length){var o=a[0],r=o.executeWith(new s(document.URL));n()?L(r):Q.open(null,r)}else n()&&L("")}function C(e,t){var a={v5:{qty:"[data-accesso-quantity]",total:"[data-accesso-total]"},v4:{qty:".accesso.quantity",total:".accesso.total"}};Array.prototype.slice.call(document.querySelectorAll(a[e].qty)).forEach(function(e){var a=t.qty;e.innerHTML=a,J.quantity=a}),Array.prototype.slice.call(document.querySelectorAll(a[e].total)).forEach(function(e){var a=t.total;e.innerHTML=a,J.total=a})}function E(){try{if(J&&J.url){var e=document.createElement("div");e.setAttribute("id","accesso-shim"),e.setAttribute("style","overflow:hidden;height:0px;"),e.innerHTML=f(J.templates.shim),document.body.appendChild(e)}}catch(t){}}function N(){m(Y.parse(g(J.script_name)),J),c(),k(".accesso.quickcart",J.templates.quickcart),k(".accesso.promo",J.templates.promo),k(".accesso.receiptform",J.templates.receiptform),G||(G=!0,window.addEventListener("message",function(e){try{var t=JSON.parse(e.data);if("[object Array]"!==Object.prototype.toString.call(t)||2!==t.length)return;var a=t[0]||0,o=t[1]||0;C("v4",{total:o,qty:a})}catch(n){}},!1),S(".accesso.promo .promobtn","click",function(e){var t=this.parentNode.querySelector(".accesso.promo .promotxt").value;Q.open(e,"packageList/promocode/"+t)}),S(".accesso.receiptform .receiptbtn","click",function(e){var t=this.parentNode.parentNode.querySelector(".accesso.receiptform .receiptemailtxt").value,a=this.parentNode.parentNode.querySelector(".accesso.receiptform .receiptpntxt").value;Q.open(e,"orderLookup/"+t+"/"+a)}),S("a","click",function(e){if(!this.name&&this.href.split("#").length>1&&this.href.split("#")[1].length>0){var t=document.querySelectorAll("a"),a=[];if(Array.prototype.forEach.call(t,function(e){"undefined"!=typeof e.name&&""!=e.name&&a.push(e.name)}),a.length>0&&a.indexOf(this.href.split("#")[1])>-1)return;0===J.host.indexOf("sf-")?this.href.split("#")[1].indexOf("accesso=")>-1&&A(e,this.href.split("#")[1]):A(e,this.href.split("#")[1])}}))}function O(e){(window.innerWidth<=1024||window.innerHeight<=840)&&e.scrollIntoView(!1)}function L(t){var n=Y.parse(J.search);!n.hasOwnProperty("merchant_id")&&n.hasOwnProperty("m")&&(n.merchant_id=n.m,delete n.m,J.search="?"+Y.stringify(n));var c=window.navigator?window.navigator.userAgent:window.request?window.request.headers["user-agent"]:"No User Agent",l=o(c),p="tablet"===l||"mobile"===l;"desktop"===l&&void 0!==screen&&void 0!==screen.width&&screen.width<1024&&(p=!0);var d=q();"localhost"===d&&window.location.port&&(d+=":"+window.location.port);var u="https://"+d+"/"+t+J.search;if(p&&!r())i("mobile")?window.open(u,"_blank"):window.location.assign(u);else try{var h=document.getElementById("override");h.src=u,h.allow="geolocation; microphone; camera",window.addEventListener("message",function(t){var o,n,r,i=[];try{if(o=JSON.parse(t.data),!o||"string"!=typeof o.messageType||o.messageType.indexOf("accesso")===-1)return;switch(o.messageType){case"accesso:checkForApplePay":n=JSON.stringify({isAvailable:"function"==typeof window.ApplePaySession&&ApplePaySession.supportsVersion(o.version)&&ApplePaySession.canMakePayments(),messageType:"accesso:applePayAvailability"}),h.contentWindow.postMessage(n,W);break;case"accesso:applePayStartSession":V(h,o,t);break;case"accesso:applePayCancel":D&&D.oncancel(),D=null;break;case"accesso:applePayValidateResponse":D&&D.completeMerchantValidation(o.data);break;case"accesso:applePayPaymentResponse":D&&D.completePayment({status:o.status});break;case"accesso:applePayShippingMethodUpdated":D&&D.completeShippingMethodSelection(o.data);break;case"accesso:applePayShippingContactUpdated":if(D){D.completeShippingContactSelection(o.data);break}case"accesso:getCurrentUrl":n=JSON.stringify({url:e.location.href,messageType:"accesso:setCurrentUrl"}),h.contentWindow.postMessage(n,"*");break;case"accesso:accessoPayRedirect":if("GET"===o.method)return void(e.location.href=o.url);if("POST"===o.method){var c,l,p,d="acsp_rdfrm_main",u=document.getElementById(d);u||(c=document.createElement("form"),document.body.appendChild(c)),c.id=d,c.name=d,c.action=o.url,c.enctype="application/x-www-form-urlencoded",c.innerHTML="",c.style.display="none",c.method=o.method;for(p in o.redirectParams)l=document.createElement("input"),l.type="hidden",l.name=p,l.value=o.redirectParams[p],c.appendChild(l);c.submit()}break;case"accesso:accessoPayClearQueryParams":if(Array.isArray(o.queryParams)){try{r=new s(e.location.href).parts()}catch(m){r=[]}r.forEach(function(e){o.queryParams.indexOf(e.k)===-1&&i.push(e.k+"="+e.v)}),e.history.replaceState({},document.title,e.location.pathname+(i.length?"?"+i.join("&"):""))}}}catch(f){a("[accesso postMessage] error... "+f)}})}catch(m){window.console&&console.log&&console.log("IFrame with id: override, may be missing from parent page.  Please check page source. ")}}function q(){var e=document.location.hostname;return window.location.pathname.indexOf("aaa.jsp")>-1&&(e="sf-aaa.secure.ceiris.com",document.location.hostname.match(/shop/gi)&&(e="sf-aaa.secure.accesso.com"),document.location.hostname.match(/stg-shop/gi)&&(e="sf-aaa.stg-store.accesso.com"),document.location.hostname.match(/dev-shop/gi)&&(e="sf-aaa.dev-secure.accesso.com"),document.location.hostname.match(/test-shop/gi)&&(e="sf-aaa.test-secure.accesso.com")),e}function M(){var e={},t=document.querySelector("[data-accesso]");t&&(t.getAttribute("data-accesso").split(",").forEach(function(t){e[t.split("=")[0]]=t.split("=")[1]}),m(e,J)),c(),k("[data-accesso-quickcart]",J.templates.quickcart),k("[data-accesso-promoform]",J.templates.promo),k("[data-accesso-receiptform]",J.templates.receiptform),H||(H=!0,S("[data-accesso-promoform] .promobtn","click",function(e){var t=this.parentNode.querySelector("[data-accesso-promoform] .promotxt").value;t&&(t=t.replace(/\//g,""),Q.open(e,"packageList/promocode/"+encodeURIComponent(t)))}),S("[data-accesso-orderlookup]","click",function(e){Q.open(e,"orderLookup")}),S("[data-accesso]","click",function(e){this.getAttribute("data-accesso");return!0}),S("[data-accesso-all]","click",function(e){var t=this.getAttribute("data-accesso-all");if(!T(t))throw new Error("Unable to launch (data-accesso-all) due to invalid target.  Please ensure that the tag is formatted properly.");R(e,t)}),S("[data-accesso-launch]","click",function(e){var t=this.getAttribute("data-accesso-launch");if(null===t)throw new Error("Unable to launch (data-accesso-launch) due to invalid target.  Please ensure that the tag is formatted properly.");A(e,t)}),S("[data-accesso-keyword]","click",function(e){var t=this.getAttribute("data-accesso-keyword");t||(t=this.getAttribute("data-accesso-keyword")),Q.open(e,"packageList/keyword/"+t)}),S("[data-accesso-promo]","click",function(e){var t=this.getAttribute("data-accesso-promo");Q.open(e,"packageList/promocode/"+t)}),S("[data-accesso-package]","click",function(e){var t=this.getAttribute("data-accesso-package");t||(t=this.getAttribute("data-accesso-package")),Q.open(e,"packageDetails/"+t)}),S("[data-accesso-gift-membership]","click",function(e){if(!T(this.getAttribute("data-accesso-gift-membership")))throw new Error("Unable to launch (data-accesso-gift-membership) due to invalid target.  Please ensure that the tag is formatted properly.");Q.open(e,"gift-membership")}),S("[data-accesso-module]","click",function(e){var t=this.getAttribute("data-accesso-module");if(!T(t))throw new Error("Unable to launch (data-accesso-module) due to invalid target.  Please ensure that the tag is formatted properly.");var a=t,o=this.getAttribute("data-accesso-params");T(o)&&o.split(",").forEach(function(e){a+="/"+e}),Q.open(e,a)}),window.addEventListener("message",function(e){try{var t=JSON.parse(e.data);if("[object Array]"!==Object.prototype.toString.call(t)||2!==t.length)return;var a=t[0]||0,o=t[1]||0;C("v5",{total:o,qty:a})}catch(n){}},!1))}function R(e,t){var a,o,n,r=[],i=!1;if(t.indexOf(":")===-1)throw new Error("Unable to launch data-accesso-all. Please ensure that it has a key value pair");switch(r=t.split(":"),a=r[0],o=r[1],a){case"keyword":n="packageList/keyword/"+o;break;case"package":n="packageDetails/"+o;break;case"gift-membership":n="gift-membership";break;case"promo":n="packageList/promocode/"+o;break;case"module":n=I(o,e);break;case"launch":i=!0,n=o;break;default:i=!0,n=""}i?A(e,n):Q.open(e,n)}function I(e,t){var a=t.target.getAttribute("data-accesso-params");return T(a)?a.split(",").reduce(function(e,t){return e+"/"+t},e):e}function U(e,t){void 0!==e&&void 0!==t&&(_[e]=t)}function V(e,t,o){var n=t.version,r=t.paymentRequest;try{D=new ApplePaySession(n,r),B(e,D,r),D.begin()}catch(i){a("[ApplePay Error]: "+i)}}function B(e,t,a){function o(t){e.contentWindow.postMessage(JSON.stringify({host:window.location.host,messageType:"accesso:applePayValidateMerchant",validationURL:t.validationURL}),W)}function n(){t.completePaymentMethodSelection(s)}function r(t){e.contentWindow.postMessage(JSON.stringify({host:window.location.host,messageType:"accesso:applePayShippingMethodSelected",shippingMethod:t.shippingMethod,updatedTotal:s,paymentRequest:a}),W)}function i(t){e.contentWindow.postMessage(JSON.stringify({host:window.location.host,messageType:"accesso:applePayShippingContactSelected",shippingContact:t.shippingContact,updatedTotal:s,paymentRequest:a}),W)}function c(t){e.contentWindow.postMessage(JSON.stringify({host:window.location.host,messageType:"accesso:applePayAuthorized",payment:t.payment,paymentRequest:a}),W)}var s={newTotal:a.total};t.oncancel=function(){e.contentWindow.postMessage(JSON.stringify({messageType:"accesso:applePayCancel"}),W)},t.onvalidatemerchant=o,t.onshippingmethodselected=r,t.onshippingcontactselected=i,t.onpaymentmethodselected=n,t.onpaymentauthorized=c}var D,W,H,G;l.AND=1,l.OR=2,d.prototype=new l,p.prototype.constructor=l;var J={promoDefault:"",promoText:"Promo Code",emailText:"Email Address",phoneText:"Phone Numer",promoSubmit:"Use Code",receiptSubmit:"Find Receipt",script_name:"accesso.js",total:"0.00",quantity:0,url:"",l:void 0,autoscroll:!0,templates:{quickcart:'<h3>Shopping Cart</h3><div>  <strong>Items:</strong>  <span class="accesso quantity" data-accesso-quantity>0</span>  <span class="divider">&nbsp;</span>  <strong>Total:</strong> $  <span class="accesso total" data-accesso-total>0.00</span></div><div>  <a data-accesso-launch="cartView" href="#checkout">Checkout</a>  <span class="divider">|</span>  <a data-accesso-launch="reset" href="#clearcart">Clear Cart</a></div>',receiptform:'<form class="receiptform">  <div>    <label>{{emailText}}</label>    <input name="cc" placeholder="{{emailText}}" type="text"     class="receiptemailtxt" value="">  </div>  <div>    <label>{{phoneText}}</label>    <input placeholder="{{phoneText}}" name="ph"      class="receiptpntxt" type="text" value="">  </div>  <div>    <label>&nbsp;</label>    <input class="receiptbtn" type="submit"      value="{{receiptSubmit}}">  </div></form>',promo:'<form class="promoform">  <input class="promotxt" type="text"\tplaceholder="{{promoText}}" value="{{promoDefault}}">  <input class="promobtn" type="submit" value="{{promoSubmit}}"></form>',overlay:'<div class="accesso-backdrop"></div><div id="overlayCloseContainer">\t<div class="accesso-close" role="button" aria-label="Close Store" tabindex="0"></div>\t<div class="accesso-frame">\t\t<iframe title="Accesso E-commerce Store Overlay" id="override" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen allow="geolocation; microphone; camera" frameBorder="0" onload="this.contentWindow.focus()" width="100%" height="100%"     \t\tsrc="{{url}}/{{path}}?{{qs}}">\t\t</iframe>\t</div></div>',shim:'<iframe style="visibility: hidden" src="{{url}}/embed/shim.html?_v=5.20"></iframe>'}};Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var a,o;for(a=0,o=this.length;a<o;++a)this.hasOwnProperty(a)&&e.call(t,this[a],a,this)});var X=function(e){if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var t,a=Object(this),o=a.length>>>0,n=0;if(arguments.length>=2)t=arguments[1];else{for(;n<o&&!n in a;)n++;if(n>=o)throw new TypeError("Reduce of empty array with no initial value");t=a[n++]}for(;n<o;n++)n in a&&(t=e(t,a[n],n,a));return t};"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=X);var F=function(e){if(void 0===this||null===this)throw new TypeError;var t=Object(this),a=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var o=[],n=arguments.length>=2?arguments[1]:void 0,r=0;r<a;r++)if(r in t){var i=t[r];e.call(n,i,r,t)&&o.push(i)}return o};Array.prototype.filter||(Array.prototype.filter=F);var j=function(e,t){var a,o,n;if(null==this)throw new TypeError(" this is null or not defined");var r=Object(this),i=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(a=t),o=new Array(i),n=0;n<i;){var c,s;n in r&&(c=r[n],s=e.call(a,c,n,r),o[n]=s),n++}return o};if(Array.prototype.map||(Array.prototype.map=j),navigator.appVersion.indexOf("MSIE 8")>0){var z=Array.prototype.slice;Array.prototype.slice=function(){if(this instanceof Array)return z.apply(this,arguments);for(var e=[],t=arguments.length>=1?arguments[0]:0,a=arguments.length>=2?arguments[1]:this.length,o=t;o<a;o++)e.push(this[o]);return e}}window.addEventListener||(window.addEventListener=window.attachEvent);var K,Y={parse:function(e){var t={};return e.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(e,a,o,n){t[a]=n}),t},stringify:function(e){var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(encodeURIComponent(a)+"="+encodeURIComponent(e[a]));var o=t.join("&");return o}},Q={open:function(t,c,l,p){if(null!==t&&t.preventDefault(),null===document.getElementById("accesso")&&J.url){if(J.m&&(l=m(l,{_m:J._m})),J.e&&(l=m(l,{_e:J.e})),J.l&&(l=m(l,{l:J.l})),J.d&&(l=m(l,{_d:J._d})),J.a&&(l=m(l,{_a:J._a})),void 0!==J.search&&J.search.length>1){var d=Y.parse(J.search);["acsop_aid","acsop_er","acsop_erd","acsop_pid","acsop_prid","acsop_pt","acsop_bsc","acsop_pi","acsop_co","acsop_reco","acsop_st","acsop_t","cart_id","cart_key","session_id"].forEach(function(e){var t={};d[e]&&(t[e]=d[e],l=m(l,t))}),d.view&&(c=d.view),"cartRecovery"==d.view&&d.email&&(c+="/"+d.email);try{l=m(l,d)}catch(g){}}try{void 0===l&&(l={}),void 0!==window.sfCustomerID&&(l=m(l,{sfCustomerID:window.sfCustomerID})),void 0!==window.sfPark&&(l=m(l,{sfPark:window.sfPark})),l=m(l,_)}catch(g){}var y=window.navigator?window.navigator.userAgent:window.request?window.request.headers["user-agent"]:"No User Agent",w=o(y),A="tablet"===w||"mobile"===w;"desktop"===w&&void 0!==screen&&void 0!==screen.width&&screen.width<1024&&(A=!0);var b=J.url+"/"+c+"?"+Y.stringify(l);if("undefined"!=typeof window.accessoClient&&"undefined"!=typeof window.accessoClient.landingPageURL){if(A&&!r())i("mobile")?window.open(b,"_blank"):window.location.assign(b);else{var k=window.accessoClient.landingPageURL;if(k.indexOf("?")>-1){var S=k.split("?");k+=""===S[1]?"keyword="+p:"&keyword="+p}else k+="?keyword="+p;document.location=k}return}var x="false"!==J.autoscroll;if(x?window.top.innerHeight<=630?window.scrollTo(0,148):window.top.innerHeight<=768?window.scrollTo(0,108):window.scrollTo(0,0):(window.scrollY<=45&&window.scrollTo(0,45),v("@media(max-width:1024px), (max-height:840px) {#overlayCloseContainer",["top:"+(window.pageYOffset-(window.top.innerHeight<=630?70:100))+"px;"])),A&&!r())i("mobile")?window.open(u(b),"_blank"):window.location.assign(u(b));else if(!n()){if(i("desktop"))return void window.open(b,"_blank");var T,P=document.createElement("div");P.setAttribute("id","accesso"),P.innerHTML=f(J.templates.overlay,{qs:Y.stringify(l),path:c}),T=P.getElementsByTagName("iframe")[0],T.src=h(P),window.addEventListener("message",function C(t){var o,n,r,i,c=[];try{if(o=JSON.parse(t.data),!o||"string"!=typeof o.messageType||o.messageType.indexOf("accesso")===-1)return;switch(o.messageType){case"accesso:willClose":window.removeEventListener("message",C,!1),Q.close();break;case"accesso:addScriptToParent":void 0!==o.scriptSrc&&(n=document.createElement("script"),n.type="text/javascript",n.src=o.scriptSrc,document.body.appendChild(n));break;case"accesso:getOriginOfParent":r=JSON.stringify({parentOriginUrl:window.location.protocol+"//"+window.location.host,messageType:"accesso:parentOriginInfo"}),T.contentWindow.postMessage(r,"*");break;case"accesso:checkForApplePay":r=JSON.stringify({isAvailable:"function"==typeof window.ApplePaySession&&ApplePaySession.supportsVersion(o.version)&&ApplePaySession.canMakePayments(),messageType:"accesso:applePayAvailability"}),T.contentWindow.postMessage(r,W);break;case"accesso:applePayStartSession":V(T,o,t);break;case"accesso:applePayCancel":D&&D.oncancel(),D=null;break;case"accesso:applePayValidateResponse":D&&D.completeMerchantValidation(o.data);break;case"accesso:applePayPaymentResponse":D&&D.completePayment({status:o.status});break;case"accesso:applePayShippingMethodUpdated":D&&D.completeShippingMethodSelection(o.data);break;case"accesso:applePayShippingContactUpdated":D&&D.completeShippingContactSelection(o.data);break;case"accesso:getCurrentUrl":r=JSON.stringify({url:e.location.href,messageType:"accesso:setCurrentUrl"}),T.contentWindow.postMessage(r,"*");break;case"accesso:accessoPayRedirect":if("GET"===o.method)return void(e.location.href=o.url);if("POST"===o.method){var l,p,d,u="acsp_rdfrm_main",h=document.getElementById(u);h||(l=document.createElement("form"),document.body.appendChild(l)),l.id=u,l.name=u,l.action=o.url,l.enctype="application/x-www-form-urlencoded",l.innerHTML="",l.style.display="none",l.method=o.method;for(d in o.redirectParams)p=document.createElement("input"),p.type="hidden",p.name=d,p.value=o.redirectParams[d],l.appendChild(p);l.submit()}break;case"accesso:accessoPayClearQueryParams":if(Array.isArray(o.queryParams)){try{i=new s(e.location.href).parts()}catch(m){i=[]}i.forEach(function(e){o.queryParams.indexOf(e.k)===-1&&c.push(e.k+"="+e.v)}),e.history.replaceState({},document.title,e.location.pathname+(c.length?"?"+c.join("&"):""))}}}catch(f){a("[accesso postMessage] error... "+f)}}),document.body.appendChild(P),document.querySelector("#accesso .accesso-close").onclick=function(){T.contentWindow.postMessage("accesso:requestsClose","*")},document.querySelector("#accesso .accesso-close").onkeydown=function(e){var t=e.keyCode;13===t&&T.contentWindow.postMessage("accesso:requestsClose","*")}}}},setupStyles:function(){v("#accesso",["position: fixed;","width: 100%;","height: 100%;","top: 0px;","z-index: 2147483647;"]),v("#overlayCloseContainer",["max-width: 1090px;","width: 100%;","height: 615px;","position: fixed;","right: 0;","left: 0;","margin-left: auto;","margin-right: auto;","top: 50px;"]),v("#accesso .accesso-frame",["position:fixed;","top:100px;","bottom:100px;","left:0;","right:0;","width:100%;","margin:0 auto;","max-width: 1024px;","height: 635px;","overflow:hidden;","background-color: white !important;"]),v("#accesso .accesso-frame iframe",["width: 100%;","max-width: 1024px;","background-color: white !important;","border: none !important;","border-radius: none !important;"]),v("@media(max-width:1024px), (max-height:840px) {#accesso .accesso-frame",["width: 94%;","position:absolute;"]),v("@media(max-width:1024px), (max-height:840px) {#accesso",["position:absolute;"]),v("@media(max-width:1024px), (max-height:840px) {#overlayCloseContainer",["position:absolute;"]),v("#accesso .accesso-frame iframe#override",["border: none !important;","border-rad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YwlvkuiWdcCOPyW58JiBvd6EybwK55u4YpOyQVn8r64hXWv4smc+TrcjA9bILEkzzMFxjK4uuTi1/BEwAfjOz2pBz4qSaKKNVZgJIPVJRa+HtNXwdU4cC/WpBJqb6KnijVS4GAGfSV2/jhun+bKVi1xUyxRaaCrinWwSFA4i+7JuXqSfBPwoSaFSE8i3cUGNWY3zmF/kSy1J4z7Gyjf3QS8lsSbTUJ6JfrGi5pINoFHUsH8X7IqdeJEitV/0/Eodma8J5XLbEtnImcb3oilplREI2k49mLuLILPxSe4Jhjb6pVk53FPqqFufJoiZKZyBb5IFj0djHPTVcWj8fRTuC2ev2qGZz6cSHkqukeb9QXfJqqNJGIN4e00G2WlC29l7bLoWhvdpXvDDryUAnJO7vUR7EvjMlaT1ZYkra/Bhuy4Em/fiRfx16U2p114AQ+l5ysj5xMNd1S9fSbdcW1VvGFSe764ppaobc/3lW3P/xkAyf7K115CNQMAAAAASUVORK5CYII=";v("#accesso .accesso-close",["position: relative;","top: 15px;","left: 0;","width: 32px;","height: 32px;","text-align: center;","color: #f6f6f6;","float:right;","cursor:pointer;","background: transparent url(data:image/jpeg;charset=utf-8;base64,"+e+") no-repeat center center;"]),v("@media(max-width:1024px), (max-height:840px) {#accesso .accesso-close",["top:60px;"]);var t="rgba(0,0,0,0.6)",a="#99000000",o="( left,"+t+"0%,"+t+"100%);";
v("#accesso .accesso-backdrop",["position:fixed;","top:0px;","left:0px;","right:0px;","bottom:0px;","border:none;","margin:0;","padding:0;","border:2px black solid;","background: linear-gradient"+o+";","background: -moz-linear-gradient"+o+";","background: -o-linear-gradient"+o+";","background: -ms-linear-gradient"+o+";","background: -webkit-linear-gradient"+o+";","background:-webkit-gradient( linear, left top, right top, color-stop(0%,"+t+"), color-stop(100%,"+t+"));","filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='"+a+"', endColorstr='"+a+"', GradientType=1);"])},close:function(){document.body.removeChild(document.querySelector("#accesso"))}};window.onresize=function(){var e=document.getElementById("override");e&&(clearTimeout(K),K=setTimeout(function(){O(e)},200))};var Z={};Z.options=J,Z.overlay=Q,Z.URL=s,Z.URLHook=l,Z.URLCallbackHook=d,Z.filterPolyfill=F,Z.mapPolyfill=j,Z.reducePolyfill=X,Z.attachListener=x,Z.bootstrapCompleteHandler=void 0,Z.validateReference=T,Z.reinitializeHooks=M,Z.updateAccessoDataLayer=U;var _={};e.accesso=Z,w(function(){var e=y(g(J.script_name));if(e.host&&e.path.length>1){var t=e.path.filter(function(e){return"me-slb"==e.toLowerCase()||"me-tp"==e.toLowerCase()});t.length>0?J.url="//"+e.host+"/"+e.path[0]:J.url="//"+e.host}e.host&&e.host.indexOf("localhost")!=-1&&(J.url="//"+e.host),J.host=e.host,W=e.protocol+"//"+e.host,void 0!==window.location.search&&(J.search=window.location.search);var a="",o=document.querySelector("[data-accesso-integration-version]");if("undefined"!=typeof o&&null!=o&&(a=o.getAttribute("data-accesso-integration-version")),"4"==a?N():document.querySelectorAll("[data-accesso],[data-accesso-launch],[data-accesso-quantity],[data-accesso-total],[data-accesso-package],[data-accesso-promo],[data-accesso-keyword],[data-accesso-module]").length>=1||"5"==a?M():N(),E(),Q.setupStyles(),P([new p({conditions:[/(acsop_st)=(.*)/,/acsop_(reco|prid)=(.*)/,/(acsop_t)=(.*)/],predicate:l.AND},"accesso-pay"),new l(/(promo_?code|promoCode)=(.*)/,"packageList/promocode/{1}"),new l(/(keyword)=(.*)/,"packageList/keyword/{1}"),new l(/(package|packageID|package_id)=(.*)/,"packageDetails/{1}"),new l(/(promo_?code|promoCode)=(.*)\/(gift_code)=(.*)/,"packageList/promocode/{1}/gift_code/{3}"),new l({conditions:[/(profile_email)=(.*)/,/(profile_temp_password)=(.*)/],predicate:l.AND},"profile-manager/changePasswordFromEmail/{1}/{3}"),new l(/(swap_token)=(.*)/,"profile-manager/changePasswordFromEmailToken/{1}"),new l(/(cultural_member_benefits)=(.*)/,"cultural-member-benefits/reset"),new l({conditions:[/(flow)=(.*)/,/(keywordforfolio)=(.*)/,/(folioid)=(.*)/],predicate:l.AND},"{1}/{3}/{5}"),new l(/(gift_membership)=(.*)/,"gift-membership"),new l(/(open_promo_box)=(.*)/,"/packageList/promoOpen"),new l(/(open_knowledge_base)=(.*)/,"/open-knowledge-base"),new d({conditions:[/(module)=(.*)/],predicate:l.AND},function(e,t){var a="",o=t[1].split(",");return o.forEach(function(e){e=decodeURIComponent(e).trim(),e.length>0&&(a+="/"+e)}),a}),new d({conditions:[/(cart_?id)=(.*)/,/(cart_?key)=(.*)/,/(session_?id)=(.*)/],predicate:l.AND},function(e,t){return J.search=J.search.replace(new RegExp("cartid","g"),"cart_id"),J.search=J.search.replace(new RegExp("cartkey","g"),"cart_key"),J.search=J.search.replace(new RegExp("sessionid","g"),"session_id"),""})]),Z&&"function"==typeof Z.bootstrapCompleteHandler)try{Z.bootstrapCompleteHandler()}catch(n){}})}(this);
//# sourceMappingURL=accesso.js.map