PageSourceSearch

https://www.altonherald.com/_next/static/chunks/6857.96af47c659583642.js

js altonherald.com collected 2026-10-02 07:04:52 UTC 7,783 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6857],{9197:function(e,t,r){var i,n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(i=function(e){return(i=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=i(e),n=0;n<r.length;n++)"default"!==r[n]&&a(t,e,r[n]);return o(t,e),t}),c=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};Object.defineProperty(t,"__esModule",{value:!0});var l=s(r(95132)),h=r(22978),d=(0,r(69010).createAnimation)("BounceLoader","0% {transform: scale(0)} 50% {transform: scale(1.0)} 100% {transform: scale(0)}","bounce");t.default=function(e){var t=e.loading,r=e.color,i=void 0===r?"#000000":r,a=e.speedMultiplier,o=void 0===a?1:a,s=e.cssOverride,u=e.size,p=void 0===u?60:u,m=c(e,["loading","color","speedMultiplier","cssOverride","size"]),g=function(e){return{position:"absolute",height:(0,h.cssValue)(p),width:(0,h.cssValue)(p),backgroundColor:i,borderRadius:"100%",opacity:.6,top:0,left:0,animationFillMode:"both",animation:"".concat(d," ").concat(2.1/o,"s ").concat(1===e?"".concat(1/o,"s"):"0s"," infinite ease-in-out")}},f=n({display:"inherit",position:"relative",width:(0,h.cssValue)(p),height:(0,h.cssValue)(p)},void 0===s?{}:s);return void 0===t||t?l.createElement("span",n({style:f},m),l.createElement("span",{style:g(1)}),l.createElement("span",{style:g(2)})):null}},18298:(e,t,r)=>{r.d(t,{x:()=>i});let i=(e,t)=>{let r=e?.hero?.find(({type:e})=>"image"===e);return r?.data?.extra?.sizes?.[t]||""}},22978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLengthAndUnit=i,t.cssValue=function(e){var t=i(e);return"".concat(t.value).concat(t.unit)};var r={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function i(e){if("number"==typeof e)return{value:e,unit:"px"};var t,i=(e.match(/^[0-9.]*/)||"").toString();t=i.includes(".")?parseFloat(i):parseInt(i,10);var n=(e.match(/[^0-9]*$/)||"").toString();return r[n]?{value:t,unit:n}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}},59955:(e,t,r)=>{r.d(t,{A:()=>v});var i=r(66352),n=r(95132),a=r(36568),o=r(30664),s=r(98445),c=r(57267),l=r(49360),h=r(59085),d=r(56542),u=r(62373),p=r(18706),m=r(9197),g=r.n(m),f=r(15769);let v=({article:e,size:t,cropData:r})=>{let{preview:m}=(0,n.useContext)(l.ok),{publication:v}=(0,n.useContext)(h.I);(0,n.useMemo)(()=>{try{return e?.hero?e?.hero[0].data.bundle:""}catch(e){return console.error("Error calculating heroType:",e),""}},[e]);let y=(0,n.useMemo)(()=>{let t=e?.hero?.filter(e=>"image"===e.type)[0];return t?t.data.url:(0,c.d)(e?.sections[0]?.name)},[e]),x=(0,n.useMemo)(()=>{try{return e?.hero?.some(e=>["video-youtube","dailymotion"].includes(e?.type))||!1}catch(e){return console.error("Error determining video type:",e),!1}},[e]),b=(0,n.useMemo)(()=>{try{return e?.hero?.some(e=>["gallery"].includes(e?.type))||!1}catch(e){return console.error("Error determining video type:",e),!1}},[e]),w=e?.hero&&e?.hero[1]&&e?.hero[1].data?e?.hero[1].data.url:(0,c.d)(e?.sections[0]?.name);e?.hero?.[0]?.data?.gallery?.[0]?.data?.url;let j=e?.titleShort,_=e?.lead,O=e?.path,$=e?.extra?.isBreakingNews,M=e?.hero?.[0]?.type==="dailymotion",N=(0,n.useMemo)(()=>{try{return e?.liveblog?.data?.status===1}catch(e){return console.error("Error determining if article is live:",e),!1}},[e]),P=(0,n.useMemo)(()=>{try{return e?.extra?.isShowSponsoredCapsule}catch(e){return console.error("Error determining if article is sponsored:",e),!1}},[e]),E=e?.hero?.[0]?.type==="video-youtube",A=(e,i)=>{let n=(0,p.ey)(r);switch(t){case 1:return i?`${e}?${n}width=380&height=285&crop=4:3`:`${e}?${n}width=950&height=713&crop=4:3`;case 2:case 3:return i?`${e}?${n}width=380&height=380&crop=1:1`:`${e}?${n}
1width=640&height=640&crop=1:1`;case 6:return i?`${e}?${n}width=380&height=253&crop=3:2`:`${e}?${n}width=640&height=427&crop=3:2`;default:return i?`${e}?${n}width=380&height=350&crop=380:350`:`${e}?${n}width=640&height=525&crop=640:525`}},S=1===t?{width:950,height:713}:2===t||3===t?{width:640,height:640}:6===t?{width:640,height:427}:{width:640,height:525};return e?(0,i.jsxs)(a.eI,{$size:t,children:[(0,i.jsxs)("a",{href:m?"#":O,children:[x&&(0,i.jsx)(a.hh,{children:(0,i.jsx)(u.gS,{})}),b&&(0,i.jsx)(a.hh,{children:(0,i.jsx)(f.A,{})}),N&&(0,i.jsxs)("span",{className:"live",children:[" ",(0,i.jsx)(g(),{size:"15px",color:"#C80015"})," ",(0,i.jsx)("p",{style:{marginLeft:6},children:"live"})]}),M||E?(0,i.jsx)("img",{alt:j||"image title",className:"hero_image",src:A(w,!1),width:S.width,height:S.height,loading:"eager",fetchPriority:"high"}):(0,i.jsx)("img",{alt:j||"image title",className:"hero_image",src:A(y,!1),srcSet:`
2          ${A(y,!0)}   540w,
3          ${A(y,!1)}   840w,
4
5      `,width:S.width,height:S.height,loading:"eager",fetchPriority:"high"})]}),(0,i.jsxs)("div",{className:"inner_wrapper",children:[(0,i.jsxs)("div",{className:"tab_wrapper",children:[e?.premium&&(0,i.jsx)(o.A,{}),$&&(0,i.jsx)("div",{className:"breaking_news",children:" Breaking news"}),P&&(0,i.jsx)("div",{className:"tab tab_sponsored",children:(0,i.jsx)("p",{children:"sponsored"})}),!P&&!$&&(0,i.jsx)(i.Fragment,{children:e.hierarchy.slice(-1).map((e,t)=>{let r=!!(0,d.Hh)(v,e.path);return(0,i.jsx)(n.Fragment,{children:(0,i.jsx)("a",{className:`tab${r?" tab_branded":""}`,href:m?"#":e.path,children:(0,i.jsx)("div",{children:e.name},t)})},t)})})]}),(0,i.jsx)("a",{style:{display:"flex"},href:m?"#":O,children:(0,i.jsx)("h1",{className:"title_wrapper",children:j})}),(0,i.jsx)("div",{className:"hero_body",children:(0,i.jsx)("a",{href:m?"#":O,children:(0,i.jsx)("div",{children:(0,s.Ay)(_)})})})]})]}):null}},69010:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,r){var i="react-spinners-".concat(e,"-").concat(r);if("u"<typeof window||!window.document)return i;var n=document.createElement("style");document.head.appendChild(n);var a=n.sheet,o="\n    @keyframes ".concat(i," {\n      ").concat(t,"\n    }\n  ");return a&&a.insertRule(o,0),i}},86857:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var i=r(66352);r(95132);var n=r(71924),a=r(44258);let o=n.Ay.div.withConfig({componentId:"sc-a26d39b6-0"})(["display:grid;grid-template-columns:3fr 1fr;column-gap:16px;padding-bottom:31px;@media (max-width:","){grid-template-columns:1fr;padding-bottom:20px;}"],a.KL.medium);var s=r(59955),c=r(16283),l=r(18298);let h=({data:e})=>{let[t,...r]=e.articles;return(0,i.jsxs)(o,{children:[(0,i.jsx)(s.A,{size:1,article:t,cropData:(0,l.x)(t,"fourbythree")}),r.map((e,t)=>(0,i.jsx)(c.A,{size:1,article:e,cropData:(0,l.x)(e,"onebyone"),showLead:!0},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.