PageSourceSearch

https://www.spark.co.nz/etc.clientlibs/spark-spa/clientlibs/client…/resources/static/js/75.1bcaf15a.chunk.js

js spark.co.nz collected 2026-09-24 08:50:54 UTC 4,090 bytes, 22 lines download raw bytes

1"use strict";(globalThis.webpackChunkspark_spa=globalThis.webpackChunkspark_spa||[]).push([[75],{2075:(e,n,r)=>{r.r(n),r.d(n,{default:()=>C});var t=r(9950),a=r(79147),l=r(1603),o=r(70032),i=r(96115),s=r(98889),u=r(80441),c=r(78397);function d(e,n){var r=e.getFullYear()-n.getFullYear()||e.getMonth()-n.getMonth()||e.getDate()-n.getDate()||e.getHours()-n.getHours()||e.getMinutes()-n.getMinutes()||e.getSeconds()-n.getSeconds()||e.getMilliseconds()-n.getMilliseconds();return r<0?-1:r>0?1:r}var g=r(56985);function f(e,n){return(0,c.A)(2,arguments),(0,s.default)(e).getTime()-(0,s.default)(n).getTime()}var h={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function b(e){return e?h[e]:h.trunc}const p=e=>String(e).padStart(2,"0");function v(e){if(!e)return null;const n=new Date;if(e<=n)return null;const r=p(function(e,n){(0,c.A)(2,arguments);var r=(0,s.default)(e),t=(0,s.default)(n),a=d(r,t),l=Math.abs((0,u.default)(r,t));r.setDate(r.getDate()-a*l);var o=a*(l-Number(d(r,t)===-a));return 0===o?0:o}(e,n)),t=p(function(e,n,r){(0,c.A)(2,arguments);var t=f(e,n)/g.s0;return b(null===r||void 0===r?void 0:r.roundingMethod)(t)}(e,n)%24),a=p(function(e,n,r){(0,c.A)(2,arguments);var t=f(e,n)/g.Cg;return b(null===r||void 0===r?void 0:r.roundingMethod)(t)}(e,n)%60),l=p(function(e,n,r){(0,c.A)(2,arguments);var t=f(e,n)/1e3;return b(null===r||void 0===r?void 0:r.roundingMethod)(t)}(e,n)%60);return[{value:r,label:"Days"},{value:t,label:"Hrs"},{value:a,label:"Mins"},{value:l,label:"Secs"}]}var m=r(44414);const x=(0,l.default)(o.azJ)`
2  width: 49px;
3`,y=t.memo((({value:e,label:n,colors:r})=>{const{primary:t,secondary:a}=r;return(0,m.jsxs)(x,{display:"flex",flexDirection:"column",alignItems:"center",children:[(0,m.jsx)(o.EYj,{variant:"headingS",color:t,children:e}),(0,m.jsx)(o.EYj,{variant:"footnoteDemi",color:a,children:n})]})})),j=(0,l.default)(o.azJ)`
4  ${({theme:{media:e},bgColor:n,heightVariant:r,isTimeRemaining:t})=>{const a=t&&"tall"===r?"240px":"116px";return l.css`
5      width: 100%;
6      display: block;
7      text-align: center;
8      background-color: ${n};
9      flex-direction: row;
10      align-items: center;
11      ${e.up("slim")} {
12        display: flex;
13        flex-direction: row;
14        align-items: center;
15      }
16      ${e.up("big")} {
17        height: ${a};
18      }
19    `}}
20`,k=l.default.a`
21  text-decoration: none;
22`;const M=function(e){const{preCountdownMessage:n="",postCountdownMessage:r="",endTime:a,bgColor:s="sparkPurple",link:u,variant:c="short"}=e,{color:d}=(0,l.useTheme)(),g=(({bgColor:e,color:n})=>{const r={purple:{background:n.bg.brand.primary.bold.hover,primary:n.text.inverse,secondary:n.link.primary.subtle.default},pink:{background:n.bg.brand.secondary.hover,primary:n.text.inverse,secondary:n.text.inverse},black:{background:n.text.default,primary:n.text.inverse,secondary:n.text.brand.secondary.default},grey:{background:n.bg.secondary,primary:n.text.default,secondary:n.text.brand.primary.bold}};return r[e]||r.purple})({bgColor:s,color:d}),f=function(e){const[n,r]=(0,t.useState)(null);return(0,t.useEffect)((()=>{const n=e?new Date(e):null;if(!n)return;const t=()=>{const e=v(n);r(e)};t();const a=setInterval((()=>{t(),(0,i.default)(n,new Date)&&clearInterval(a)}),1e3);return()=>clearInterval(a)}),[e]),n}(a),h=!!f;return h||r?(0,m.jsx)(k,{href:u,children:(0,m.jsxs)(j,{flexDirection:"row",bgColor:g.background,justifyContent:"center",py:"s3",gap:["s1","s2","s3"],heightVariant:c,isTimeRemaining:h,children:[(0,m.jsx)(o.azJ,{mb:["s1","s 0"],children:(0,m.jsx)(o.EYj,{variant:"subheadingL",color:g.primary,children:h?n:r})}),h?(0,m.jsx)(o.azJ,{display:"flex",flexDirection:"row",gap:"s1",justifyContent:"center",children:f.map(((e,n)=>(0,m.jsxs)(m.Fragment,{children:[0!==n&&(0,m.jsx)(o.EYj,{variant:"headingS",color:g.primary,children:":"}),(0,m.jsx)(y,{value:e.value,label:e.label,colors:g},e.label)]})))}):null]})}):null};var w=r(71253);const C=e=>w.N.isEmpty(e)?null:(0,m.jsx)(a.ZW,{regionId:e.regionId||"countDownTimer",enableCloning:!0,children:(0,m.jsx)(M,{...e})})}}]);

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.