PageSourceSearch

https://mattamyhomes.com/dist/mattamy-homes/static/js/components-containers-ButtonCTA.e0de91cb.chunk.js

js mattamyhomes.com collected 2026-10-03 19:47:54 UTC 3,008 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4774],{69080:(n,t,e)=>{e.r(t),e.d(t,{default:()=>u});e(50390);var o=e(78186),i=e(43687),d=e(17309),r=e(75903),c=e.n(r),s=e(62559);const l=(0,d.ZP)(o.zx).withConfig({displayName:"ButtonCTA__StyledButton",componentId:"sc-1dmkrov-0"})(["",""],n=>{let{smallCTA:t}=n;return t&&"\n    padding-top: 0;\n    padding-bottom: 0;\n    padding-left: 3rem;\n    padding-right: 3rem;\n    height: 3.125rem;\n  "}),u=n=>{let{fields:t,color:e="action-blue",textColor:o="action-blue",className:d,smallCTA:r,hoverState:u}=n;const a=(0,i.getFieldValue)(t,"buttonCta")||{},m=e||t.color;return(0,s.jsx)(l,{color:m,textColor:o,href:a.href,smallCTA:r,className:c()({"hover:bg-mattamy-blue-dark":u&&"action-blue"===e},d),children:a.text})}},16100:(n,t,e)=>{e.d(t,{Z:()=>o});const o={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1920px)"}},51301:(n,t,e)=>{e.d(t,{Z:()=>c});var o=e(50390),i=e(45759),d=e.n(i);const r=n=>n<640?"xs":n>=640&&n<768?"sm":n>=768&&n<1024?"md":n>=1024&&n<1280?"lg":n>=1280&&n<1920?"xl":"2xl",c=()=>{const[n,t]=(0,o.useState)("xs");return(0,o.useEffect)(()=>{t(r(window.innerWidth));const n=d()(()=>{t(r(window.innerWidth))},200);return window.addEventListener("resize",n),()=>{var t;null===(t=n.cancel)||void 0===t||t.call(n),window.removeEventListener("resize",n)}},[]),n}},20160:(n,t,e)=>{e.d(t,{Z:()=>i});var o=e(50390);const i=(n,t)=>{(0,o.useEffect)(()=>{const e=e=>{n.current&&!n.current.contains(e.target)&&t(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[n,t])}},73538:(n,t,e)=>{function o(n){return n<.5?4*n*n*n:.5*Math.pow(2*n-2,3)+1}function i(n,t,e,o){const i=window.pageYOffset,d=function(n){const t=document.getElementById("header").clientHeight;return window.pageYOffset+n.getBoundingClientRect().top-t}(n)-o,r=(document.body.scrollHeight-d<window.innderHeight?document.body.scrollHeight-window.innerHeight:d)-i;let c;r&&window.requestAnimationFrame(function n(o){c||(c=o);const d=o-c,s=e(Math.min(d/t,1));window.scrollTo(0,i+r*s),d<t&&window.requestAnimationFrame(n)})}function d(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const e=document.getElementById(n);e&&"undefined"!==typeof window&&(i(e,250,o,t),e.focus())}function r(){"undefined"!==typeof window&&function(n,t){const e=window.pageYOffset,o=(document.body.scrollHeight-0<window.innderHeight?document.body.scrollHeight-window.innerHeight:0)-e;let i;o&&window.requestAnimationFrame(function d(r){i||(i=r);const c=r-i,s=t(Math.min(c/n,1));window.scrollTo(0,e+o*s),c<n&&window.requestAnimationFrame(d)})}(250,o)}e.d(t,{Qj:()=>d,k3:()=>r})},35470:(n,t,e)=>{function o(n){try{new URL(n)}catch(t){return!1}return!0}e.d(t,{j:()=>o})}}]);
2//# sourceMappingURL=components-containers-ButtonCTA.e0de91cb.chunk.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.