PageSourceSearch

https://dcc.com/wp-content/themes/traffic-headless-wp/build/static/js/312.837069c2.chunk.js

js dcc.com collected 2026-10-02 04:12:28 UTC 2,606 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdcc_frontend=self.webpackChunkdcc_frontend||[]).push([[312],{3312:function(e,l,o){o.r(l),o.d(l,{default:function(){return k}});var t=o(1413),n=o(885),i=o(7313),a=o(1869),u=o(3830),d=o(4547),s=o(3501),r=o(2627),c=o(1241),v=o(4938),f=o(5421),g=o(2607),p=o(6671),h=o(6476),m=o(6287),Z=o(6417),k=function(e){var l=(0,v.P)().getDataFromRegion,o=(0,u.k6)(),k=(0,i.useState)(!1),y=(0,n.Z)(k,2),w=y[0],C=y[1],b=(0,i.useContext)(h.Ni),B=b.setBlockIds,L=b.setPageLoading,j=(0,i.useState)(),x=(0,n.Z)(j,2),E=x[0],_=x[1],D=e.match,F=D.url.substr(1);F||(F="home");var G=(0,a.a)(p.Z,{variables:{uri:F}}),H=G.loading,N=G.data;(0,i.useEffect)((function(){L(H)}),[H]),(0,i.useEffect)((function(){if(N&&!H){var e,t=l(null===N||void 0===N||null===(e=N.pageBy)||void 0===e?void 0:e.acf_regions_general);if(t)_(t),C("home"===F),B((0,c.S)((null===t||void 0===t?void 0:t.blocksGeneral)||[]));else{var n=D.url||"/";fetch(m.Z.getRedirectCheckUrl(n)).then((function(e){return e.json()})).then((function(e){e.redirect?window.location.href=e.redirect:o.push("/404")})).catch((function(){return o.push("/404")}))}}}),[N]);var S,P,R,T,I,U,q,z=null===E||void 0===E?void 0:E.blocksGeneral;return!z||H?(0,Z.jsx)(d.Z,{}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(g.Z,{title:null===N||void 0===N||null===(S=N.pageBy)||void 0===S?void 0:S.title,yoastTitle:null===N||void 0===N||null===(P=N.pageBy)||void 0===P||null===(R=P.seo)||void 0===R?void 0:R.title,yoastDesc:null===N||void 0===N||null===(T=N.pageBy)||void 0===T||null===(I=T.seo)||void 0===I?void 0:I.metaDesc,fullHead:null===N||void 0===N||null===(U=N.pageBy)||void 0===U||null===(q=U.seo)||void 0===q?void 0:q.fullHead}),(0,Z.jsx)(f.Z,{}),z&&z.map((function(e,l){var o,n,a=(0,r.e)(e.fieldGroupName),u=s[a],d="Tabs"===a?{tabs:e["".concat(a[0].toLowerCase()).concat(a.slice(1))]}:e["".concat(a[0].toLowerCase()).concat(a.slice(1))];return"Hero"===a?(0,i.createElement)(u,(0,t.Z)((0,t.Z)({},d),{},{key:l,slug:E.slug,pathname:F,id:a.toLowerCase(),posts:N.posts,animation:w,title:null===N||void 0===N||null===(o=N.pageBy)||void 0===o?void 0:o.title})):"FeaturedNews"===a?(0,i.createElement)(u,(0,t.Z)((0,t.Z)({},d),{},{key:l,slug:null===E||void 0===E?void 0:E.slug,pathname:F,id:null===a||void 0===a?void 0:a.toLowerCase(),posts:null===N||void 0===N?void 0:N.featured,recent:null===N||void 0===N?void 0:N.recent})):(0,i.createElement)(u,(0,t.Z)((0,t.Z)({},d),{},{key:l,slug:null===E||void 0===E?void 0:E.slug,pathname:F,id:null===a||void 0===a?void 0:a.toLowerCase(),title:null===N||void 0===N||null===(n=N.pageBy)||void 0===n?void 0:n.title}))}))]})}}}]);

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.