PageSourceSearch

https://hawk.t3.com/js/w/es6/master-27380a2c/seasonal-event-countdown.js

js t3.com collected 2026-09-24 08:39:39 UTC 2,434 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[850],{604(e,n,a){a.r(n),a.d(n,{default:()=>w});var t=a(6540),s=a(5518),l=a(1999),o=a(6358),c=a(56),u=a(1150),r=a(4678),m=a(3709);const v={container:"hawk-seasonal-event-countdown-item-container",value:"hawk-seasonal-event-countdown-item-value",label:"hawk-seasonal-event-countdown-item-label",merchantlink:"hawk-seasonal-event-countdown-item-merchantlink"},i=({value:e,label:n,className:a})=>{const s=a&&v[a]?a:"container";return t.createElement("div",{className:v[s]},t.createElement("div",{className:v.value},e),t.createElement("span",{className:v.label},n))},d={container:"hawk-seasonal-event-countdown-container",heading:"hawk-seasonal-event-countdown-heading",items:"hawk-seasonal-event-countdown-items",merchantlink:"hawk-seasonal-event-countdown-merchantlink"};(0,s.y)("seasonal-event-countdown");const w=({className:e})=>{const{data:n,translate:a}=(0,m.kf)(),[s,v]=(0,t.useState)(new Date),[w,E]=(0,t.useState)(0);(0,t.useEffect)(()=>{const e=window.setInterval(()=>{v(new Date)},1e3);E(e)},[]),(0,t.useEffect)(()=>(n&&n.event&&(new Date).getTime()>new Date(1e3*n.event.end_time).getTime()&&clearInterval(w),()=>{clearInterval(w)}),[n]);const h=e&&d[e]?e:"container";if(n&&n.event){const{event_name:m,end_time:v}=n.event,w=(0,l.A)(v,s),E=w>=0?(0,o.A)(w):"00",k=(0,c.A)(v,s),_=k>=0?(0,o.A)(k):"00",A=(0,u.A)(v,s),N=A>=0?(0,o.A)(A):"00",C=(0,r.A)(v,s),D=C>=0?(0,o.A)(C):"00",f=()=>{const e=[];return w>0&&e.push(` ${E} ${a("seasonalEventCountdownDays")}`),e.push(` ${_} ${a("seasonalEventCountdownHours")}`),e.push(` ${N} ${a("seasonalEventCountdownMinutes")}`),e.push(` ${D} ${a("seasonalEventCountdownSeconds")}`),e.toString()};return t.createElement("div",{className:d[h]},t.createElement("div",{className:d.heading},"merchantlink"===e?t.createElement("span",null,a("seasonalEventCountdownTitle",[m])+f()):t.createElement("span",null,a("seasonalEventCountdownTitle",[m]))),"merchantlink"!==e&&t.createElement("div",{className:d.items},w>0&&t.createElement(i,{value:E,label:a("seasonalEventCountdownDays"),className:e}),t.createElement(i,{value:_,label:a("seasonalEventCountdownHours"),className:e}),t.createElement(i,{value:N,label:a("seasonalEventCountdownMinutes"),className:e}),t.createElement(i,{value:D,label:a("seasonalEventCountdownSeconds"),className:e})))}return null}}}]);
2//# sourceMappingURL=seasonal-event-countdown.js.map

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.