PageSourceSearch

https://www.transurban.com/etc.clientlibs/digitalcms/clientlibs/di…/static/js/QuickLinks.8ffd4176.chunk.js

js transurban.com collected 2026-09-24 19:40:29 UTC 4,670 bytes, 2 lines download raw bytes

1/*! For license information please see QuickLinks.8ffd4176.chunk.js.LICENSE.txt */
2(self.webpackChunkui_frontend=self.webpackChunkui_frontend||[]).push([[614],{56983:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var r=t(47313),l=t(46123),i=t.n(l),o=t(54826),s=t(46417);const c=e=>{var n,t,l,c,u,a,d,f;let{title1:h,title2:g,title3:v,title4:p,icon1:w,icon2:x,icon3:b,icon4:m,linkText1:k,linkText2:j,linkText3:y,linkText4:C,linkUrl1:E,linkUrl2:N,linkUrl3:_,linkUrl4:M,newWindow1:S,newWindow2:B,newWindow3:I,newWindow4:L,bgColorDark:R,bgColor:A,componentId:T}=e;const z=(0,r.useRef)(null),W=(0,r.useRef)(null),U=(0,r.useRef)(null),O=(0,r.useRef)(null),q=(0,r.useRef)(null),{width:D}=(0,o.dz)(),F=null!==(n=null===(t=document.getElementById("url1-".concat(T)))||void 0===t?void 0:t.getAttribute("href"))&&void 0!==n?n:E,H=null!==(l=null===(c=document.getElementById("url2-".concat(T)))||void 0===c?void 0:c.getAttribute("href"))&&void 0!==l?l:N,P=null!==(u=null===(a=document.getElementById("url3-".concat(T)))||void 0===a?void 0:a.getAttribute("href"))&&void 0!==u?u:_,Y=null!==(d=null===(f=document.getElementById("url4-".concat(T)))||void 0===f?void 0:f.getAttribute("href"))&&void 0!==d?d:M,G=e=>{e&&R&&(e.style.background=R)},J=e=>{e&&A&&(e.style.background=A)},K=i()({"link-icon-v2":!0,["".concat(w)]:!!w}),Q=i()({"link-icon-v2":!0,["".concat(x)]:!!x}),V=i()({"link-icon-v2":!0,["".concat(b)]:!!b}),X=i()({"link-icon-v2":!0,["".concat(m)]:!!m});return(0,r.useEffect)((()=>{window.grunticon&&window.grunticon.embedIcons(window.grunticon.getIcons(window.grunticon.getCSS(window.grunticon.href)))}),[]),(0,r.useEffect)((()=>{if(q&&q.current)if(D>=1024){const e=D-q.current.getBoundingClientRect().left;q.current.style.width="".concat(e,"px")}else q.current.style.width="100%"}),[D]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"quickLinks section",children:(0,s.jsx)("div",{ref:q,className:"homepage-links-v2 fn_homepage-links",children:(0,s.jsxs)("ul",{children:[!!h&&(0,s.jsx)("li",{ref:z,onMouseEnter:()=>{G(z.current)},onMouseLeave:()=>{J(z.current)},style:{backgroundColor:A||""},children:(0,s.jsxs)("a",{style:{borderColor:R||""},href:F,target:S?"_blank":"",rel:"noreferrer",children:[(0,s.jsx)("span",{className:K,"data-grunticon-embed":"true"}),(0,s.jsx)("span",{className:"title fn_title",children:h}),(0,s.jsx)("span",{className:"subtext",children:k})]})}),!!g&&(0,s.jsx)("li",{ref:W,onMouseEnter:()=>{G(W.current)},onMouseLeave:()=>{J(W.current)},style:{backgroundColor:A||""},children:(0,s.jsxs)("a",{style:{borderColor:R||""},href:H,target:B?"_blank":"",rel:"noreferrer",children:[(0,s.jsx)("span",{className:Q,"data-grunticon-embed":"true"}),(0,s.jsx)("span",{className:"title fn_title",children:g}),(0,s.jsx)("span",{className:"subtext",children:j})]})}),!!v&&(0,s.jsx)("li",{ref:U,onMouseEnter:()=>{G(U.current)},onMouseLeave:()=>{J(U.current)},style:{backgroundColor:A||""},children:(0,s.jsxs)("a",{style:{borderColor:R||""},href:P,target:I?"_blank ":"",rel:"noreferrer",children:[(0,s.jsx)("span",{className:V,"data-grunticon-embed":"true"}),(0,s.jsx)("span",{className:"title fn_title",children:v}),(0,s.jsx)("span",{className:"subtext",children:y})]})}),!!p&&(0,s.jsx)("li",{ref:O,onMouseEnter:()=>{G(O.current)},onMouseLeave:()=>{J(O.current)},style:{backgroundColor:A||""},children:(0,s.jsxs)("a",{href:Y,target:L?"_blank":"",rel:"noreferrer",children:[(0,s.jsx)("span",{className:X,"data-grunticon-embed":"true"}),(0,s.jsx)("span",{className:"title fn_title",children:p}),(0,s.jsx)("span",{className:"subtext",children:C})]})})]})})})})}},54826:(e,n,t)=>{"use strict";t.d(n,{BC:()=>o,dz:()=>i,xl:()=>s});var r=t(47313);const l=()=>{const{innerWidth:e,innerHeight:n}=window;return{width:e,height:n}},i=()=>{const[e,n]=(0,r.useState)(l());return(0,r.useEffect)((()=>{function e(){n(l())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e},o=e=>{window.scrollTo(0,e.current.offsetTop+(window.pageYOffset+e.current.getBoundingClientRect().top))},s=()=>{window.dispatchEvent(new Event("resize"))}},46123:(e,n)=>{var t;!function(){"use strict";var r={}.hasOwnProperty;function l(){for(var e=[],n=0;n<arguments.length;n++){var t=arguments[n];if(t){var i=typeof t;if("string"===i||"number"===i)e.push(t);else if(Array.isArray(t)){if(t.length){var o=l.apply(null,t);o&&e.push(o)}}else if("object"===i){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var s in t)r.call(t,s)&&t[s]&&e.push(s)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(t=function(){return l}.apply(n,[]))||(e.exports=t)}()}}]);

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.