PageSourceSearch

https://www.dvaluminium.com/_next/static/chunks/pages/canadian-grant-and-loan-a929cfd36106aa57.js

js dvaluminium.com collected 2026-10-04 02:31:26 UTC 6,540 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{6730:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/canadian-grant-and-loan",function(){return n(9640)}])},9640:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return CanadianGrantLoan}});var a=n(7997),l=n(9473),c=n(9568),i=n(8021),r=n(1425),s=n(55),h=n(88),d=n(7778),o=n(174),u=n(85);function CanadianGrantLoan(){let e=(0,l.v9)(e=>e.lang.value);(0,h.q)(e,(0,d.d)("0004"));let[t,n,f]=[(0,u.Q)(),(0,u.Q)().content,(0,u.Q)().content.main[e]];return(0,a.BX)(c.Z,{meta:t.meta,lang:e,children:[(0,a.BX)(r.Z,{images:t.header.images,lang:e,children:[(0,a.tZ)(s.Z,{level:"1",type:"slider",children:n.h1[e]}),(0,a.tZ)(s.Z,{level:"2",type:"slider",children:n.h2[e]})]}),(0,a.tZ)(i.Z,{children:(0,a.tZ)("div",{className:"flex flex-wrap w-full",children:(0,a.BX)("div",{className:"flex-col w-full",children:[(0,a.BX)("div",{className:"w-full max-w-2xl m-auto pb-8",children:[(0,a.tZ)(s.Z,{level:"3",as:"1",classes:"text-center",children:n.h3[e]}),(0,a.tZ)(s.Z,{level:"4",as:"2",classes:"text-center",children:n.h4[e]})]}),f.map((e,t)=>(0,o.d)(t,e))]})})})]})}},1425:function(e,t,n){"use strict";n.d(t,{Z:function(){return Header}});var a=n(7997),l=n(1720),c=n(5675),i=n.n(c),r=n(9521),s=n.n(r),h=n(6066),d=n(6851);function Header(e){let{images:t,cta:n,children:c,autoplay:r=!1,short:o,layout:u="responsive",objectFit:f="contain",lang:m}=e,g=o?"70vh":"85vh",[p,v]=(0,l.useState)(g),b="fill"===u;(0,l.useEffect)(()=>{if(!b){v(g);return}let updateHeight=()=>{window.innerWidth<768?v(o?"50vh":"60vh"):v(g)};return updateHeight(),window.addEventListener("resize",updateHeight),()=>window.removeEventListener("resize",updateHeight)},[b,g,o]);let handleSlideChange=e=>{if(!(t[e].cta&&n))return;let a=1*e,l=0===a?t.length-1:a-1;s().timeline({defaults:{overwrite:!0}}).to(document.querySelector("#slider-cta-".concat(l)),{autoAlpha:0,duration:0}).to(document.querySelector("#slider-cta-".concat(a)),{autoAlpha:1,duration:0})},Z={infinite:!0,autoplay:r,speed:250,autoplaySpeed:6e3,pauseOnHover:!0,slidesToShow:1,slidesToScroll:1,beforeChange:(e,t)=>
1handleSlideChange(t),onInit:handleSlideChange(0),className:"h-full"};return(0,a.tZ)("header",{className:"bg-black",children:(0,a.BX)("div",{className:"relative",children:[(0,a.tZ)(h.Z,{...Z,children:t.map((e,t)=>(0,a.tZ)("div",{className:"w-full bg-black",children:(0,a.tZ)("div",{className:"relative opacity-50 w-full",style:b?{height:p}:void 0,children:(0,a.tZ)(i(),{src:e.src,alt:e.alt[m],width:e.width,height:e.height,placeholder:"blur",layout:u,objectFit:f})})},"".concat(t,"-").concat(e.alt[m])))}),(0,a.BX)("div",{className:"absolute top-0 left-0 z-10 w-full h-full",children:[(0,a.tZ)("div",{className:"flex flex-wrap items-center h-full px-4 py-2 md:px-16 md:py-10 lg:px-28 lg:py-20 max-w-screen-2xl m-auto",children:(0,a.BX)("div",{className:"flex flex-col md:mb-8 lg:mb-16",children:[c,n&&(0,a.tZ)("div",{className:"relative h-12 mt-2 md:mt-6",children:t.map((e,t)=>e.cta&&(0,a.tZ)(d.Z,{variant:"tertiary",id:"slider-cta-".concat(t),href:e.cta.href[m],classes:"invisible absolute left-0 top-0 z-".concat(t+1,"0"),children:e.cta.label[m]},t))})]})}),(0,a.tZ)("div",{className:"absolute w-full flex justify-center -bottom-12 sm:-bottom-5 lg:bottom-6",children:(0,a.tZ)(i(),{src:"/img/logos/25-years-in-business-".concat(m,".png"),alt:"en"===m?"Celebrating 25 years in business":"Nous c\xe9l\xe9brons 25 ans d'activit\xe9",width:200,height:149,className:"max-w-[90px] sm:max-w-[150px] lg:max-w-[200px]"})})]})]})})}},7778:function(e,t,n){"use strict";n.d(t,{d:function(){return pagePath}});var a=n(1055);let pagePath=e=>{let t={},n=(0,a.G)();return n.menu.forEach(n=>{var a;let l=null===(a=n.sub)||void 0===a?void 0:a.findIndex(t=>t.id===e);n.id===e?t={en:n.en.href,fr:n.fr.href}:l>=0&&(t={en:n.sub[l].en.href,fr:n.sub[l].fr.href})}),t}},174:function(e,t,n){"use strict";n.d(t,{d:function(){return printContent}});var a=n(7997),l=n(5935),c=n(7632),i=n(55),r=n(5688),s=n(6851),h=n(1664),d=n.n(h),o=n(5675),u=n.n(o),f=n(1163),m={src:"/_next/static/media/chevron.0f2c48fb.svg",height:25,width:24,blurWidth:0,blurHeight:0};function ItemLink(e){let{children:t,href:n,classes:l=!1}=e,c=(0,f.useRouter)(),i="flex font-mono font-bold text-sm md:text-base text-blue",r=l?"".concat(i," ").concat(l):i;return(0,a.tZ)(d(),{href:{pathname:n,query:c.query},legacyBehavior:!0,children:(0,a.BX)("a",{className:r,children:[t,(0,a.tZ)("span",{className:"chevron w-5 md:w-7 md:h-6",children:(0,a.tZ)(u(),{src:m,alt:t})})]})})}var g={src:"/_next/static/media/info.590f0287.svg",height:18,width:18,blurWidth:0,blurHeight:0},p={src:"/_next/static/media/warranty.e7e5d400.svg",height:18,width:18,blurWidth:0,blurHeight:0},v={src:"/_next/static/media/checkmark.8d21c249.svg",height:18,width:18,blurWidth:0,blurHeight:0},b={src:"/_next/static/media/chevron-dark.a2dbe097.svg",height:25,width:24,blurWidth:0,blurHeight:0};function List(e){let{data:t,icon:n,classes:c}=e,getIcon=()=>{let e=!1;switch(n.type){case"info":e=g;break;case"warranty":e=p;break;case"checkmark":e=v;break;case"chevron":e=b}if(e)return(0,a.tZ)("span",{className:"flex-shrink-0",children:(0,a.tZ)("span",{className:"flex pr-2 pt-0.5",children:(0,a.tZ)(u(),{src:e,alt:n.alt})})})};return(0,a.tZ)("ul",{className:"font-mono text-black py-3 text-base lg:text-lg ".concat(c),children:t.map((e,t)=>(0,a.tZ)("li",{className:"pb-0.5",children:(0,a.BX)("div",{className:"flex",children:[getIcon(),(0,a.tZ)("span",{children:(0,l.ZP)(e)})]})},t))})}let printContent=(e,t)=>{switch(t.type){case"p":return(0,a.tZ)(r.Z,{classes:t.classes||"",children:(0,l.ZP)(t.content?t.content:t)},getUniqueKey(e||"0"));case"h1":case"h2":case"h3":case"h4":case"h5":return(0,a.tZ)(i.Z,{level:t.type.charAt(t.type.length-1),as:t.as||"",classes:t.classes||"",children:(0,l.ZP)(t.content?t.content:t)},getUniqueKey(e||"0"));case"button":return(0,a.tZ)(s.Z,{variant:t.variant,href:t.href,onClick:t.action||!1,target:t.target||"",classes:t.classes||"",children:t.content},getUniqueKey(e||"0"));case"chevron":return(0,a.tZ)(ItemLink,{href:t.href,target:t.target||"",classes:t.classes||"",legacyBehavior:!0,children:t.content},getUniqueKey(e||"0"));case"component":return t.content;case"list":return(0,a.tZ)(List,{data:t.content,type:t.type,icon:t.icon||"",classes:t.classes||""},getUniqueKey(e||"0"));default:console.log("Type not found: ".concat(t.type))}},getUniqueKey=e=>"".concat(e,"-").concat((0,c.Z)())}},function(e){e.O(0,[433,287,478,334,888,179],function(){return e(e.s=6730)}),_N_E=e.O()}]);

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.