PageSourceSearch

https://www.benjaminmoore.com/_next/static/chunks/3122.877b7c2755617638.js

js benjaminmoore.com collected 2026-10-01 10:14:53 UTC 21,318 bytes, 35 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3122],{52355:function(e,t,r){r.d(t,{Z:function(){return w}});var n=r(8307),o=r(4730),i=r(67294),a=r(2529),c=r(57660),s=r(87379),l=r(29913),d=r(38087);let p=`${d.ZP.md.replace("min-width","max-width")} and (orientation: portrait)`,u=(e,t,r)=>`background-color: ${t};
2   color: ${r};
3   border: ${"secondary"===e||"outline"===e?`1px solid ${r}`:"none"};
4   svg {
5    fill: ${r};
6  }`,f=s.ZP.a.withConfig({displayName:"Anchorstyles__StyledAnchor",componentId:"sc-ham3sd-0"})([""," appearance:none;background-color:",";border-radius:6px;border:0;color:",";cursor:pointer;flex-direction:row;font-family:inherit;font-style:normal;font-weight:bold;padding:0;text-decoration:none;display:inline-block;text-align:center;"," &,&:focus{outline:none;}&:not(:disabled):hover > span,&:not(:disabled):focus > span{transform:scale( "," );}&:not(:disabled):active{","}"," "," "," "," ",""],l.in,({backgroundColor:e})=>e,({$color:e})=>e,({iconRight:e,$variant:t})=>e?`svg {
7            order: 1;
8            margin-left: ${"icon-text"===t?"8px":"0"};
9          }`:`svg {
10            margin-right: ${"icon-text"===t?"8px":"0"};
11            min-width: 24px;
12          }`,({scaleOnHover:e,$variant:t})=>e?"icon-only"===t?1.2:1.03:null,({scaleOnHover:e})=>e?`
13    transform: scale(0.98);
14    transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
15   `:null,({scaleOnHover:e})=>e?"":null,({$variant:e})=>"icon-only"===e?"min-width: 54px;":"text-only"===e?`
16          min-width: 110px;
17          ${d.ZP.lg} {
18            min-width: 122px;
19          }
20        `:"",({$growOnSmall:e})=>e&&`
21        ${p} {
22          flex: 1;
23          width: 100%;
24        }
25      `,({disabled:e})=>e&&`
26        cursor: default;
27        pointer-events: all;
28        span {
29          opacity: 0.6;
30        }
31      `,({$anchorVariant:e,theme:t,$color:r})=>"secondary"===e?u("secondary",t.colors.white,t.colors.dark_grey_1):"error"===e?u("error",t.colors.red,t.colors.off_white):"outline"===e?u("outline","transparent",r):""),h=s.ZP.span.withConfig({displayName:"Anchorstyles__StyledSpan",componentId:"sc-ham3sd-1"})(["align-items:center;display:inline-flex;justify-content:center;transition:transform 120ms;&:focus{outline:none;}"," ",""],({$variant:e})=>"icon-only"===e?"padding: 15px;":"icon-text"===e?"padding: 15px 32px 15px 30px;":"padding: 15px 32px;",({$growOnSmall:e,$variant:t})=>e&&`
32        ${p} {
33          ${"icon-only"===t?"":"icon-text"===t?"padding: 14.75px 17px 15.25px 15px;":"padding: 15px 32px;"}
34        }
35      `);var g=r(99072),b=r(45968),m=r(81414),y=r(23928),O=r(85893);let x=["backgroundColor","isButtonContrastColor","children","disabled","icon","iconOnly","onClick","iconRight","scaleOnHover","iconSize","$anchorVariant"];function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var w=(0,i.forwardRef)((e,t)=>{let{backgroundColor:r=y.default.colors.dark_grey_1,isButtonContrastColor:n=!0,children:s,disabled:l,icon:d,iconOnly:p,onClick:u,iconRight:v=!1,scaleOnHover:w=!0,iconSize:_=24,$anchorVariant:P="primary"}=e,k=(0,o.Z)(e,x),R=(0,i.useMemo)(()=>d&&p?"icon-only":d?"icon-text":"text-only",[d,p]),S=(0,c.ZP)(r?.length===7&&r?.includes("#")?r:y.default.colors.dark_grey_1,n),C=i.useCallback(()=>{try{(0,m.j)(b.Z.clickEvent.eventId,{[b.Z.keys.clickedText]:s||d||null,[b.Z.keys.clickedName]:k?.className,[b.Z.keys.destinationUrl]:k?.href,[b.Z.keys.sourceUrl]:window.location.pathname,[b.Z.keys.source]:window.location.host})}catch(e){(0,a.V)(e)}u&&u()},[u,k?.className,k?.href,s,d]);return(0,O.jsx)(f,j(j({$color:y.default.colors[S],backgroundColor:r,$variant:R,$anchorVariant:P,disabled:l,iconRight:v,scaleOnHover:w,onClick:C},k),{},{ref:t,children:(0,O.jsxs)(h,{$growOnSmall:k.$growOnSmall,$variant:R,children:[d?(0,O.jsx)(g.Z,{fill:y.default.colors[S],icon:d,size:_}):null,p?null:s]})}))})},5510:function(e,t,r){var n=r(8307),o=r(4730),i=r(67294),a=r(81366),c=r(85893);let s=["children","sm","md","lg","smLeft","mdLeft","lgLeft","xs","xl","xsLeft","xlLeft"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
35t%2?l(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let p=(0,i.forwardRef)((e,t)=>{let{children:r,sm:n=6,md:i=12,lg:l=12,smLeft:p=0,mdLeft:u=0,lgLeft:f=0,xs:h=n,xl:g=l,xsLeft:b=p,xlLeft:m=f}=e,y=(0,o.Z)(e,s);return(0,c.jsx)(a.xu,d(d({cols:[h,n,i,l,g],left:[b,p,u,f,m],ref:t},y),{},{children:r}))});t.Z=p},49114:function(e,t,r){var n=r(8307),o=r(4730),i=r(67294),a=r(81366),c=r(87379),s=r(85893);let l=["children"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let u=(0,i.forwardRef)((e,t)=>{let r=(0,c.Fg)(),{children:n}=e,i=(0,o.Z)(e,l);return(0,s.jsx)(a.rj,p(p({bottom:"0px",breakpoints:r.breakpoints,control:!1,colspan:r.gridColspan,gutterX:r.gridGutter,gutterY:"0px",left:r.gridPadding,right:r.gridPadding,top:"0px",ref:t},i),{},{"data-menu":"floatingMenu",children:n}))});t.Z=u},90943:function(e,t,r){r.r(t),r.d(t,{compTestId:function(){return X},default:function(){return J}});var n=r(8307),o=r(67294),i=r(69002),a=r(11163),c=r(74623),s=r(52820),l=r(87379),d=r(12647);let p=(0,l.ZP)(d.a).withConfig({displayName:"createAccountstyles__CreateAccountWrapper",componentId:"sc-1307bqd-0"})([""]);
35var u=r(93395),f=r(41992),h=r(96207),g=r(91197),b=r(34457),m=r(97670),y=r(636),O=r(21585),x=r(70954),v=r(4812),j=r(85893);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let P="CreateAccount";var k=e=>{let{dictionaryData:t}=e,{email_label:r,continue_btn_label:n,login_url:a,create_acc_form_title:l,create_acc_form_sub_title:d,login_page_url:w}=t??{},[k,,R]=(0,s.Z)([h.iY]),{setActiveScreen:S,setRegistrationEmail:C,registrationEmail:L,scrollToHeader:E}=(0,i.F6)(),{navigateTo:Z}=(0,O.BB)(),{registerValidation:D,validateAllFields:N}=(0,u.f)(),{0:I,1:$}=(0,o.useState)(L||""),{0:T,1:V}=(0,o.useState)(!1),U=(0,o.useCallback)(e=>{$(e.target.value)},[]),B=(0,o.useCallback)(async e=>{if(e.preventDefault(),N()){V(!0);let[e,t]=await (0,v.K)({username:I});if(t)return V(!1),!1;let{is_email_in_use:r,is_email_verified:n}=e?.data??{};if(k.orderLinkData&&I!==k?.orderLinkData?.email){let e=(0,x.aO)();R(h.iY,_(_({},h.aG),{},{maxAge:e}))}if(C(I),r){if(n){sessionStorage.setItem("user-email",I);let e=`${w}?account_exist=true`;window.location.href=e}else S(c.V2.OTPRequest)}else S(c.V2.SignUp),Z(m.U.LANDING),V(!1);E()}},[k.orderLinkData,I,w,Z,R,E,S,C,N]);return(0,j.jsxs)(p,{"data-testid":P,children:[(0,j.jsx)(b.Z,{title:l,subtitle:d}),(0,j.jsxs)("form",{className:"signupForm",onSubmit:B,children:[(0,j.jsx)("div",{children:(0,j.jsx)(g.Z,{id:"email",label:r,value:I,onChange:U,registerValidation:D,shouldValidate:!0,required:!0})}),(0,j.jsx)(f.Z,{type:"submit",className:"submitBtn","data-testid":`${P}_SubmitBtn`,disabled:T,$buttonVariant:T?"disabled":"primary",children:(0,j.jsx)(y.f2,{$fontWeight:"bold",children:n})})]}),(0,j.jsx)(y.uT,{dangerouslySetInnerHTML:{__html:a},className:"loginRedirectSection"})]})},R=r(4730),S=r(51815),C=r(23928);let L=l.ZP.div.withConfig({displayName:"emailConfirmationstyles__EmailConfirmationWrapper",componentId:"sc-1xc3qtk-0"})([".formWrapper{display:flex;flex-direction:column;width:100%;gap:",";}.formHeaderContainer{display:flex;flex-direction:column;gap:",";}.resendBtn{display:inline;background:none;border:none;text-decoration-line:underline;text-decoration-style:solid;cursor:pointer;}button,a{&:focus{",";}}","{.goToLoginBtn{margin-top:",";}}"],C.Hg,C._z,C.zu,S.Ri.xxl,C._z);var E=r(37943),Z=r(52355),D=r(51579),N=r(88486),I=r(24760);let $=["signup_email_resend_success_msg","generic_error_message"],T="EmailConfirmation";var V=()=>{let{registrationEmail:e,scrollToHeader:t}=(0,i.F6)(),{locale:r}=(0,a.useRouter)(),{password_reset_success_subtitle:n,password_reset_resend_button:c,go_to_login_button:s,password_reset_help_text:l,signup_success_title:d}=(0,N.jU)(),{close_icon:p}=(0,N.F5)(),u=(0,N.kU)(),{signup_email_resend_success_msg:f,generic_error_message:h}=u,g=(0,R.Z)(u,$),b=(0,E.Z)("login_url");(0,o.useEffect)(()=>{t()},[t]);let m=(0,o.useCallback)(async()=>{let[t,n]=await (0,I.eq)({username:e,locale:r,sl:!1});if(n){let e="";n?.response&&(e=g[n.response?.data?.errors?.[0]?.code]),(0,D.Jc)(e||h,{closeBtnAriaLabel:p});return}t?.status==="OK"&&(0,D.Qm)(f)},[e,r,h,p,g,f]);return(0,j.jsx)(L,{"data-testid":T,children:(0,j.jsxs)("div",{className:"formWrapper",children:[(0,j.jsxs)("div",{className:"formHeaderContainer",children:[(0,j.jsx)(y.qb,{as:"h1",$fontWeight:"medium",dangerouslySetInnerHTML:{__html:d}}),(0,j.jsxs)(y.uT,{children:[n,(0,j.jsx)("button",{type:"button",className:"resendBtn","data-testid":`${T}_ResendBtn`,onClick:m,children:(0,j.jsx)(y.uT,{$fontWeight:"bold",dangerouslySetInnerHTML:{__html:c}})})]})]}),(0,j.jsx)(Z.Z,{className:"goToLoginBtn","data-testid":`${T}_GoToLoginBtn`,href:b,children:(0,j.jsx)(y.uT,{$color:"white",$fontWeight:"bold",dangerouslySetInnerHTML:{__html:s}})}),(0,j.jsx)("div",{className:"bottomSection",children:(0,j.jsx)(y.uT,{dangerouslySetInnerHTML:{__html:l}})})]})})},U=r(83445),B=r(93002),A=r(52105),H=r(35763),z=r(91091),F=r(94133),W=r(70381);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
35t%2?q(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let G="Registration";var Y=e=>{let{loading:t,activeScreen:r,setActiveScreen:n,registerHeaderRef:s,convertToProAccount:l}=(0,i.F6)(),{back:p}=(0,N.jU)(),u=(0,E.Z)("profile_endpoint"),f=(0,a.useRouter)(),h=(0,o.useCallback)(()=>{r===c.V2.SignUp?l?document.referrer?f.back():f.push(u):n(c.V2.CreateAccount):(r===c.V2.ProRegistration||r===c.V2.StandardRegistration)&&n(c.V2.SignUp)},[r,l,u,f,n]);return(0,j.jsxs)(d.o,{"data-testid":G,ref:s,children:[r!==c.V2.CreateAccount&&r!==c.V2.EmailConfirm&&r!==c.V2.OTPConfirm&&r!==c.V2.OTPRequest?(0,j.jsx)("div",{className:"backBtnWrapper",children:(0,j.jsx)(A.Dr,{"data-testid":`${G}_BackBtn`,className:"backBtn",onClick:h,icon:{rotation:180,icon:"arrow",size:24},"aria-label":p,children:(0,j.jsx)(y.U,{$link:!0,children:p})})}):null,(0,j.jsx)("div",{className:"innerWrapper",children:(0,j.jsx)("div",{className:"formWrapper",children:((e,t)=>{switch(e){case c.V2.CreateAccount:return(0,j.jsx)(k,M({},t));case c.V2.SignUp:return(0,j.jsx)(U.Z,M({},t));case c.V2.StandardRegistration:return(0,j.jsx)(z.Z,M({},t));case c.V2.ProRegistration:return(0,j.jsx)(H.Z,M({},t));case c.V2.EmailConfirm:return(0,j.jsx)(V,{});case c.V2.OTPConfirm:return(0,j.jsx)(F.Z,{redirectToLogin:!0});case c.V2.OTPRequest:return(0,j.jsx)(W.Z,{redirectToLogin:!0});default:return null}})(r,e)})}),(0,j.jsx)(B.Z,{$display:t,className:"spinner",$color:"black",$background:"rgba(0,0,0,0.2)"})]})};function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}let X="RegistrationProvider";var J=e=>((0,o.useEffect)(()=>{let e=(0,x.Fz)("disableReferrer");document&&document.referrer&&!e&&localStorage.setItem("referrer",document.referrer),localStorage.removeItem("disableReferrer")},[]),(0,j.jsx)(i.X,{children:(0,j.jsx)(Y,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e))}))},34853:function(e,t,r){r.d(t,{Z:function(){return x}});var n,o,i=r(67294),a=r(45697),c=r.n(a),s=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(d(t)),t.handleErrored=t.handleErrored.bind(d(t)),t.handleChange=t.handleChange.bind(d(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(d(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p(t,e);var r=t.prototype;return r.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},r.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},r.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},r.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.handleRecaptchaRef=function(e){this.captcha=e},r.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,s));return i.createElement("div",l({},t,{ref:this.handleRecaptchaRef}))},t}(i.Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:c().string.isRequired,onChange:c().func,grecaptcha:c().object,theme:c().oneOf(["dark","light"]),type:c().oneOf(["image","audio"]),tabindex:c().number,onExpired:c().func,onErrored:c().func,size:c().oneOf(["compact","normal","invisible"]),stoken:c().string,hl:c().string,badge:c().oneOf(["bottomright","bottomleft","inline"]),isolated:c().bool}
35,u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var f=r(8679),h=r.n(f);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var b={},m=0,y="onloadcallback";function O(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var x=(n=function(){var e=O(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+y+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+y+"&render=explicit"},o=(o={callbackName:y,globalName:"grecaptcha",attributes:O().nonce?{nonce:O().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){function r(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t;var a=r.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+m++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof n?n():n,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=b[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[o.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=o,i=n.globalName,a=n.callbackName,c=n.scriptId;if(i&&void 0!==window[i]&&(b[t]={loaded:!0,observers:{}}),b[t]){var s=b[t];if(s&&(s.loaded||s.errored)){this.asyncScriptLoaderHandleLoad(s);return}s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var l={};l[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},b[t]={loaded:!1,observers:l};var d=document.createElement("script");for(var p in d.src=t,d.async=!0,o.attributes)d.setAttribute(p,o.attributes[p]);c&&(d.id=c);var u=function(e){if(b[t]){var r=b[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=b[t];e&&(e.loaded=!0,u(function(t){return!a&&(t(e),!0)}))},d.onerror=function(){var e=b[t];e&&(e.errored=!0,u(function(t){return t(e),!0}))},document.body.appendChild(d)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===o.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=b[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===o.removeOnUnmount&&delete b[e])},a.render=function(){var t=o.globalName,r=this.props,n=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=n,(0,i.createElement)(e,a)},r}(i.Component),a=(0,i.forwardRef)(function(e,t){return(0,i.createElement)(r,g({},e,{forwardedRef:t}))});return a.displayName="AsyncScriptLoader("+t+")",a.propTypes={asyncScriptOnLoad:c().func},h()(a,e)})(u)}}]);

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.