1(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1:function(e,t,n){"use strict";(function(e){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;window._sz&&_sz.push(["event",e,t,n]),window.dataLayer&&window.dataLayer.push({event:"gaEvent",eventCategory:e,eventAction:t,eventLabel:n,eventValue:r,eventInteraction:o})}n.d(t,"a",(function(){return r})),e.trackEvent=r}).call(this,n(58))},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),o=n.n(r),a=n(78),i=n.n(a);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}"undefined"!=typeof document&&i.a.setAppElement(document.querySelector(".account-container")?".account-container":"body");var u=100,l={className:{base:"modal-dialog modal-dialog--shadow",afterOpen:"modal-dialog--visible modal-dialog--entering modal-dialog--auto-width",beforeClose:"modal-dialog--visible"},overlayClassName:{base:"modal-dialog-clickeater",afterOpen:"modal-dialog-clickeater--entering",beforeClose:"modal-dialog-clickeater--exiting"},closeTimeoutMS:u};t.b=function(e){var t=e.isOpen,n=e.onRequestClose,r=e.header,a=e.theme,u=e.width,d=e.height,m=s(e,["isOpen","onRequestClose","header","theme","width","height"]),f=JSON.parse(JSON.stringify(l)),h="modal-dialog__header",v="modal-dialog__close-button";"active"===a&&(h+=" background--active-blue"),"positive"===a&&(h+=" background--success-green"),"negative"===a&&(h+=" background--error-red"),"active"!==a&&"positive"!==a&&"negative"!==a||(h+=" text--white",v+=" modal-dialog__close-button--light"),"helix-unlock"===a&&(f.className.base+=" modal-dialog--helix-variant");var g={content:{width:"number"==typeof u?"".concat(u,"px"):"",height:"number"==typeof d?"".concat(d,"px"):""}};return o.a.createElement(i.a,c({isOpen:t},f,m,{style:g,onRequestClose:n}),o.a.createElement("header",{className:h},o.a.createElement("button",{type:"button",className:v,onClick:n},"Close"),o.a.createElement("span",null,r)),o.a.createElement("div",{className:"modal-dialog__content"},e.children))}},120:function(e,t,n){"use strict";function r(e,t,n,r){return n*(e/=r)*e+t}function o(e,t,n,r){return-n*(e/=r)*(e-2)+t}function a(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function i(e,t,n,r){return n*(e/=r)*e*e+t}function c(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function s(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}function u(e,t,n,r){return n*(e/=r)*e*e*e+t}function l(e,t,n,r){return-n*((e=e/r-1)*e*e*e-1)+t}function d(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t}function m(e,t,n,r){return n*(e/=r)*e*e*e*e+t}function f(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t}function h(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t}function v(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t}function g(e,t,n,r){return n*Math.sin(e/r*(Math.PI/2))+t}function y(e,t,n,r){return-n/2*(Math.cos(Math.PI*e/r)-1)+t}function p(e,t,n,r){return 0==e?t:n*Math.pow(2,10*(e/r-1))+t}function b(e,t,n,r){return e==r?t+n:n*(1-Math.pow(2,-10*e/r))+t}function w(e,t,n,r){return 0==e?t:e==r?t+n:(e/=r/2)<1?n/2*Math.pow(2,10*(e-1))+t:n/2*(2-Math.pow(2,-10*--e))+t}function _(e,t,n,r){return-n*(Math.sqrt(1-(e/=r)*e)-1)+t}function S(e,t,n,r){return n*Math.sqrt(1-(e=e/r-1)*e)+t}function E(e,t,n,r){return(e/=r/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t}function O(e,t,n,r){var o=1.70158,a=0,i=n;if(0==e)return t;if(1==(e/=r))return t+n;if(a||(a=.3*r),i<Math.abs(n)){i=n;o=a/4}else o=a/(2*Math.PI)*Math.asin(n/i);return-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)+t}function A(e,t,n,r){var o=1.70158,a=0,i=n;if(0==e)return t;if(1==(e/=r))return t+n;if(a||(a=.3*r),i<Math.abs(n)){i=n;o=a/4}else o=a/(2*Math.PI)*Math.asin(n/i);return i*Math.pow(2,-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+n+t}function L(e,t,n,r){var o=1.70158,a=0,i=n;if(0==e)return t;if(2==(e/=r/2))return t+n;if(a||(a=r*(.3*1.5)),i<Math.abs(n)){i=n;o=a/4}else o=a/(2*Math.PI)*Math.asin(n/i);return e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+n+t}function q(e,t,n,r,o){return null==o&&(o=1.70158),n*(e/=r)*e*((o+1)*e-o)+t}function C(e,t,n,r,o){return null==o&&(o=1.70158),n*((e=e/r-1)*e*((o+1)*e+o)+1)+t}function k(e,t,n,r,o){return null==o&&(o=1.70158),(e/=r/2)<1?n/2*(e*e*((1+(o*=1.525))*e-o))+t:n/2*((e-=2)*e*((1+(o*=1.525))*e+o)+2)+t}function j(e,t,n,r){return n-M(x,r-e,0,n)+t}function M(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t}function T(e,t,n,r){return e<r/2?.5*j(x,2*e,0,n)+t:.5*M(x,2*e-r,0,n)+.5*n+t}n.r(t),n.d(t,"easeInQuad",(function(){return r})),n.d(t,"easeOutQuad",(function(){return o}
1)),n.d(t,"easeInOutQuad",(function(){return a})),n.d(t,"easeInCubic",(function(){return i})),n.d(t,"easeOutCubic",(function(){return c})),n.d(t,"easeInOutCubic",(function(){return s})),n.d(t,"easeInQuart",(function(){return u})),n.d(t,"easeOutQuart",(function(){return l})),n.d(t,"easeInOutQuart",(function(){return d})),n.d(t,"easeInQuint",(function(){return m})),n.d(t,"easeOutQuint",(function(){return f})),n.d(t,"easeInOutQuint",(function(){return h})),n.d(t,"easeInSine",(function(){return v})),n.d(t,"easeOutSine",(function(){return g})),n.d(t,"easeInOutSine",(function(){return y})),n.d(t,"easeInExpo",(function(){return p})),n.d(t,"easeOutExpo",(function(){return b})),n.d(t,"easeInOutExpo",(function(){return w})),n.d(t,"easeInCirc",(function(){return _})),n.d(t,"easeOutCirc",(function(){return S})),n.d(t,"easeInOutCirc",(function(){return E})),n.d(t,"easeInElastic",(function(){return O})),n.d(t,"easeOutElastic",(function(){return A})),n.d(t,"easeInOutElastic",(function(){return L})),n.d(t,"easeInBack",(function(){return q})),n.d(t,"easeOutBack",(function(){return C})),n.d(t,"easeInOutBack",(function(){return k})),n.d(t,"easeInBounce",(function(){return j})),n.d(t,"easeOutBounce",(function(){return M})),n.d(t,"easeInOutBounce",(function(){return T}))},121:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(20),o=n.n(r);function a(){return void 0!==o.a.get("OrganizationId")}},122:function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return j})),n.d(t,"clearModalLoginFields",(function(){return $})),n.d(t,"clearModalRegistrationFields",(function(){return J})),n.d(t,"showPasswordResetModal",(function(){return X}));var r=n(64),o=n(27),a=n(5),i=n(37),c=n(127),s=n(70),u=n(30),l=n(52),d=n(56),m=n(39);"undefined"!=typeof window&&(window.captchaCallback=function(e){p=e},window.captchaExpired=function(){p=null});var f,h,v,g,y,p=null,b="site-header__login-field",w="site-header__register-field",_="site-header__register-loading-indicator",S="site-header__login-logout-message",E={},O=null,A=!1,L=!1,q=!1,C=!1,k=null,j={get loginSuccessRedirect(){return k},set loginSuccessRedirect(e){k=e}};function x(e){return e.querySelector(".".concat(b,'[name="username"]'))}function M(e){return e.querySelector(".".concat(b,'[name="password"]'))}function T(e,t){return"".concat(Math.floor((e-t)/1e3)," seconds")}function N(){Array.from(document.querySelectorAll(".".concat(b))).concat(Array.from(document.querySelectorAll(".".concat(w)))).concat(Array.from(document.querySelectorAll(".trigger--login"))).concat(Array.from(document.querySelectorAll(".trigger--create-account-dialog"))).concat(Array.from(document.querySelectorAll(".trigger--forgot-password-dialog"))).concat(Array.from(document.querySelectorAll(".site-header__password-reset-field"))).concat(Array.from(document.querySelectorAll(".site-header__resend-verification-button"))).forEach((function(e){return e.setAttribute("disabled","disabled")}))}function I(){Array.from(document.querySelectorAll(".".concat(b))).concat(Array.from(document.querySelectorAll(".".concat(w)))).concat(Array.from(document.querySelectorAll(".trigger--login"))).concat(Array.from(document.querySelectorAll(".trigger--create-account-dialog"))).concat(Array.from(document.querySelectorAll(".trigger--forgot-password-dialog"))).concat(Array.from(document.querySelectorAll(".site-header__password-reset-field"))).concat(Array.from(document.querySelectorAll(".site-header__resend-verification-button"))).forEach((function(e){return e.removeAttribute("disabled")}))}function R(e){var t=x(e),n=M(e),i=function(e){return e.querySelector(".".concat(b,'[name="submit-modal"]'))}(e),c=!0;if(0===t.value.length){c=!1;var s=e.querySelector(".".concat(S,'[data-message-type="usernameRequired"]'));s.removeAttribute("hidden"),t.setCustomValidity(s.innerText),t.classList.add("touched")}if(0===n.value.length){c=!1;var l=e.querySelector(".".concat(S,'[data-message-type="passwordRequired"]'));l.removeAttribute("hidden"),n.setCustomValidity(l.innerText),n.classList.add("touched")}if(c){Object(o.lockMenu)(),N(),e.querySelector(".".concat("site-header__login-loading-indicator")).classList.add("loading-indicator--visible"),i.setAttribute("hidden","hidden"),Array.from(document.querySelectorAll(".".concat(S))).forEac
1h((function(e){e.setAttribute("hidden","hidden")}));var d=Date.now();Object(r.login)(x(e).value,M(e).value).then((function(){"function"==typeof window.trackEvent&&trackEvent("Shell"," Perf - Login success",T(Date.now(),d));var t=new URL(window.location.href),n=new URLSearchParams(t.search),r=window.location.pathname.toLowerCase();"/"!==r[r.length-1]&&(r+="/");var o,a=document.querySelector("#sitecore-username-toggle");if(!!a&&"true"===a.getAttribute("data-display-email-username").toLowerCase()){var i=(o=x(e).value,/^[\w!#$%&'*+/=?`{|}~^-]+(?:\.[\w!#$%&'*+/=?`{|}~^-]+)*@(?:[A-Z0-9-]+\.)+[A-Z]{2,}$/i.test(o));i||n.has("isEmail")||(n.append("isEmail",i),t.search=n.toString(),k="".concat("/commerce/account/default","/profile?").concat(n))}if("string"==typeof k)window.location="https://".concat(Object(m.a)()||"www",".promega.com").concat(k);else if(r.endsWith("login/")){var c=decodeURIComponent(Object(u.a)(location.href.toLowerCase(),"returnurl"));c.length>0?window.location=c:window.location="/commerce/account/default"}else n.has("loginAttempt")||n.append("loginAttempt","true"),window.location="https://".concat(Object(m.a)()||"www",".promega.com").concat(location.pathname,"?").concat(n.toString()).concat(location.hash)})).catch((function(t){if("function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Login failure",T(Date.now(),d)),t){var n=e.querySelector(".".concat(S,'[data-message-type="').concat(t.ErrorType,'"]'));if(n){n.removeAttribute("hidden");var r=x(e),o=M(e),c=!1,s=!1;if("AccountNotFound"===t.ErrorType&&(c=!0),"InvalidPassword"===t.ErrorType){s=!0;var u=parseInt(t.Message,10);if(u>1){for(var l=document.querySelectorAll(".site-header__login-attempts-remaining"),m=0;m<l.length;m++)l[m].setAttribute("hidden","hidden");var f=document.querySelector('.site-header__login-attempts-remaining[data-attempts-remaining="'.concat(6-u,'"]'));f&&f.removeAttribute("hidden"),Object(a.show)(document.querySelector(".site-header__account-lock-warning-modal"))}}if("AccountLocked"!==t.ErrorType&&"AccountInactive"!==t.ErrorType||(c=!0,Object(a.show)(document.querySelector(".site-header__account-locked-modal"))),"PasswordChangeRequired"===t.ErrorType&&(s=!0,X(r.value)),"AccountNotVerified"===t.ErrorType){c=!0;var h=document.querySelector(".site-header__unverified-email-modal");h.setAttribute("data-email-to-verify",x(e).value),C=!1,Object(a.show)(h,null,{afterHide:function(){"function"==typeof window.trackEvent&&trackEvent("Shell","Behavior - Resend account verification email",C?"Completed":"Abandoned")}})}c&&(r.setCustomValidity(n.innerText),r.classList.add("touched")),s&&(o.setCustomValidity(n.innerText),o.classList.add("touched"))}else{Object(a.show)(document.querySelector(".site-header__login-generic-error-modal")),e.querySelector(".".concat(S,":not([data-message-type])")).removeAttribute("hidden")}}else{Object(a.show)(document.querySelector(".site-header__network-error-modal")),e.querySelector(".".concat(S,":not([data-message-type])")).removeAttribute("hidden")}I(),e.querySelector(".".concat("site-header__login-loading-indicator")).classList.remove("loading-indicator--visible"),i.removeAttribute("hidden")}))}}function P(e){if(Array.from(e.querySelectorAll(".".concat(w))).forEach((function(e){return e.classList.add("touched")})),H(e,E[e.getAttribute("data-registration-component-id")])){var t=e.querySelector(".site-header__register-field[name=submit-modal]");Object(a.lock)(),N(),e.querySelector(".".concat(_)).classList.add("loading-indicator--visible"),t.setAttribute("hidden","hidden");var n=E[e.getAttribute("data-registration-component-id")],o=Object.assign({},n,{topyenoh:p});delete o.confirmPassword;var i=Date.now();Object(r.register)(o).then((function(){function n(){document.querySelector("main .registration-component")&&(window.location.href="/")}"function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Registration success",T(Date.now(),i)),Object(a.unlock)(),I(),A=!0,Object(a.isVisible)()?Object(a.hide)().then(a.show.bind(null,document.querySelector(".site-header__confirm-registration-modal"),null,{afterHide:n})):Object(a.show)(document.querySelector(".site-header__confirm-registration-modal"),null,{afterHide:n}),e.querySelector(".".concat(_)).classList.remove("loading-indicator--visible"),t.removeAttribute("hidden")}
1)).catch((function(n){if(Object(a.unlock)(),I(),n){"function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Registration failure",T(Date.now(),i));var r=e.querySelector(".".concat("site-header__reg-message",'[data-message-type="').concat(n.Message,'"]'));if(r){if(r.removeAttribute("hidden"),"UsernameUnavailable"===n.Message)e.querySelector(".".concat(w,"[name=username]")).setCustomValidity(r.innerText),Object(a.show)(document.querySelector(".site-header__registration-existing-account-modal"))}else Object(a.show)(document.querySelector(".site-header__registration-generic-error-modal")),(r=e.querySelector(".".concat("site-header__reg-message",":not([data-message-type])"))).removeAttribute("hidden")}else{Object(a.show)(document.querySelector(".site-header__network-error-modal")),e.querySelector(".".concat("site-header__reg-message",":not([data-message-type])")).removeAttribute("hidden")}e.querySelector(".".concat(_)).classList.remove("loading-indicator--visible"),t.removeAttribute("hidden"),function(e){for(var t=e.querySelectorAll(".".concat(w,"[name=password], .").concat(w,"[name=confirmPassword]")),n=e.getAttribute("data-registration-component-id"),r=0;r<t.length;r++)t[r].value="",t[r].classList.remove("touched"),t[r].setCustomValidity(""),E[n][t[r].name]=""}(e)}))}}function B(){if(h&&v)if(G(),h.value.length>0){y.forEach((function(e){return e.setAttribute("disabled","disabled")})),g.classList.add("loading-indicator--visible"),v.setAttribute("hidden","hidden"),Object(a.lock)();var e=Date.now();Object(r.forgotPassword)(h.value).then((function(t){"function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Request password reset success",T(Date.now(),e)),q=!0,Object(a.unlock)(),Object(a.hide)().then((function(){return Object(a.show)(document.querySelector(".site-header__forgot-password-email-sent-modal"))})),D()})).catch((function(t){if("function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Request password reset failure",T(Date.now(),e)),D(),Object(a.unlock)(),t)if("AccountNotFound"===t.ErrorType){var n=document.querySelector(".site-header__forgot-password-message[name=".concat(t.ErrorType,"]"));n.removeAttribute("hidden"),h.setCustomValidity(n.value),h.classList.add("touched")}else{var r=document.querySelector(".site-header__forgot-password-error-modal");Object(a.isVisible)()?Object(a.hide)().then((function(){return Object(a.show)(r)})):Object(a.show)(r)}else{var o=document.querySelector(".site-header__network-error-modal");Object(a.isVisible)()?Object(a.hide)().then((function(){return Object(a.show)(o)})):Object(a.show)(o)}}))}else{var t=document.querySelector(".site-header__forgot-password-message[name=usernameRequired");t.removeAttribute("hidden"),h.setCustomValidity(t.innerText)}}function U(e){var t=document.querySelector(".site-header__password-reset-field[name=oldPassword]"),n=document.querySelector(".site-header__password-reset-field[name=password]"),o=document.querySelector(".site-header__password-reset-field[name=confirmPassword]"),i=document.querySelector(".site-header__password-reset-field[name=submit-modal]");if(n.classList.add("touched"),o.classList.add("touched"),F()){N();var c=document.querySelector(".site-header__password-reset-loading-indicator");c.classList.add("loading-indicator--visible"),i.setAttribute("hidden","hidden"),Object(a.lock)();var s={password:n.value};"string"==typeof O?(s.oldPassword=t.value,s.username=O):s.loginRpId=f;var u=Date.now();Object(r.resetPassword)(s).then((function(e){"function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Set new account password success",T(Date.now(),u)),I(),c.classList.remove("loading-indicator--visible"),i.removeAttribute("hidden"),Object(a.unlock)(),L=!0,Array.from(document.querySelectorAll(".site-header__login-field[name=password]")).forEach((function(e){return Q({target:e})})),Object(a.hide)().then((function(){return Object(a.show)(document.querySelector(".site-header__password-reset-success-modal"))}))})).catch((function(e){if("function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Set new account password failure",T(Date.now(),u)),I(),Object(a.unlock)(),c.classList.remove("loading-indicator--visible"),i.removeAttribute("hidden"),e){var t=document.querySelector('.site-header__password-reset-message[data-message-type="'.concat(e.ErrorType,'"]'));if(t){if(t.removeAttribute("hidden"),"PasswordUsedRecently"===e.ErrorType)document.querySelector(".site-header__password-reset-field[name=password]").setCustomValidity(t.innerText)}else"PasswordResetLinkExpired"===e.Message?Object(a.hide)().then((function(){return Object(a.show)(document.querySelector(".site-header__password-reset-link-expired"))})):Object(a.hide)().then((function(){return Object(a.show)(document.querySelector(".site-header__password-reset-error-modal"))}))}else{var n=document.querySelector(".site-header__network-error-modal");Object(a.isVisible)()?Object(a.hide)().then((function(){return Object(a.show)(n)})):Object(a.show)(n)}}))}}
1function D(){y.forEach((function(e){return e.removeAttribute("disabled")})),g.classList.remove("loading-indicator--visible"),v.removeAttribute("hidden")}function V(e){Array.prototype.slice.call(e.querySelectorAll(".".concat("site-header__reg-message"))).forEach((function(e){return e.setAttribute("hidden","hidden")}))}function H(e,t,n){var r=!0;V(e),Object.keys(t).forEach((function(o){var a=e.querySelector(".".concat(w,'[name="').concat(o,'"]'));if(a.setCustomValidity(""),0===t[o].length){r=!1;var i=e.querySelector(".".concat("site-header__reg-message",'[data-message-type="').concat(o,'Required"]'));(a.classList.contains("touched")||n&&n.force===o)&&(i.removeAttribute("hidden"),a.setCustomValidity(i.innerText))}}));var o=null,a=e.querySelector(".".concat(w,'[name="password"]'));if(!t.password.match(new RegExp(a.getAttribute("pattern")))){var i=e.querySelector(".".concat("site-header__reg-message",'[data-message-type="PasswordComplexityFail"]'));(a.classList.contains("touched")||n&&"password"===n.force)&&(i.removeAttribute("hidden"),a.setCustomValidity(i.innerText),o=i.innerText)}if(t.password===t.confirmPassword||o){if(o){r=!1;var c=e.querySelector(".".concat(w,'[name="confirmPassword"]'));(c.classList.contains("touched")||n&&"confirmPassword"===n.force)&&c.setCustomValidity(o)}}else{r=!1;var s=e.querySelector(".".concat("site-header__reg-message",'[data-message-type="confirmPasswordNoMatch"]')),u=e.querySelector(".".concat(w,'[name="confirmPassword"]'));(u.classList.contains("touched")||n&&"confirmPassword"===n.force)&&(s.removeAttribute("hidden"),u.setCustomValidity(s.innerText))}var l=e.querySelector(".".concat(w,'[name="username"]'));if(!t.username.toLowerCase().match(new RegExp(l.getAttribute("data-pattern")))){r=!1;var d=e.querySelector(".".concat("site-header__reg-message",'[data-message-type="UsernameNotValidEmail"]')),m=e.querySelector(".".concat(w,'[name="username"]'));(m.classList.contains("touched")||n&&"username"===n.force)&&(d.removeAttribute("hidden"),m.setCustomValidity(d.innerText))}return r}function F(e){var t=!0,n=document.querySelector(".site-header__password-reset-field[name=oldPassword]"),r=document.querySelector(".site-header__password-reset-field[name=password]"),o=document.querySelector(".site-header__password-reset-field[name=confirmPassword]");Array.from(document.querySelectorAll(".site-header__password-reset-message")).forEach((function(e){return e.setAttribute("hidden","hidden")}));var a=[r,o];O&&a.push(n),a.forEach((function(n){if(0===n.value.length){t=!1;var r=document.querySelector('.site-header__password-reset-message[data-message-type="'.concat(n.name,'Required"]'));(n.classList.contains("touched")||e&&e.force===n.name)&&(r.removeAttribute("hidden"),n.setCustomValidity(r.innerText))}else n.setCustomValidity("")}));var i=null;if(!r.value.match(new RegExp(r.getAttribute("pattern")))){t=!1;var c=document.querySelector('.site-header__password-reset-message[data-message-type="PasswordComplexityFail"]');(r.classList.contains("touched")||e&&"password"===e.force)&&(c.removeAttribute("hidden"),r.setCustomValidity(c.innerText),i=c.innerText)}if(r.value===o.value||i)i&&(t=!1,(o.classList.contains("touched")||e&&"confirmPassword"===e.force)&&o.setCustomValidity(i));else{t=!1;var s=document.querySelector('.site-header__password-reset-message[data-message-type="confirmPasswordNoMatch"]');(o.classList.contains("touched")||e&&"confirmPassword"===e.force)&&(s.removeAttribute("hidden"),o.setCustomValidity(s.innerText))}return t}function z(e){var t=Object(s.a)(e.currentTarget,".registration-component"),n=E[t.getAttribute("data-registration-component-id")];n[e.target.name]=e.target.value,H(t,n)}function Q(e){e.target.setCustomValidity(""),e.target.classList.remove("touched");for(var t=e.target.parentElement.nextElementSibling;t;)t.classList.contains("site-header__login-logout-message")&&t.setAttribute("hidden","hidden"),t=t.nextElementSibling}function G(){Array.from(document.querySelectorAll(".site-header__forgot-password-message")).forEach((function(e){return e.setAttribute("hidden","hidden")})),h&&(h.classList.remove("touched"),h.setCustomValidity(""))}function W(){q=!1,Object(a.show)(document.querySelector(".site-header__forgot-password-modal"),null,{afterHide:function(){h.value="",h.classList.remove("touched"),"function"==typeof window.trackEvent&&trackEvent("Shell","Behavior - Request password reset",q?"Completed":"Abandoned")}})}function $(){if(!document.querySelector(".site-header__flyout--account .login-component .loading-indicator--visible"))for(var e=document.querySelectorAll(".site-header__flyout--account .login-component .site-header__login-field"),t=0;t<e.length;t++)Q({target:e[t]}),e[t].value=""}function J(){var e,t=document.querySelector(".site-header__register-modal .registration-component");!function(e){for(var t=e.querySelectorAll(".".concat(w)),n=0;n<t.length;
1n++)"country"!==t[n].name&&"language"!==t[n].name&&(t[n].value=""),t[n].classList.remove("touched"),t[n].setCustomValidity("");for(var r=e.querySelectorAll(".".concat(_)),o=0;o<r.length;o++)r[o].classList.remove("loading-indicator--visible")}(t),V(t),e=t.getAttribute("data-registration-component-id"),Object.keys(E[e]).forEach((function(t){"country"!==t&&"language"!==t&&(E[e][t]="")}))}function X(e){var t=document.querySelector(".site-header__password-reset-old-password-container");t&&(t.hidden=!e);var n=document.querySelector(".site-header__password-reset-modal");n?(O=e,L=!1,Object(a.show)(n,null,{afterHide:function(){Array.from(document.querySelectorAll(".site-header__password-reset-field")).forEach((function(e){e.value="",e.setCustomValidity(""),e.classList.remove("touched")})),"function"==typeof window.trackEvent&&trackEvent("Shell","Behavior - Set new account password",L?"Completed":"Abandoned")}}).then((function(){Object(a.lock)({allowCloseButton:!0})}))):document.addEventListener("DOMContentLoaded",(function(){Object(o.showMenu)("account"),Object(o.lockMenu)();var e=document.querySelector(".site-header__logout-submit-button");e&&e.focus()}))}if("undefined"!=typeof document){for(var Y=document.querySelectorAll(".login-component"),K=function(e){var t=Y[e],n=t.querySelector(".".concat(b,'[name="username"]')),r=t.querySelector(".".concat(b,'[name="password"]')),o=t.querySelector(".".concat(b,'[name="submit-modal"]'));o&&o.addEventListener("click",R.bind(null,t)),n&&(n.addEventListener("input",Q),n.addEventListener("keydown",(function(e){return 13===e.keyCode&&R(t)}))),r&&(r.addEventListener("input",Q),r.addEventListener("keydown",(function(e){return 13===e.keyCode&&R(t)})))},Z=0;Z<Y.length;Z++)K(Z);var ee=document.querySelector(".site-header__resend-verification-button");ee&&ee.addEventListener("click",(function(e){N();var t=document.querySelector(".site-header__resend-verification-loading-indicator");t.classList.add("loading-indicator--visible"),e.target.setAttribute("hidden","hidden");var n=Object(s.a)(e.target,".modal-dialog");Object(a.lock)();var o=Date.now();Object(r.resendVerification)(n.getAttribute("data-email-to-verify")).then((function(){"function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Resend account verification email success",T(Date.now(),o)),I(),Object(a.unlock)(),t.classList.remove("loading-indicator--visible"),e.target.removeAttribute("hidden"),n.removeAttribute("data-email-to-verify"),C=!0,Object(a.hide)().then((function(){return Object(a.show)(document.querySelector(".site-header__unverified-email-success-modal"))}))})).catch((function(r){if("function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Resend account verification email failure",T(Date.now(),o)),I(),Object(a.unlock)(),t.classList.remove("loading-indicator--visible"),e.target.removeAttribute("hidden"),r)n.removeAttribute("data-email-to-verify"),Object(a.hide)().then((function(){return Object(a.show)(document.querySelector(".site-header__unverified-email-error-modal"))}));else{var i=document.querySelector(".site-header__network-error-modal");Object(a.isVisible)()?Object(a.hide)().then((function(){return Object(a.show)(i)})):Object(a.show)(i)}}))})),h=document.querySelector(".".concat("site-header__forgot-password-field","[name=username]")),v=document.querySelector(".".concat("site-header__forgot-password-field","[name=submit-modal]")),g=document.querySelector(".".concat("site-header__forgot-password-loading-indicator")),y=Array.from(document.querySelectorAll(".".concat("site-header__forgot-password-field"))),h&&v&&g&&(h.addEventListener("input",G),h.addEventListener("keydown",(function(e){return 13===e.keyCode&&B()})),v.addEventListener("click",B));for(var te=document.querySelectorAll(".trigger--forgot-password-dialog"),ne=0;ne<te.length;ne++)te[ne].addEventListener("click",(function(e){e.preventDefault();var t=Object(s.a)(e.target,".login-component"),n=t?x(t):null;h.value=n?n.value:"",document.querySelector(".site-header__forgot-password-message").setAttribute("hidden","hidden"),Object(a.isVisible)()?Object(a.hide)().then(W):W(),document.querySelector(".site-header__forgot-password-field[name=username]").focus()}));for(var re=document.querySelectorAll(".trigger--login-dialog"),oe=0;oe<re.length;oe++)re[oe].addEventListener("click",(function(e){e.preventDefault(),Object(a.isVisible)()&&(Object(a.unlock)(),Object(a.hide)()),Object(i.a)(document.querySelector(".site-header")),Ob
1ject(o.isMenuOpen)("account")||Object(o.showMenu)("account",{autofocus:!0})}));for(var ae=document.querySelectorAll(".trigger--create-account-dialog"),ie=0;ie<ae.length;ie++)ae[ie].addEventListener("click",(function(e){e.preventDefault(),Object(o.getActiveMenu)()&&(Object(o.unlockMenu)(),Object(o.hideActiveMenu)());var t=document.querySelector(".site-header__register-modal");A=!1,Object(a.show)(t,null,{width:480,afterHide:function(){J(),"function"==typeof window.trackEvent&&trackEvent("Shell","Behavior - Register account",A?"Completed":"Abandoned")}}),document.querySelector(".site-header__register-modal .site-header__register-field[name=firstname]").focus()}));for(var ce=document.querySelectorAll(".registration-component"),se=function(e){var t=Object(c.a)(),n=ce[e];n.setAttribute("data-registration-component-id",t);for(var r=n.querySelectorAll(".".concat(w)),o={},i=P.bind(null,n),s=0;s<r.length;s++)"submit-modal"===r[s].name?r[s].addEventListener("click",i):"cancel"===r[s].name?r[s].addEventListener("click",(function(){Object(a.hide)()})):"name"===r[s].name||("page_0$header_0$ctl01$CountriesDropDownList"===r[s].name&&(r[s].name="country"),o[r[s].name]=r[s].value,r[s].addEventListener("input",z),r[s].addEventListener("keydown",(function(e){return 13===e.keyCode&&i()})),r[s].addEventListener("blur",H.bind(void 0,n,o,{force:r[s].name})));E[t]=o},ue=0;ue<ce.length;ue++)se(ue);f=decodeURIComponent(Object(u.a)(location.href,"loginRpId"));for(var le=Array.from(document.querySelectorAll(".site-header__password-reset-field")),de=0;de<le.length;de++)"submit-modal"===le[de].name?le[de].addEventListener("click",U):(le[de].addEventListener("input",F),le[de].addEventListener("keydown",(function(e){return 13===e.keyCode&&U()})),le[de].addEventListener("blur",F.bind(null,{force:le[de].name})));if(f.length>0)window.history&&window.history.replaceState(null,"",Object(l.a)(location.href.toLowerCase(),"loginrpid")),X(!1);else{var me=Object(u.a)(location.href.toLowerCase(),"emailverified");me.length>0&&(window.history.replaceState(null,"",Object(l.a)(location.href.toLowerCase(),"emailverified")),"true"===me?Object(a.show)(document.querySelector(".site-header__email-verification-success-modal"),null,{afterHide:function(){return Object(o.showMenu)("account",{autofocus:!0})}}):"china"===me?Object(a.show)(document.querySelector(".site-header__email-verification-success-modal")):"false"===me&&Object(a.show)(document.querySelector(".site-header__email-verification-error-modal")))}var fe=document.querySelector(".site-header__logout-submit-button");fe&&fe.addEventListener("click",(function(e){var t=e.target,n=document.querySelector(".site-header__logout-loading-indicator");Object(o.lockMenu)(),t.setAttribute("hidden","hidden"),n.classList.add("loading-indicator--visible");var i=Date.now();Object(r.logout)().then((function(e){"function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Logout success",T(Date.now(),i));var t="https://".concat(Object(m.a)()||"www",".promega.com").concat(location.pathname).concat(location.search).concat(location.hash);window.location.pathname.toLowerCase().startsWith("/commerce")&&(t="https://".concat(Object(m.a)()||"www",".promega.com")),location.href=Object(d.a)(t,"showmessage","logged-out")})).catch((function(e){if("function"==typeof window.trackEvent&&trackEvent("Shell","Perf - Logout failure",T(Date.now(),i)),t.removeAttribute("hidden"),n.classList.remove("loading-indicator--visible"),!e){var r=document.querySelector(".site-header__network-error-modal");Object(a.isVisible)()?Object(a.hide)().then((function(){return Object(a.show)(r)})):Object(a.show)(r)}}))}))}},123:function(e,t,n){"use strict";n.r(t),n.d(t,"showTab",(function(){return m})),n.d(t,"hideTab",(function(){return f})),n.d(t,"hideActiveTab",(function(){return h})),n.d(t,"isTabVisible",(function(){return v})),n.d(t,"getIndexOfTab",(function(){return g})),n.d(t,"getNameOfTab",(function(){return y}));var r=n(56),o=n(1);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s="content-container--tabs";function u(e){if(e&&e.target){var t=!0,n="",r=null;if("click"===e.type&&e.target.classList.contains("tabs__button")?(n=e.target.getAttribute("data-tab-name"),r="Normal"):"change"===e.type&&e.target.classList.contains("tabs__mobile-dropdown")?(n=e.target.value,r="Dropdown"):t=!1,t){e.preventDefault();var a=e.target.closest(".".concat(s));a&&(m(n,a),Object(o.a)("Components","Tabs - switched tabs",r))}}}function l(e){var t=e.getElementsByClassName("tabs__button"),n=e.getElementsByClassName("tabs__mobile-dropdown")[0],r=n.getElementsByTagName("option");if(n&&0===r.length)for(var o=0;o<t.length;o++){var a=document.createElement("option");a.setAttribute("value",t[o].getAttribute("data-tab-name")),a.innerText=t[o].innerText,t[o].classList.contains("tabs__button--active")&&(a.selected=!0),n.appendChild(a)}}function d(e){throw'Tab component "'+e+'" does not exist.'}function m(e,t,n){if(t){var o=Array.from(t.querySelectorAll(".tabs__content")).find((function(t){var n,r;return(null===(n=t.getAttribute("data-tab-name"))||void 0===n?void 0:n.toLowerCase())===e.toLowerCase()||(null===(r=t.getAttribute("data-tab-title"))||void 0===r?void 0:r.toLowerCase())===e.toLowerCase()})),a=Array.from(t.querySelectorAll(".tabs__button")).find((function(t){var n,r;return(null===(n=t.getAttribute("data-tab-name"))||void 0===n?void 0:n.toLowerCase())===e.toLowerCase()||(null===(r=t.getAttribute("data-tab-other"))||void 0===r?void 0:r.toLowerCase())===e.toLowerCase()})),i=t.getElementsByClassName("tabs__mobile-dropdown")[0];o&&a&&(h(t),o.classList.add("tabs__content--visible"),a.classList.add("tabs__button--active"),t.setAttribute("data-last-active-tab",e),i.value=e,"specifications"!=e&&"protocols"!=e&&"overview"!=e&&"resources"!=e&&"related-products"!=e||a.scrollIntoView(!0),n&&n.skipQueryStringUpdate||function(){for(var e=document.getElementsByClassName(s),t=e.length,n=0;n<t;n++){var o=e[n],a=g(o.getAttribute("data-last-active-tab"),o);history&&history.replaceState&&history.replaceState(null,null,Object(r.a)(window.location,"tabset"+n,a))}}())}else d()}function f(e,t){if(t){var n=t.querySelector(".tabs__content[data-tab-name='"+e+"']"),r=t.querySelector(".tabs__button[data-tab-name='"+e+"']");n&&r&&(n.classList.remove("tabs__content--visible"),r.classList.remove("tabs__button--active"))}else d()}function h(e){if(e){var t=e.querySelector(":scope > .tabs__content--visible");t&&f(t.getAttribute("data-tab-name"),e)}else d()}function v(e,t){if(t){var n=t.querySelector(".tabs__content[data-tab-name='"+e+"']");if(n)return n.classList.contains("tabs__content--visible");throw'Unable to hide tab "'+e+'" - tab does not exist.'}d()}function g(e,t){for(var n=t.querySelector(".tabs__content[data-tab-name='"+e+"']"),r=t.querySelectorAll(":scope > .tabs__content"),o=r.length,a=-1,i=0;i<o;i++)if(n===r[i]){a=i;break}return a}function y(e,t){var n=t.querySelectorAll(":scope > .tabs__content")[e];if(n)return n.getAttribute("data-tab-name")}document.addEventListener("click",u,!0),document.addEventListener("change",u,!0);for(var p=document.getElementsByClassName(s),b=p.length,w=function(e){var t,n=[],r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}
1(new URL(e).searchParams.entries());try{for(r.s();!(t=r.n()).done;){var o=a(t.value,2),c=o[0],s=o[1];c.startsWith("tabset")&&n.push({key:c,value:s})}}catch(e){r.e(e)}finally{r.f()}return n}(window.location.href),_=0;_<b;_++)l(p[_]);!function(e,t){if(t.length>0&&e.length>0)for(var n=0,r=t.length;n<r;n++){var o=void 0;if(o=/\d/.test(e[n].value)?y(parseInt(e[n].value),t[n]):e[n].value)m(o,t[n],{skipQueryStringUpdate:!0});else m(y(0,t[n]),t[n],{skipQueryStringUpdate:!1})}else if(t.length>0)for(var a=0,i=t.length;a<i;a++){var c=y(0,t[a]);c&&m(c,t[a],{skipQueryStringUpdate:!1})}}(w,p),"undefined"!=typeof MutationObserver?new MutationObserver((function(e){e.forEach((function(e){"childList"===e.type&&Array.prototype.forEach.call(e.addedNodes,(function(e){if(e.nodeType===Node.ELEMENT_NODE&&"svg"!==e.nodeName.toLowerCase())for(var t=e.getElementsByClassName(s),n=0;n<t.length;n++)l(t[n])}))}))})).observe(document.body,{childList:!0,subtree:!0}):setInterval((function(){for(var e=document.getElementsByClassName(s),t=0;t<e.length;t++)l(e[t])}),1e3)},124:function(e,t,n){"use strict";function r(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return t.pop().split(";").shift()}n.d(t,"a",(function(){return r}))},125:function(e,t,n){"use strict";function r(e){new Function('"use strict"; '+e)()}n.d(t,"a",(function(){return r}))},19:function(e,t,n){"use strict";function r(){return void 0!==document.documentElement.style.animationName}n.d(t,"a",(function(){return r}))},27:function(e,t,n){"use strict";n.r(t),n.d(t,"showMenu",(function(){return G})),n.d(t,"lockMenu",(function(){return $})),n.d(t,"unlockMenu",(function(){return J})),n.d(t,"isMenuLocked",(function(){return X})),n.d(t,"expandMobileMenu",(function(){return Y})),n.d(t,"collapseMobileMenu",(function(){return K})),n.d(t,"expandMobileSubmenu",(function(){return Z})),n.d(t,"collapseMobileSubmenu",(function(){return ee})),n.d(t,"hideActiveMenu",(function(){return te})),n.d(t,"getActiveMenu",(function(){return ne})),n.d(t,"isMenuOpen",(function(){return re})),n.d(t,"setAccountDisplayName",(function(){return oe})),n.d(t,"CartFlyout",(function(){return ie}));var r=n(77),o=n(19),a=n(1),i=n(122),c=n(5),s=n(39),u=n(53),l=n(20),d=n.n(l),m=n(124),f=n(30);function h(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p="site-header__control-button",b="site-header__flyout",w="site-header__flyout--visible",_=null,S=null,E=null,O=!1;function A(e,t){var n=e.getAttribute("data-promega-nav-flyout");if(null!==n){var r=re(n);if(null!==r)switch(t){case"touchstart":r?W(n,{cleanupClickeater:!0}):(G(n,{autofocus:!0}),Object(a.a)("Components","Main navigation - opened menu","Touch"));break;case"mouseover":r||O||G(n);break;case"click":if(["search","cart","account"].includes(n))if(r&&O)te();else if(r){var o=document.querySelector(".".concat(b,"--").concat(n)).querySelector("input");o&&(o.focus(),$())}else G(n,{autofocus:!0})}}}function L(){if(window.innerWidth<=1024)document.querySelector(".site-header__search-container").removeAttribute("style");else{var e=document.querySelector(".site-header__searchbox-placeholder"),t=e.offsetWidth,n=Math.floor(t/100*90),r=document.querySelector(".site-header__search-container");r.style.width=n+"px";var o=Math.floor(t/100*5+(e.getBoundingClientRect().left+window.pageXOffset));r.style.left=o+"px"}}function q(e){e.cancelable&&e.preventDefault(),A(e.currentTarget,e.type)}function C(e){null==ne()?((_=e.currentTarget).addEventListener("mouseout",k),S=setTimeout(j,200)):A(e.currentTarget,e.type)}function k(e){clearTimeout(S),x()}function j(e){A(_,"mouseover"),x()}function x(){_.removeEventListener("mouseout",k),_=null,S=null}function M(e){var t=e.currentTarget.querySelector("input");document.activeElement==t&&$()}function T(e){var t=e.relatedTarget;t&&"HTML"!==t.nodeName||O||te()}function N(e){A(e.currentTarget,e.type)}function I(){var e=document.createElement("div");e.className="".concat("site-header-clickeater"," ").concat("site-header-clickeater--active"),window.addEventListener("mouseout",T);
1var t={animationend:B,touchstart:U,mouseover:U,click:U};e.classList.add("site-header-clickeater--enter-anim"),Object.entries(t).forEach((function(t){var n=v(t,2),r=n[0],o=n[1];e.addEventListener(r,o)})),document.querySelector(".site-header__flyout-container").insertAdjacentElement("beforebegin",e),Object(o.a)()||B()}function R(){var e=document.getElementsByClassName("site-header-clickeater")[0];e&&(e.classList.remove("site-header-clickeater--active"),window.removeEventListener("mouseout",T),e.classList.add("site-header-clickeater--exit-anim"),Object(o.a)()||B())}function P(){var e=document.getElementsByClassName("site-header-clickeater")[0];return e&&e.classList.contains("site-header-clickeater--active")}function B(){var e=document.getElementsByClassName("site-header-clickeater")[0];e.classList.contains("site-header-clickeater--enter-anim")&&e.classList.remove("site-header-clickeater--enter-anim"),e.classList.contains("site-header-clickeater--exit-anim")&&e.parentElement.removeChild(e)}function U(e){if("mouseover"==e.type&&O);else{"touchstart"===e.type&&e.preventDefault();var t=document.getElementsByClassName(w)[0];if(t){var n=t.getAttribute("data-promega-nav-flyout");"mouseover"===e.type?(E=setTimeout(H,400),document.getElementsByClassName("site-header-clickeater")[0].addEventListener("mouseout",F)):W(n,{cleanupClickeater:!0})}else{P()&&R();var r=u.getSearchBox();r&&r.blur()}}}function D(){var e=document.querySelector("div.magic-box-input input"),t=document.querySelector("div.magic-box-input"),n=document.querySelector("div.magic-box-suggestions");if(!e.hasAttribute("data-observer")){new MutationObserver((function(e,r){var o,a=h(e);try{for(a.s();!(o=a.n()).done;){var i=o.value;"attributes"===i.type&&"class"===i.attributeName&&n.classList.contains("magic-box-hasSuggestion")&&(t.classList.add("straight-corner"),t.classList.remove("rounded-corner"))}}catch(e){a.e(e)}finally{a.f()}})).observe(n,{attributes:!0,attributeFilter:["class"]}),e.setAttribute("data-observer","active")}}function V(){var e=document.querySelector("div.magic-box-input");e.classList.remove("straight-corner"),e.classList.add("rounded-corner")}function H(e){te(),F()}function F(){clearTimeout(E),E=null;var e=document.getElementsByClassName("site-header-clickeater")[0];e&&e.addEventListener("mouseout",F)}function z(e,t){for(var n=0,r=0;r<e.length&&r<t.length;r++)e[r]===t[r]&&n++;return n}function Q(e){return e.split("/").filter((function(e){return""!==e}))}function G(e,t){var n=document.getElementsByClassName(w)[0],r=document.getElementsByClassName("".concat(b,"--").concat(e))[0];if(r&&(n?(W(n.getAttribute("data-promega-nav-flyout")),Object(o.a)()&&r.classList.add("site-header__flyout--transitional-entrance-anim")):Object(o.a)()&&r.classList.add("site-header__flyout--first-entrance-anim"),P()||I(),r.classList.add(w),document.getElementsByClassName("".concat(p,"--").concat(e))[0].classList.add("site-header__control-button--active"),t&&t.autofocus)){var a=r.querySelector("input");a&&(a.focus(),$())}}function W(e,t){var n=document.getElementsByClassName("".concat(b,"--").concat(e))[0],r=t||{},a=r.cleanupClickeater,c=r.noMenuAnimation,s=Object(o.a)();if(n){J(),n.classList.remove(w);var l=document.getElementsByClassName("site-header__control-button--active")[0];l&&l.classList.remove("site-header__control-button--active"),a?(R(),s&&!c&&n.classList.add("site-header__flyout--final-exit-anim")):s&&!c&&n.classList.add("site-header__flyout--transitional-exit-anim");var d=u.getSearchBox();"search"===e&&d&&d.blur(),"account"===e&&Object(i.clearModalLoginFields)()}}function $(){O=!0}function J(){O=!1}function X(){return O}function Y(e){var t=document.getElementsByClassName("".concat(b,"--").concat(e))[0];document.querySelector(".".concat("mobile-menu-control",'[data-promega-nav-flyout="').concat(e,'"]')).classList.add("mobile-menu-control--active"),t.classList.add("site-header__flyout--mobile-visible")}function K(e){var t=document.getElementsByClassName("".concat(b,"--").concat(e))[0];document.querySelector(".".concat("mobile-menu-control",'[data-promega-nav-flyout="').concat(e,'"]')).classList.remove("mobile-menu-control--active"),t.classList.remove("site-header__flyout--mobile-visible")}function Z(e){if(e&&e.classList&&e.classList.contains("site-header__section-title")){var t=e.nextElementSibling;e.classList.add("site-header__section-title--mobile-active"),t.classList.add("site-header__section-container--mobile-visible")}}function ee(e){if(e&&e.classList&&e.classList.contains("site-header__section-title")){var t=e.nextElementSibling;e.classList.remove("site-header__section-title--mobile-active"),t.classList.remove("site-header__section-container--mobile-visible")}}function te(){var e=document.getElementsByClassName(w)[0];e&&W(e.getAttribute("data-promega-nav-flyout"),{cleanupClickeater:!0,noMenuAnimation:!0})}function ne(){var e=document.getElementsByClassName(w)[0];return e?e.getAttribute("data-promega-nav-flyout"):null}function re(e){var t=document.getElementsByClassName("".concat(b,"--").concat(e))[0];return t?t.classList.contains(w):null}function oe(e){var t=document.querySelector(".site-header__account-full-name");if(!t)throw new Error("Main Nav doesn't include a container for the account name. Are you logged in?");t.innerText=e}var ae,ie={showQuantity:function(){var e=document.getElementsByClassName("".concat(p,"--cart"))[0];e&&e.classList.add("".concat(p,"--cart-with-quantity"))},hideQuantity:function(){var e=document.getElementsByClassName("".concat(p,"--cart"))[0];e&&e.classList.remove("".concat(p,"--cart-with-quantity"))},refreshQuantity:function(){var e=document.getElementsByClassName("".concat(p,"--cart"))[0];if(e){var t=parseInt(d.a.get("BasketQuantity"),10);if(isNaN(t))ie.hideQuantity();else{var n=(t=0>t?0:t)>99?"99+":t;e.setAttribute("data-cart-quantity",n),t>0?ie.showQuantity():ie.hideQuantity();for(var r=document.getElementsByClassName("promega-cart-quantity"),o=r.length,a=0;a<o;a++)r[a].innerText=t}}}};if("undefined"!=typeof document&&document.querySelector(".".concat("site-header"))&&!window.HeaderHack){window.HeaderHack=!0,function(){for(var e=document.querySelectorAll(".alert-container"),t=0,n=e.length;t<n;t++)if("none"!==window.getComputedStyle(e[t]).display)return{isVisible:!0,element:e[t]};return{isVisible:!1}}().isVisible&&window.MSInputMethodContext&&document.documentMode&&document.querySelector(".site-header").classList.add("header-relative");var ce=new MutationObserver((function(e,t){var n,r=h(e);try{for(r.s();!(n=r.n()).done;){if("childList"===n.value.type){var o=document.querySelector("div.magic-box-input input");o&&(document.querySelector("div.magic-box-input").classList.add("rounded-corner"),o.addEventListener("focus",D),o.addEventListener("blur",V),t.disconnect())}}}catch(e){r.e(e)}finally{r.f()}})),se=document.querySelector("header.site-header");ce.observe(se,{childList:!0,subtree:!0});for(var ue=document.getElementsByClassName(p),le=0;le<ue.length;le++)ue[le].addEventListener("touchstart",q),ue[le].addEventListener("mouseover",C),ue[le].addEventListener("click",N);for(var de=document.getElementsByClassName(b),me=0;me<de.length;me++)de[me].addEventListener("focusin",M);var fe=document.querySelector(".site-header__search-container");fe&&fe.addEventListener("focusin",(function(e){if("combobox"===e.target.attributes.getNamedItem("role").value){P()||I();var t=document.getElementsByClassName(w)[0];t&&W(t.getAttribute("data-promega-nav-flyout"),{cleanupClickeater:!1,noMenuAnimation:!1}),$()}}));var he=new Set((ae=document.querySelectorAll(".sticky-navigation__link"),function(e){if(Array.isArray(e))return y(e)}(ae)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(ae)||g(ae)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){return e.getAttribute("href")})));if(document.querySelectorAll('a[href^="#"]').forEach((function(e){var t=e.getAttribute("href");if("#"!==t&&!he.has(t))try{var n=document.querySelector(t);n&&(n.style.scrollMarginTop=headerHeight+"px")}catch(e){console.warn("Invalid anchor selector:",t)}})),document.addEventListener("animationend",(function(e){void 0!==e.target.classList&&e.target.classList.contains(b)&&(e.target.classList.remove("site-header__flyout--transitional-exit-anim"),e.target.classList.remove("site-header__flyout--final-exit-anim"),e.target.classList.remove("site-header__flyout--first-entrance-anim"),e.target.classList.remove("site-header__flyout--transitional-entrance-anim"))})),document.addEventListener("click",(function(e){if(e.target.classList.contains("mobile-menu-control")){var t=e.target.getAttribute("data-promega-nav-flyout");e.target.classList.contains("mobile-menu-control--active")?(K(t),Object(a.a)("Components","Main navigation - collapsed mobile menu",e.target.innerText)):(Y(t),Object(a.a)("Components","Main navigation - expanded mobile menu",e.target.innerText))}})),document.addEventListener("click",(function(e){e.target.classList.contains("site-header__section-title")&&(e.target.classList.contains("site-header__section-title--mobile-active")?(ee(e.target),Object(a.a)("Components","Main navigation - collapsed mobile submenu",e.target.innerText)):(Z(e.target),Object(a.a)("Components","Main navigation - expanded mobile submenu",e.target.innerText)))})),window.addEventListener("resize",(function(){L()})),ie.refreshQuantity(),r.COLONY.query.addListener((function(){return te()})),function(){for(var e=document.getElementsByClassName("site-header__link"),t=document.getElementsByClassName("site-header__control-button--nav"),n=Q(location.pathname),r=t[0],o=null,a=0,i=0;i<t.length;i++)if(""!==t[i].pathname&&Q(t[i].pathname)[0]===n[0]){r=t[i];break}for(var c=0;c<e.length;c++)if(e[c].getAttribute("href")){var s=z(n,Q(e[c].pathname));s>a&&(a=s,o=e[c])}r&&Y(r.getAttribute("data-promega-nav-flyout")),o&&a>1&&Z(o.closest(".".concat("site-header__section-container")).previousElementSibling)}(),"true"===Object(f.a)(location.href,"loginAttempt")){var ve=Object(m.a)(".COMMERCE_AUTH"),ge=new URL(window.location.href),ye=new URLSearchParams(ge.search);ye.delete("loginAttempt");var pe=ye.toString().length>0?"?":"";if(window.history.replaceState({},"","".concat(location.pathname).concat(pe).concat(ye).concat(location.hash)),!ve){var be=document.querySelector(".site-header__login-redirect-modal");be&&(be.querySelector("a").setAttribute("href","https://".concat(Object(s.a)()||"www",".promega.com/commerce/login")),Object(c.show)(document.querySelector(".site-header__login-redirect-modal")).then((function(){be.querySelector("header").focus()})))}}L()}},3:function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return o}
1)),n.d(t,"d",(function(){return a})),n.d(t,"r",(function(){return i})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"q",(function(){return d})),n.d(t,"l",(function(){return m})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"p",(function(){return g})),n.d(t,"n",(function(){return y})),n.d(t,"m",(function(){return p})),n.d(t,"o",(function(){return b})),n.d(t,"a",(function(){return w}));var r={BASE_URL:"/api/commerce/orders",SEARCH:"/api/commerce/orders/search",REORDER:"/api/commerce/orders/reorder"},o={BASE_URL:"/api/commerice/invoice",INVOICE_SEARCH:"/api/commerce/orders/invoice/request"},a={LOGIN:"/api/commerce/login",LOGINXDB:"/mvcapi/apianalytics/login",LOGOUT:"/api/commerce/logout",LOGOUTXDB:"/mvcapi/apianalytics/logout",REGISTER:"/api/commerce/register",FORGOT:"/api/commerce/password/forgot",RESEND_VERIFICATION:"/api/commerce/resendemailverification",RESET_PASSWORD:"/api/commerce/password/reset"},i={BASE_URL:"/api/commerce/settings",TRANSLATE:"/api/translate",SWITCH_SOLD_TO:"/api/commerce/switchSoldTo",UPDATE_PPP:"/api/commerce/updatePPP"},c={BASE_URL:"/api/commerce/addresses/emails"},s={BASE_URL:"/api/commerce/favorites"},u={BASE_URL:"/api/commerce/customer/communicationpreferences"},l={BASE_URL:"/api/commerce/addresses",SET_DEFAULT:"/api/commerce/addresses/setdefault",MAILING_ADDRESS_UPDATE:"/api/commerce/addresses/mailingaddress"},d={CUSTOMER:{BASE_URL:"/api/commerce/customer",ACCOUNT_INFO:"/api/commerce/customer/accountinfo"},NEW_USERNAME:"/api/commerce/customer/username",CHANGE_PASSWORD:"/api/commerce/password"},m={BASE_URL:"/api/commerce/paymentMethods",CREDIT_CARD:"/api/commerce/paymentMethods/cc",CREDIT_CARD_FRAME:"/commerce/account/addcard",PURCHASE_ORDER:"/api/commerce/paymentMethods/po",INTERNAL:"/api/commerce/paymentMethods/internal",SET_DEFAULT:{CREDIT_CARD:"/api/commerce/paymentMethods/cc/setdefault",PURCHASE_ORDER:"/api/commerce/paymentMethods/po/setdefault",INTERNAL:" /api/commerce/paymentMethods/internal/setdefault"}},f={BASE_URL:"/api/commerce/helix",SITE_SEARCH:"/api/commerce/helix/sites/search",PASSES:"/api/commerce/helix/passes",PASSES_LITE:"/api/commerce/helix/passes/noproduct",UPDATE:"/api/commerce/helix/passes/update",INSTITUTES:"/api/commerce/helix/partnership/institutes",EPEX_CART:"/api/commerce/helix/updateepexcart",GET_CART:"/api/commerce/helix/getepexcart",HELIX_UNLOCK:"/api/commerce/helix/passes/units/unlock"},h={BASE_URL:"/api/commerce/helix/passes/products/"},v={BASE_URL:"/api/commerce/helix/passes/products/available/search/",PASSES_NO_PROD:"/api/commerce/helix/passes/noproduct",REQUEST_PRODUCT:"/api/commerce/helix/addtohelix"},g={BASE_URL:"/api/commerce/orders/ppp/pending"},y={BASE_URL:"/api/commerce/orders/ppp"},p={BASE_URL:"/api/commerce/notifications"},b={ORDER_SEARCH:"/api/commerce/orders/ppp/ordersearch"},w={BASE_URL:"/api/commerce/accountHealth"}},30:function(e,t,n){"use strict";function r(e,t){var n=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),r=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);return null==r?"":decodeURIComponent(r[1].replace(/\+/g," "))}n.d(t,"a",(function(){return r}))},37:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(120),o=0,a=0,i=0,c=0,s=0,u=0,l=null,d=null,m=3;function f(e){if(s>c){var t=l(c,i,u,s);c++,window.scrollTo(0,t),requestAnimationFrame(f)}else window.scrollTo(0,a),window.lazySizesConfig.loadMode=m,window.lazySizes.loader.checkElems(),"function"==typeof d&&d()}function h(e,t,n){if(o="number"==typeof t&&t>0&&t!=1/0?t/1e3:.5,a=0,i=0,c=0,s=0,u=0,d=null,l=r.easeInOutQuad,null!==e){if(a=Math.floor(e.getBoundingClientRect().top+window.pageYOffset),n&&void 0!==n.offset){var h=parseInt(n.offset,10);isNaN(h)||(a+=h)}i=window.pageYOffset,c=0,s=60*o,u=a-i,n&&(n.updateHash&&(e.name||e.href||e.id)&&(location.hash=e.name||e.href||e.id),n.callback&&"function"==typeof n.callback&&(d=n.callback),n.easingFunction&&"function"==typeof n.easingFunction&&(l=n.easingFunction)),a!=i&&o>0?(m=window.lazySizesConfig.loadMode,window.lazySizesConfig.loadMode=0,requestAnimationFrame(f)):"function"==typeof d&&d()}}},39:function(e,t,n){"use strict";function r(){var e="";return location.href.indexOf("//devcloud")>0?e="devcloud":location.href.indexOf("//stagecloud")>0?e="stagecloud":location.href.indexOf("//testcloud")>0?e="testcloud":location.href.indexOf("//prodcloud")>0?e="prodcloud":location.href.indexOf("//hotfixcloud")>0?e="hotfixcloud":location.href.indexOf("//stagecontent")>0?e="stagecontent":location.href.indexOf("//cm-testcloud")>0?e="cm-testcloud":location.href.indexOf("//cm-prodcloud")>0?e="cm-prodcloud":location.href.indexOf("//cm-hotfixcloud")>0?e="cm-hotfixcloud":location.href.indexOf("//dev.")>0?e="dev":location.href.indexOf("//testcontent.")>0?e="testcontent":location.href.indexOf("//test.")>0?e="test":location.href.indexOf("//content.")>0?e="content":location.href.indexOf("//stage.")>0?e="stage":location.href.indexOf("//local.")>0?e="local":location.href.indexOf("//localcontent")>0&&(e="localcontent"),e}n.d(t,"a",(function(){return r}))},4:function(e,t,n){"use strict";function r(e){return Date.now()-e}n.d(t,"a",(function(){return r}))},5:function(e,t,n){"use strict";n.r(t),n.d(t,"show",(function(){return _})),n.d(t,"hide",(function(){return S})),n.d(t,"isVisible",(function(){return E})),n.d(t,"lock",(function(){return O})),n.d(t,"unlock",(function(){return A}));var r,o,a=n(63),i=n(19),c=n(1),s=n(127),u=!1,l=!1,d=!1,m=!1,f=!1,h={},v=!1;function g(e){if(e.target&&e.target.classList.contains("trigger--modal-dialog")){var t=e.target.nextElementSibling;t&&t.classList.contains("modal-dialog")&&(e.preventDefault(),e.stopPropagation(),e.target.blur(),_(t,e.target,{hideOnScroll:!0,hideOnResize:!0}).then((function(){Object(c.a)("Components","Modal - opened","Trigger element")})).catch((function(){})))}else e.target&&e.target.classList.contains("modal-dialog__close-button")&&(l&&d&&A(),S().then((function(){Object(c.a)("Components","Modal - closed","Close button")})).catch((function(){})))}var y=Object(a.a)((function(e){!u||v||m||f||(v=!0,S().then((function(){Object(c.a)("Components","Modal - closed","Scrolling")})).catch((function(){})))}),100);
1function p(e){27===e.keyCode&&(e.stopPropagation(),S().then((function(){Object(c.a)("Components","Modal - closed","Esc key")})).catch((function(){})))}function b(e){f=!1,m=!1;var t=e.target.querySelector(".".concat("modal-dialog"));if(t){var n=t.getAttribute("data-modal-id");if(e.target.classList.contains("modal-dialog-clickeater--entering"))e.target.classList.remove("modal-dialog-clickeater--entering"),t.classList.remove("modal-dialog--entering"),e.target.removeEventListener("animationend",b);else if(e.target.classList.contains("modal-dialog-clickeater--exiting")){if(function(e){e.style.position="",e.style.left="",e.style.top="",e.style.width="",e.style.height="";var t=e.querySelector(".".concat("modal-dialog__close-button"));t&&t.removeEventListener("click",g);document.querySelector(".modal-dialog-clickeater").classList.remove("modal-dialog-clickeater")}(t),h[n]){try{h[n]()}catch(e){}h[n]=null}var a=document.querySelector(".".concat("modal-placeholder","[data-modal-id='").concat(n,"']"));a&&(a.parentElement.insertBefore(t.parentElement.removeChild(t),a),a.parentElement.removeChild(a)),e.target.parentElement.removeChild(e.target)}}"function"==typeof r&&(r(),r=null),"function"==typeof o&&(o(),o=null)}function w(){var e=document.getElementsByClassName("modal-dialog--visible");return e[e.length-1]}function _(e,t,n){return new Promise((function(o,a){if(!e||m||f||l)a();else{r=o,u=!0,v=!1;var d,w,_=0,E=0;n&&(n.hideOnScroll&&document.addEventListener("scroll",y),n.hideOnResize&&window.addEventListener("resize",y),null!=n.width&&(d=parseInt(n.width,10)),null!=n.height&&(w=parseInt(n.height,10)));var O=e.querySelector(".".concat("modal-dialog__close-button"));O&&O.addEventListener("click",g);var A=document.createElement("div");A.className="modal-dialog-clickeater",A.addEventListener("click",(function(e){e.target.classList.contains("modal-dialog-clickeater")&&S().then((function(){Object(c.a)("Components","Modal - closed","Backdrop click")})).catch((function(){}))}));var L=e.hasAttribute("data-modal-id")?e.getAttribute("data-modal-id"):Object(s.a)(),q=document.createElement("div");if(q.setAttribute("data-modal-id",L),q.className="modal-placeholder",e.setAttribute("data-modal-id",L),e.setAttribute("aria-hidden","false"),e.parentElement.insertBefore(q,e),A.appendChild(e.parentElement.removeChild(e)),t&&t.setAttribute("data-modal-id",L),n&&n.afterHide&&"function"==typeof n.afterHide&&(h[L]=n.afterHide),document.body.appendChild(A),document.documentElement.addEventListener("keydown",p),isNaN(d)&&(d=null),isNaN(w)&&(w=null),null!==d&&(e.style.width="".concat(d,"px")),null!=w&&(e.style.height="".concat(w,"px")),null!==d&&null!==w||(e.style.display="flex",null===d&&(d=e.offsetWidth),null===w&&(w=e.offsetHeight),e.style.display=""),t){var C=t.getBoundingClientRect();_=C.left,E=C.top+t.offsetHeight;var k=_+d,j=window.innerWidth||document.documentElement.clientWidth;k>j-16&&(_=j-(d+32));var x=E+w,M=window.innerHeight||document.documentElement.clientHeight;x>M-16&&(E=M-(w+16)),e.style.position="absolute",e.style.left=_+"px",e.style.top=E+"px"}Object(i.a)()&&(m=!0,f=!0,e.classList.add("modal-dialog--entering"),A.classList.add("modal-dialog-clickeater--entering"),A.addEventListener("animationend",b)),e.classList.add("modal-dialog--visible"),document.querySelector("main")&&document.querySelector("main").setAttribute("aria-hidden","true"),n&&n.omitFromHistory?history.replaceState({type:"modal",data:{modalId:L,options:Object.assign({},n,{afterHide:null})}},"",""):history.pushState({type:"modal",data:{modalId:L,options:Object.assign({},n,{afterHide:null})}},"","")}}))}function S(e){return new Promise((function(t,n){if(!u||m||f||l)n();else{o=t;var r=w(),a=(c=document.getElementsByClassName("modal-dialog-clickeater"))[c.length-1];r&&(r.classList.remove("modal-dialog--visible"),Object(i.a)()?(f=!0,a&&(a.classList.add("modal-dialog-clickeater--exiting"),a.addEventListener("animationend",b))):a&&b({target:a}),0===document.getElementsByClassName("modal-dialog--visible").length&&(u=!1,document.documentElement.removeEventListener("keydown",p),document.removeEventListener("scroll",y),window.removeEventListener("resize",y)),e&&e.skipHistoryUpdate||!history||
1!history.state||"modal"!==history.state.type||history.state.data.modalId===r.getAttribute("data-modal-id")&&history.back()),document.querySelector("main")&&document.querySelector("main").setAttribute("aria-hidden","false")}var c}))}function E(){return u}function O(e){E()&&(l=!0),e&&!0===e.allowCloseButton&&(d=!0)}function A(){l=!1,d=!1}if("undefined"!=typeof document){document.addEventListener("click",g),window.addEventListener("popstate",(function(e){if(null===e.state&&E())S({skipHistoryUpdate:!0}).then((function(){Object(c.a)("Components","Modal - closed","Browser history")}));else if(e.state&&"modal"===e.state.type){var t=document.querySelector(".".concat("modal-dialog--visible","[data-modal-id='").concat(e.state.data.modalId,"']"));if(t)t.getAttribute("data-modal-id")===w().getAttribute("data-modal-id")||S({skipHistoryUpdate:!0}).then((function(){Object(c.a)("Components","Modal - closed","Browser history")}));else{var n=document.querySelector(".".concat("modal-dialog","[data-modal-id='").concat(e.state.data.modalId,"']"));if(n){var r=document.querySelector("*[data-modal-id='".concat(e.state.data.modalId,"']:not(.").concat("modal-dialog",")")),o=h.hasOwnProperty(e.state.data.modalId)?h[e.state.data.modalId]:null;_(n,r,Object.assign({},e.state.data.options,{omitFromHistory:!0,afterHide:o})).then((function(){Object(c.a)("Components","Modal - opened","Browser history")}))}}}}));for(var L=document.querySelectorAll(".".concat("modal-dialog","[data-autoshow]")),q=0;q<L.length;q++)_(L[q]),Object(c.a)("Components","Modal - opened","Automatic (on page load)")}},52:function(e,t,n){"use strict";function r(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),a=o.length;a-- >0;)-1!==o[a].lastIndexOf(r,0)&&o.splice(a,1);return e=n[0]+(o.length>0?"?"+o.join("&"):"")}return e}n.d(t,"a",(function(){return r}))},53:function(e,t,n){"use strict";n.r(t),n.d(t,"isSearchHostDisallowed",(function(){return c})),n.d(t,"getCertificatesOfAnalysis",(function(){return s})),n.d(t,"getProductsByGroup",(function(){return u})),n.d(t,"getSearchBox",(function(){return l}));var r=["prototype.promega.com","localhost"],o="/services/widenlookupservice.svc/",a="/services/products.ashx",i="same-origin";function c(e){return r.indexOf(e)>-1}function s(e,t,n,r){return new Promise((function(a,c){if(e){var s=o+"?catNum="+e;t&&(s+="&lotNum="+t),fetch(s,{credentials:i}).then((function(e){return e.json()})).then((function(e){n&&n(e),a(e.SearchForCertificateofAnalysisResult)})).catch((function(e){r&&r(e),c(e)}))}}))}function u(e,t,n,r){if(e&&n){var o=a+"?group="+e;if(t&&(t.index&&(o+="&index="+t.index),t.count&&(o+="&count="+t.count),t.sort&&(o+="&sort="+t.sort),t.filters&&t.filters.length>0)){o+="&filters=";for(var c=0;c<t.filters.length;c++)c>0&&(o+=","),o+=t.filters[c]}fetch(o,{credentials:i}).then((function(e){return e.json()})).then(n).catch(r)}}function l(){return document.querySelector(".".concat("CoveoOmnibox"," input"))}"undefined"!=typeof window&&c(location.host)&&(o=location.protocol+"//www.promega.com"+o,a=location.protocol+"//dev.promega.com"+a,i="include")},56:function(e,t,n){"use strict";function r(e,t,n){var r=e.toString(),o=r.indexOf("#"),a="",i=null,c=null;o>0&&(a=r.slice(o),r=r.substring(0,o));var s=r.indexOf("?"+t+"=");if(s<=0&&(s=r.indexOf("&"+t+"=")),s>=0){var u=r.indexOf("&",s+1);i=r.substring(0,s),u>=0&&r.length>u+1&&(c=r.substring(u))}else i=r;return i.indexOf("?")>=0?i+="&":i+="?",i+=t+"="+n,null!==c&&(i+=c),a.length>0&&(i+=a),i}n.d(t,"a",(function(){return r}))},57:function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(25),i=n(160);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.a=function(e){var t=e.min,n=e.max,s=e.onValueChange,u=e.isDisabled,l=e.propClass,d=c(Object(r.useState)(t),2),m=d[0],f=d[1];Object(r.useEffect)((function(){s(m)}),[m,s]);var h=function(){m<n&&f(m+1)},v=function(){m>t&&f(m-1)};return o.a.createElement("div",{className:"quantity-input".concat("string"==typeof l&&l.length>0?" "+l:""),"data-reactroot":""},o.a.createElement("button",{type:"button",className:"quantity-input__button","data-quantity-action":"decrement",onClick:v,disabled:m===t},o.a.createElement(a.a,{icon:i.a})),o.a.createElement("input",{type:"text","aria-label":"Quantity",pattern:"\\d*",value:m,onChange:function(e){var r=parseInt(e.target.value,10);!isNaN(r)&&r>=t&&r<=n&&f(r)},onFocus:function(e){e.target.setSelectionRange(0,e.target.value.length)},onKeyDown:function(e){13===e.keyCode||27===e.keyCode?(e.preventDefault(),e.target.blur()):38===e.keyCode?h():40===e.keyCode&&v()},onBlur:function(e){s(m)},disabled:u}),o.a.createElement("button",{type:"button",className:"quantity-input__button","data-quantity-action":"increment",onClick:h,disabled:m===n},o.a.createElement(a.a,{icon:i.b})))}},6:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=function(e){var t="loading-indicator loading-indicator--visible";return"page"===e.type&&(t="".concat(t," loading-indicator--page")),e.className&&(t="".concat(t," ").concat(e.className)),o.a.createElement("div",{className:t},o.a.createElement("span",{className:"loading-indicator__inner"}))}},63:function(e,t,n){"use strict";function r(e,t,n){var r,o,a,i=null,c=0;n||(n={});var s=function(){c=!1===n.leading?0:Date.now(),i=null,a=e.apply(r,o),i||(r=o=null)};return function(){var u=Date.now();c||!1!==n.leading||(c=u);var l=t-(u-c);return r=this,o=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),c=u,a=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(s,l)),a}}n.d(t,"a",(function(){return r}))},64:function(e,t,n){"use strict";n.r(t),n.d(t,"login",(function(){return a})),n.d(t,"logout",(function(){return i})),n.d(t,"register",(function(){return c})),n.d(t,"forgotPassword",(function(){return s})),n.d(t,"resetPassword",(function(){return u})),n.d(t,"resendVerification",(function(){return l}));var r=n(3),o=n(39);function a(e,t){return new Promise((function(n,a){var i;fetch("https://".concat(Object(o.a)()||"www",".promega.com")+r.d.LOGIN,{credentials:"include",method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({username:e,password:t})}).then((function(e){return i=e,e.json()})).then((function(e){i.ok?fetch(r.d.LOGINXDB,{credentials:"same-origin",method:"POST"}).then(n(e)):a(e)})).catch((function(){return a()}))}))}function i(){return new Promise((function(e,t){fetch("https://".concat(Object(o.a)()||"www",".promega.com")+r.d.LOGOUT,{credentials:"include",method:"POST"}).then((function(n){n.ok?fetch(r.d.LOGOUTXDB,{credentials:"same-origin",method:"POST"}).then((function(t){e()})):t()})).catch((function(){return t()}))}))}function c(e){return new Promise((function(t,n){var o;fetch(r.d.REGISTER,{credentials:"same-origin",method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then((function(e){return o=e,e.json()})).then((function(e){o.ok?t(e):n(e)})).catch((function(){return n()}))}))}function s(e){return new Promise((function(t,n){var o;fetch("".concat(r.d.FORGOT,"?username=").concat(encodeURIComponent(e)),{credentials:"same-origin"}).then((function(e){return o=e,e.json()})).then((function(e){o.ok?t(e):n(e)})).catch((function(){return n()}))}))}function u(e){var t=e.password,n=e.loginRpId,o=e.oldPassword,a=e.username;return new Promise((function(e,i){var c={newPassword:t};"string"==typeof n&&(c.loginRpId=n),"string"==typeof o&&(c.oldPassword=o),"string"==typeof a&&(c.username=a),fetch(r.d.RESET_PASSWORD,{credentials:"same-origin",method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(c)}).then((function(t){t.ok?e():t.json().then((function(e){return i(e)}))})).catch((function(){return i()}))}))}function l(e){return new Promise((function(t,n){fetch("".concat(r.d.RESEND_VERIFICATION,"?email=").concat(encodeURIComponent(e)),{credentials:"same-origin"}).then((function(e){e.ok?t():e.json().then((function(e){return n(e)}))})).catch((function(){return n()}))}))}},70:function(e,t,n){"use strict";function r(e,t){return e.closest(t)}n.d(t,"a",(function(){return r}))},76:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(20),o=n.n(r);function a(){return 1===parseInt(o.a.get("UserLoginStatus"),10)}},77:function(e,t,n){"use strict";n.r(t),n.d(t,"GENE",(function(){return r})),n.d(t,"CHROMOSOME",(function(){return o}
1)),n.d(t,"NUCLEUS",(function(){return a})),n.d(t,"CELL",(function(){return i})),n.d(t,"COLONY",(function(){return c})),n.d(t,"ORGANISM",(function(){return s}));var r={size:320,query:null},o={size:480,query:null},a={size:600,query:null},i={size:768,query:null},c={size:1024,query:null},s={size:1280,query:null};"undefined"!=typeof window&&(r.query=window.matchMedia("(min-width: "+r.size+"px)"),o.query=window.matchMedia("(min-width: ".concat(o.size,"px)")),a.query=window.matchMedia("(min-width: "+a.size+"px)"),i.query=window.matchMedia("(min-width: "+i.size+"px)"),c.query=window.matchMedia("(min-width: "+c.size+"px)"),s.query=window.matchMedia("(min-width: "+s.size+"px)"))},84:function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(0),o=n.n(r),a=n(38),i=n.n(a),c=n(12);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function e(t){var n=s(Object(r.useState)(t.Files.find((function(e){return e.IsDefault}))||t.Files[0]),2),a=n[0],i=n[1],u=s(Object(r.useState)(!1),2),l=u[0],d=u[1],m=!1===t.units?null:t.units||"KB",f=t.OverrideTitle?t.OverrideTitle:a.Title,h=o.a.createElement(o.a.Fragment,null,!t.Modal&&t.Files&&t.Files.length>1&&o.a.createElement("select",{className:"content-item",value:a.Url,autoComplete:"off",onChange:function(e){return i(t.Files.find((function(t){return t.Url===e.target.value})))}},t.Files.map((function(e){return o.a.createElement("option",{key:e.Url,value:e.Url},e.Language)}))),a&&o.a.createElement(o.a.Fragment,null,o.a.createElement("a",{className:"download-file ".concat(t.GtmClasses).concat(t.Modal?" flex-container__expand":""),download:"".concat(a.Title,".").concat(a.Extension.toLowerCase()),href:a.Url},o.a.createElement("span",{className:"download-file__file-name",dangerouslySetInnerHTML:{__html:f}}),o.a.createElement("span",{className:"download-file__file-size"},a.Extension," ",a.Size>0&&"(".concat(a.Size).concat(m&&" ".concat(m),")")," ",a.Language&&" â ".concat(a.Language))),t.Modal&&t.Files&&t.Files.length>1&&o.a.createElement(o.a.Fragment,null,o.a.createElement("button",{type:"button",className:"download-file__modal-trigger",onClick:function(){return d(!0)}}),o.a.createElement(c.b,{isOpen:l,header:f,width:600,onRequestClose:function(){return d(!1)}},t.Files.map((function(t){return o.a.createElement(e,{Files:[t],key:t.Url})}))))));return o.a.createElement("div",{className:"download-file-container ".concat(t.Modal?" flex-container flex-container--no-gutter":""),"data-initial-state":JSON.stringify(t)},h)};function d(){for(var e=0,t=Array.from(document.querySelectorAll(".download-file-container[data-initial-state]"));e<t.length;e++){var n=t[e];if(!n.parentElement.closest(".download-file-container[data-initial-state]")){var r=JSON.parse(n.dataset.initialState);i.a.hydrate(o.a.createElement(l,r),n.parentElement)}}}t.a=l}}]); 2//# sourceMappingURL=common.fa8150e0b85b5d8be66f.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.