PageSourceSearch

https://madelevator.com/_next/static/chunks/315-82a4d6ae8e000c6b.js

js madelevator.com collected 2026-10-01 16:35:44 UTC 12,788 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[315],{4654:function(){},5987:function(e,l,t){"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat("https://cms.madelevator.com").concat(e)}function o(e){return null==e?null:e.startsWith("http")||e.startsWith("//")?e:"".concat(n()).concat(e)}t.d(l,{$:function(){return o},p:function(){return n}})},632:function(e,l,t){"use strict";t.d(l,{Z:function(){return u}});var n=t(7334),o=t.n(n),i=t(5987);async function c(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{let c={next:n?void 0:{revalidate:120},headers:{"Content-Type":"application/json"},...t},u=o().stringify(l),r="".concat((0,i.p)("/api".concat(e).concat(u?"?".concat(u):""))),a=await fetch(r,c);return await a.json()}catch(e){throw console.error(e),Error("Please check if your server is running and you set all the required tokens.")}}async function u(e){let l=encodeURIComponent(e),t=await c("/search",{query:l});return null==t?void 0:t.results}},4237:function(e,l,t){"use strict";t.d(l,{Y:function(){return i}});var n=t(5987),o=t(3523);async function i(e){let{mailHtml:l,to:t=o.zb,subject:i="MAD Elevator"}=e,c={to:t,subject:i,text:"MAD Elevator",html:l};o.zb!==o.jb&&(c.cc=o.jb),fetch((0,n.p)()+"/api/email",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("a4ab3172f6b52756daf725b5224292a9ef523d8271e011dc80acf36efdcbeaea696a1fc455a12eb32025fa85e46202c2795058ee47bd2298507a1177c62f319d8d04110eb34d28e4186cb1b0898d1bcd20ccac16969bec4481784f9bcb671aeb00558d50d438f3a05fde6725ad238bc25d635213b2b270aaa0511e3150f2e085")},body:JSON.stringify(c)}).then(e=>{200===e.status?console.log("Mail sent successfully"):console.log("Mail sending failed")}).catch(e=>{console.log("Mail sending failed",e)})}},3523:function(e,l,t){"use strict";t.d(l,{O$:function(){return o},YQ:function(){return u},jb:function(){return c},qL:function(){return n},zb:function(){return i}});let n="[email protected]",o="[email protected]",i="[email protected]",c="[email protected]",u="6LcBxXIqAAAAAHE7TvDuoAQJQPkAJejccT7bwkgV"},6181:function(e,l,t){"use strict";t.d(l,{GG:function(){return n},JH:function(){return i},dF:function(){return o},m_:function(){return c}});let n=e=>{switch(e){case"none":return"py-0";case"small":return"py-5 md:py-7";case"medium":default:return"py-7 md:py-15";case"large":return"py-15 md:py-30"}},o=e=>{switch(e){case"white":return"bg-white";case"grey":return"bg-gray border-y border-b border-black/10";case"lightGrey":return"bg-gray-200 border-t border-b border-black/10";default:return""}},i=e=>{var l,t,n;let{url:o,ext:i}=e,c=(null==o?void 0:null===(n=o.split("/"))||void 0===n?void 0:null===(t=n.pop())||void 0===t?void 0:null===(l=t.split("."))||void 0===l?void 0:l.pop())||"",u=[".mpeg",".mp4",".wmv",".avi",".flv"];return(null==u?void 0:u.includes(i))||(null==u?void 0:u.includes("."+c))||!1},c=e=>{var l;return null==e?void 0:null===(l=e.replace(/([A-Z])/g," $1"))||void 0===l?void 0:l.replace(/^./,e=>null==e?void 0:e.toUpperCase())}},2098:function(e,l,t){"use strict";var n=t(7437),o=t(6800),i=t.n(o),c=t(7138),u=t(2265);l.default=e=>{let{type:l="red",buttonType:t="button",size:o,className:r,label:a,href:s,target:d="_self",onClick:v=()=>{},disabled:f,svgIcon:p,iconWidth:b="100%",iconHeight:g="35px",marginLeft:h="",classNameIcon:m=""}=e,y=(0,u.useRef)(null);return((0,u.useRef)(null),s)?(0,n.jsx)(c.default,{ref:y,href:s||"#",onClick:f?()=>{}:v,target:d,"aria-label":a,className:i()("btn relative group  items-center justify-center",{"btn--red":"red"===l,"btn--red--o":"redOutline"===l,"btn--black":"black"===l,"btn--black--o":"blackOutline"===l,"btn--white":"white"===l,"btn--ghost":"ghost"===l,"btn--white--o":"whiteOutline"===l,"btn--sm":"sm"===o,"btn--xs":"xs"===o,"opacity-50 pointer-events-none":f,"justify-between ":!!p},{svgIcon:"justify-between"},r),children:(0,n.jsxs)("span",{className:"relative z-[1] flex items-center gap-3 w-full justify-between ".concat(p?"justify-between w-full":""),children:[(0,n.jsx)("span",{className:"relative z-[1] btn__label",children:a}),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{className:"btn__circle ".concat("_blank"===d?"transform _rotate-90":"","  "),children:(0,n.jsx)("svg",{width:"23",height:"19",viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M19.8306 8.60538H1.95798C1.24265 8.60538 0.78054 9.24256 1.0563 9.85645C1.22687 10.2321 1.53269 10.4057 1.95798 10.405C4.64797 10.4 7.33821 10.4 10.0287 10.405H19.8592C19.6864 10.5703 19.5639 10.6882 19.4392 10.8062C17.3112 12.8255 15.1853 14.8467 13.0613 16.87C12.8841 17.0446 12.7599 17.2657 12.7029 17.5079C12.621 17.8904 12.8404 18.2383 13.1785 18.4096C13.3462 18.4969 13.5375 18.5283 13.7243 18.4992C13.9111 18.4702 14.0837 18.3821 14.217 18.248C15.0826 17.4305 15.9452 16.6097 16.8048 15.7857C18.5155 14.1572 20.2259 12.5292 21.9361 10.9016C22.8167 10.0608 22.8197 8.95628 21.9361 8.11471C19.3863 5.6827 16.8343 3.25319 14.2801 0.826186C13.7646 0.336277 13.0591 0.427947 12.772 1.01328C12.5842 1.39725 12.6676 1.78271 13.029 2.1276C14.1892 3.23215 15.3501 4.33645 16.5117 5.4405L19.8306 8.60538Z",fill:"currentColor"})})})})]})}):(0,n.jsx)("button",{"aria-label":a,typeof:"button",onClick:f?()=>{}:v,type:t,className:i()("btn relative group  items-center justify-center",{"btn--red":"red"===l,"btn--red--o":"redOutline"===l,"btn--black":"black"===l,"btn--black--o":"blackOutline"===l,"btn--white":"white"===l,"btn--white--o":"whiteOutline"===l,"btn--sm":"sm"===o,"opacity-50 pointer-events-none":f,"justify-between ":!!p},{svgIcon:"justify-between"},r),children:(0,n.jsxs)("span",{className:"relative z-[1] flex items-center gap-3 w-full justify-between ".concat(p?"justify-between w-full":""),children:[(0,n.jsx)("span",{className:"relative z-[1] btn__label",children:a}),(0,n.jsx)("div",{className:"btn__circle ".concat("_blank"===d?"transform _rotate-90":"","  "),children:(0,n.jsx)("svg",{width:"23",height:"19",viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M19.8306 8.60538H1.95798C1.24265 8.60538 0.78054 9.24256 1.0563 9.85645C1.22687 10.2321 1.53269 10.4057 1.95798 10.405C4.64797 10.4 7.33821 10.4 10.0287 10.405H19.8592C19.6864 10.5703 19.5639 10.6882 19.4392 10.8062C17.3112 12.8255 15.1853 14.8467 13.0613 16.87C12.8841 17.0446 12.7599 17.2657 12.7029 17.5079C12.621 17.8904 12.8404 18.2383 13.1785 18.4096C13.3462 18.4969 13.5375 18.5283 13.7243 18.4992C13.9111 18.4702 14.0837 18.3821 14.217 18.248C15.0826 17.4305 15.9452 16.6097 16.8048 15.7857C18.5155 14.1572 20.2259 12.5292 21.9361 10.9016C22.8167 10.0608 22.8197 8.95628 21.9361 8.11471C19.3863 5.6827 16.8343 3.25319 14.2801 0.826186C13.7646 0.336277 13.0591 0.427947 12.772 1.01328C12.5842 1.39725 12.6676 1.78271 13.029 2.1276C14.1892 3.23215 15.3501 4.33645 16.5117 5.4405L19.8306 8.60538Z",fill:"currentColor"})})})]})})}},9340:function(e,l,t){"use strict";var n=t(7437),o=t(5987),i=t(6181),c=t(7138);t(2265);let u=e=>{let{result:l,url:t,type:o}=e;if(null==l?void 0:l.title)return(0,n.jsxs)(c.default,{href:(null==l?void 0:l.slug)?t:"#",target:"_self",className:"flex justify-between gap-3 text-base group","aria-label":null==l?void 0:l.title,children:[(0,n.jsx)("p",{className:"transition-all ease-in group-hover:underline max-w-[75%] md:max-w-none",children:null==l?void 0:l.title}),(0,n.jsx)("p",{className:"text-gray-400",children:o})]})};l.Z=e=>{let{searchResults:l}=e;return(null==l?void 0:l.length)>0?(0,n.jsx)("div",{className:"space-y-4",children:null==l?void 0:l.map((e,l)=>{var t,r,a,s,d,v,f,p,b,g,h,m,y,x,w,j,C,k,N,_,L;if(["case-study-category","case-study"].includes(null==e?void 0:e.collection)){let l;return(0,n.jsx)(u,{result:e,url:(l="/case-study",(null==e?void 0:e.collection)==="case-study-category"?"".concat(l,"?category=").concat(null==e?void 0:e.slug):"".concat(l,"/").concat(null==e?void 0:e.slug)),type:"Case Study"})}if(["faq-category","faq"].includes(null==e?void 0:e.collection)){let l;return(0,n.jsx)(u,{result:e,url:(l="/faq",(null==e?void 0:e.collection)==="faq-category"?"".concat(l,"?category=").concat(null==e?void 0:e.slug):"".concat(l,"/").concat(null==e?void 0:e.slug)),type:"FAQ"})}if((null==e?void 0:e.collection)==="news")return(0,n.jsx)(u,{result:e,url:"/news/".concat(null==e?void 0:e.slug),type:"News"});if((null==e?void 0:e.collection)==="page")return(0,n.jsx)(u,{result:e,url:"/".concat(null==e?void 0:e.slug),type:"Page"});if(["product-level-1","product-level-2","product-level-3"].includes(null==e?void 0:e.collection)){let l;return(0,n.jsx)(u,{result:e,url:(l="/products",(null==e?void 0:e.collection)==="product-level-2"?"".concat(l,"/").concat(null==e?void 0:null===(t=e.productLevel1)||void 0===t?void 0:t.slug,"/").concat(null==e?void 0:e.slug):(null==e?void 0:e.collection)==="product-level-3"?"".concat(l,"/").concat(null==e?void 0:null===(r=e.productLevel1)||void 0===r?void 0:r.slug,"/").concat(null==e?void 0:null===(a=e.productLevel2)||void 0===a?void 0:a.slug,"/").concat(null==e?void 0:e.slug):"".concat(l,"/").concat(null==e?void 0:e.slug)),type:"Product Category"})}if((null==e?void 0:e.collection)==="product"){let l;return(0,n.jsx)(u,{result:e,url:(l="/products",(null==e?void 0:null===(s=e.productLevel1)||void 0===s?void 0:s.slug)&&(null==e?void 0:null===(d=e.productLevel2)||void 0===d?void 0:d.slug)&&(null==e?void 0:null===(v=e.productLevel3)||void 0===v?void 0:v.slug)?"".concat(l,"/").concat(null==e?void 0:null===(g=e.productLevel1)||void 0===g?void 0:g.slug,"/").concat(null==e?void 0:null===(h=e.productLevel2)||void 0===h?void 0:h.slug,"/").concat(null==e?void 0:null===(m=e.productLevel3)||void 0===m?void 0:m.slug,"/").concat(null==e?void 0:e.slug):(null==e?void 0:null===(f=e.productLevel1)||void 0===f?void 0:f.slug)&&(null==e?void 0:null===(p=e.productLevel2)||void 0===p?void 0:p.slug)?"".concat(l,"/").concat(null==e?void 0:null===(y=e.productLevel1)||void 0===y?void 0:y.slug,"/").concat(null==e?void 0:null===(x=e.productLevel2)||void 0===x?void 0:x.slug,"/").concat(null==e?void 0:e.slug):(null==e?void 0:null===(b=e.productLevel1)||void 0===b?void 0:b.slug)?"".concat(l,"/").concat(null==e?void 0:null===(w=e.productLevel1)||void 0===w?void 0:w.slug,"/").concat(null==e?void 0:e.slug):"".concat(l,"/").concat(null==e?void 0:e.slug)),type:"Product"})}if((null==e?void 0:e.collection)==="resource"){let{type:l,media:t,url:u,short_url:r}=e,a=(0,i.JH)({url:null==t?void 0:null===(C=t.data)||void 0===C?void 0:null===(j=C.attributes)||void 0===j?void 0:j.url,ext:null==t?void 0:null===(N=t.data)||void 0===N?void 0:null===(k=N.attributes)||void 0===k?void 0:k.ext}),s=r||(0,o.$)(null==t?void 0:null===(L=t.data)||void 0===L?void 0:null===(_=L.attributes)||void 0===_?void 0:_.url)||u;return(null==e?void 0:e.title)&&(0,n.jsxs)(c.default,{href:s||"#",target:"_blank",className:"flex justify-between gap-3 text-base group","aria-label":null==e?void 0:e.title,children:[(0,n.jsx)("p",{className:"transition-all ease-in group-hover:underline max-w-[75%] md:max-w-none",children:null==e?void 0:e.title}),(0,n.jsx)("p",{className:"text-gray-400",children:"video"===l||a?"Video":"PDF"})]})}return((null==e?void 0:e.title)||(null==e?void 0:e.question)||(null==e?void 0:e.name)||(null==e?void 0:e.quote))&&(0,n.jsx)("p",{className:"block text-base truncate",children:(null==e?void 0:e.title)||(null==e?void 0:e.question)||(null==e?void 0:e.name)||(null==e?void 0:e.quote)})})}):(0,n.jsx)("div",{className:"flex items-center justify-center py-20 text-black/50",children:"No Search Results"})}},9320:function(e,l,t){"use strict";var n=t(7437);t(2265);
1var o=t(9226),i=t(4177),c=t(6800),u=t.n(c),r=t(481),a=t(6648);l.Z=e=>{let{isOpen:l,onClose:t,children:c,className:s,childClassName:d,parentClassName:v=""}=e;return(0,n.jsx)(o.u,{show:l,children:(0,n.jsxs)(i.V,{className:"fixed inset-0 z-[99] overflow-y-auto bg-black/70 ".concat(v),onClose:t,children:[(0,n.jsx)("div",{onClick:t,className:"fixed cursor-pointer top-6 right-6",children:(0,n.jsx)(a.default,{"aria-hidden":!0,src:r.Z,alt:"close-icon"})}),(0,n.jsx)("div",{className:"flex items-center justify-center w-full h-screen ",children:(0,n.jsx)(o.u.Child,{as:"div",enter:"transition-all duration-300",enterFrom:" md:translate-y-0 ",enterTo:"translate-y-0 md:translate-x-0",leave:"duration-300",leaveFrom:"translate-y-0 md:translate-x-0",leaveTo:" md:translate-y-0 ",className:d,children:(0,n.jsx)(i.V.Panel,{className:u()("w-full",s),children:c})})})]})})}},481:function(e,l){"use strict";l.Z={src:"/_next/static/media/closeicon.9cf3e018.svg",height:15,width:15,blurWidth:0,blurHeight:0}}}]);

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.