PageSourceSearch

https://www.benjaminmoore.com/_next/static/chunks/8007.b5156db084299610.js

js benjaminmoore.com collected 2026-09-24 08:45:31 UTC 9,037 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8007],{58988:function(e,t){"use strict";t.E=function(e,t){return e.split(",").map(function(e){var t=(e=e.trim()).match(r),a=t[1],o=t[2],s=t[3]||"",c={};return c.inverse=!!a&&"not"===a.toLowerCase(),c.type=o?o.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],c.expressions=s.map(function(e){var t=e.match(n),r=t[1].toLowerCase().match(i);return{modifier:r[1],feature:r[2],value:t[2]}}),c}).some(function(e){var r=e.inverse,n="all"===e.type||t.type===e.type;if(n&&r||!(n||r))return!1;var i=e.expressions.every(function(e){var r=e.feature,n=e.modifier,i=e.value,a=t[r];if(!a)return!1;switch(r){case"orientation":case"scan":return a.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=u(i),a=u(a);break;case"resolution":i=c(i),a=c(a);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=s(i),a=s(a);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,a=parseInt(a,10)||0}switch(n){case"min":return a>=i;case"max":return a<=i;default:return a===i}});return i&&!r||!i&&r})};var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,n=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,a=/(em|rem|px|cm|mm|in|pt|pc)?$/,o=/(dpi|dpcm|dppx)?$/;function s(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function c(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},49180:function(e,t,r){"use strict";var n=r(58988).E,i="undefined"!=typeof window?window.matchMedia:null;function a(e,t,r){var a,o=this;function s(e){o.matches=e.matches,o.media=e.media}i&&!r&&(a=i.call(window,e)),a?(this.matches=a.matches,this.media=a.media,a.addListener(s)):(this.matches=n(e,t),this.media=e),this.addListener=function(e){a&&a.addListener(e)},this.removeListener=function(e){a&&a.removeListener(e)},this.dispose=function(){a&&a.removeListener(s)}}e.exports=function(e,t,r){return new a(e,t,r)}},28670:function(e,t,r){"use strict";var n=r(8307),i=r(67294),a=r(47),o=r(38087),s=r(85893);function c(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.Z=e=>{let{imageSrc:t,width:r,height:n,data_test_id:c,isCotyImage:l}=e,{0:p,1:d}=(0,i.useState)(""),{0:m,1:f}=(0,i.useState)(""),{0:h,1:b}=(0,i.useState)(!1),{alt_text:x,altText:v,large_url:y,large_description:g,medium_url:w,medium_description:O,small_url:k,small_description:j,image:C,imageMd:E,imageLg:$,isDecorativeImage:P}=t,S=(0,a.ac)({query:o.r3.xl}),_=(0,a.ac)({query:o.r3.lg}),L=(0,a.ac)({query:o.r3.md}),R=(0,a.ac)({query:o.r3.sm}),W=(0,a.ac)({query:o.r3.xs});return((0,i.useEffect)(()=>{let e="",t="";l&&b(!0),S||_?(e=y||$,t=g):h?L||R?(e=w||E,t=O):W&&(e=k||C,t=j):!h&&(L||R?(e=w||E,t=O):W&&(e=k||C,t=j)),d(e),f(t)},[S,_,L,R,W]),p)?(0,s.jsx)("img",u(u({},P?{role:"none"}:{}),{},{src:p,alt:x||v,width:r||"auto",height:n||"auto","data-testid":c})):null}},68007:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}}),r(67294);var n=r(87379),i=r(51815);let a=n.ZP.div.withConfig({displayName:"simpleCardstyles__SimpleCardContainer",componentId:"sc-11kl8ub-0"})(["display:flex;flex-direction:column;background-color:",";position:relative;overflow:hidden;border-radius:6px;flex:1;.imageWrapper{img{width:100%;max-width:100%;display:block;}}.contentWrapper{max-width:100%;padding:16px 24px 28px 24px;display:flex;align-items:flex-start;a:focus{outline:2px solid ",";}}","{.contentWrapper{padding:24px 38px 38px 32px;}}"],({$backgroundColor:e})=>e,({theme:e})=>
1e.colors.focus_color,i.Ri.xl);var o=r(57660),s=r(28670),c=r(52105),u=r(53351),l=r(23928),p=r(85893);let d=l.colors.white;var m=e=>{let{background_color:t,image:r,link:n}=e,{alt_text:i,text:l,url:m}=n??{},f=i||l,h=(0,o.ZP)(t||d);return(0,p.jsxs)(a,{$backgroundColor:t,$color:h,"data-testid":"SimpleCard",className:"simpleCardContainer",children:[r?(0,p.jsx)("div",{className:"imageWrapper",children:(0,p.jsx)(s.Z,{"data-testid":"image-test",imageSrc:r})}):null,m&&l?(0,p.jsx)("div",{className:"contentWrapper",children:(0,p.jsx)(c.E,{$color:h,"aria-label":f,href:m,children:(0,p.jsx)(u.qx,{dangerouslySetInnerHTML:{__html:l},$color:h})})}):null]})}},38087:function(e,t,r){"use strict";r.d(t,{r3:function(){return i}});var n=r(23928);n.default.breakpoints[2],n.default.breakpoints[2],n.default.breakpoints[3],n.default.breakpoints[3];let i={xs:`(min-width: ${n.default.breakpoints[0]}px)`,sm:`(min-width: ${n.default.breakpoints[2]}px)`,md:`(min-width: ${n.default.breakpoints[3]}px)`,lg:`(min-width: ${n.default.breakpoints[3]+1}px)`,xl:`(min-width: ${n.default.breakpoints[4]+1}px)`},a={xs:`@media screen and ${i.xs}`,sm:`@media screen and ${i.sm}`,md:`@media screen and ${i.md}`,lg:`@media screen and ${i.lg}`,xl:`@media screen and ${i.xl}`};t.ZP=a},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
1;return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},47:function(e,t,r){"use strict";r.d(t,{ac:function(){return L}});var n=r(67294),i=r(49180),a=r.n(i),o=/[A-Z]/g,s=/^ms-/,c={};function u(e){return"-"+e.toLowerCase()}var l=function(e){if(c.hasOwnProperty(e))return c[e];var t=e.replace(o,u);return c[e]=s.test(t)?"-"+t:t},p=r(45697),d=r.n(p);let m=d().oneOfType([d().string,d().number]),f={all:d().bool,grid:d().bool,aural:d().bool,braille:d().bool,handheld:d().bool,print:d().bool,projection:d().bool,screen:d().bool,tty:d().bool,tv:d().bool,embossed:d().bool},{type:h,...b}={orientation:d().oneOf(["portrait","landscape"]),scan:d().oneOf(["progressive","interlace"]),aspectRatio:d().string,deviceAspectRatio:d().string,height:m,deviceHeight:m,width:m,deviceWidth:m,color:d().bool,colorIndex:d().bool,monochrome:d().bool,resolution:m,type:Object.keys(f)},x={minAspectRatio:d().string,maxAspectRatio:d().string,minDeviceAspectRatio:d().string,maxDeviceAspectRatio:d().string,minHeight:m,maxHeight:m,minDeviceHeight:m,maxDeviceHeight:m,minWidth:m,maxWidth:m,minDeviceWidth:m,maxDeviceWidth:m,minColor:d().number,maxColor:d().number,minColorIndex:d().number,maxColorIndex:d().number,minMonochrome:d().number,maxMonochrome:d().number,minResolution:m,maxResolution:m,...b};var v={...f,...x};let y=e=>`not ${e}`,g=(e,t)=>{let r=l(e);return("number"==typeof t&&(t=`${t}px`),!0===t)?r:!1===t?y(r):`(${r}: ${t})`},w=e=>e.join(" and "),O=e=>{let t=[];return Object.keys(v).forEach(r=>{let n=e[r];null!=n&&t.push(g(r,n))}),w(t)},k=(0,n.createContext)(void 0),j=e=>e.query||O(e),C=e=>{if(e)return Object.keys(e).reduce((t,r)=>(t[l(r)]=e[r],t),{})},E=()=>{let e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{e.current=!0},[]),e.current},$=e=>{let t=(0,n.useContext)(k),r=()=>C(e)||C(t),[i,a]=(0,n.useState)(r);return(0,n.useEffect)(()=>{let e=r();!function(e,t){if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(let n=0;n<i;n++){let i=r[n];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}(i,e)&&a(e)},[e,t]),i},P=e=>{let t=()=>j(e),[r,i]=(0,n.useState)(t);return(0,n.useEffect)(()=>{let e=t();r!==e&&i(e)},[e]),r},S=(e,t)=>{let r=()=>a()(e,t||{},!!t),[i,o]=(0,n.useState)(r),s=E();return(0,n.useEffect)(()=>{if(s){let e=r();return o(e),()=>{e&&e.dispose()}}},[e,t]),i},_=e=>{let[t,r]=(0,n.useState)(e.matches);return(0,n.useEffect)(()=>{let t=e=>{r(e.matches)};return e.addListener(t),r(e.matches),()=>{e.removeListener(t)}},[e]),t},L=(e,t,r)=>{let i=$(t),a=P(e);if(!a)throw Error("Invalid or missing MediaQuery!");let o=S(a,i),s=_(o),c=E();return(0,n.useEffect)(()=>{c&&r&&r(s)},[s]),(0,n.useEffect)(()=>()=>{o&&o.dispose()},[]),s}}}]);

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.