PageSourceSearch

https://www.virginmedia.com/blog/CountdownClockComponent.8f0edef35e541d4fd5fe.js

js virginmedia.com collected 2026-10-01 08:29:44 UTC 11,563 bytes, 1 lines download raw bytes

1(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[774],{9399:(n,t,e)=>{"use strict";e.r(t),e.d(t,{UrgentMessageClockComponent:()=>h});var o=e(945),i=e(5257),c=e(4612),r=e(8002),g=e(7519),d=e(7716),a=e(8583);function s(n,t){if(1&n&&(d.TgZ(0,"div",5),d.TgZ(1,"div",6),d.TgZ(2,"p"),d._uU(3),d.qZA(),d.qZA(),d.qZA()),2&n){const n=d.oxw(2).ngIf;d.xp6(3),d.Oqu(n.copy)}}function C(n,t){1&n&&(d.TgZ(0,"div",9),d.TgZ(1,"div",12),d._uU(2,"Ends in:"),d.qZA(),d.qZA())}function _(n,t){1&n&&(d.TgZ(0,"div",13),d._uU(1,"Days"),d.qZA())}function f(n,t){1&n&&(d.TgZ(0,"div",13),d._uU(1,"Hours"),d.qZA())}function M(n,t){1&n&&(d.TgZ(0,"div",13),d._uU(1,"Mins"),d.qZA())}function O(n,t){1&n&&(d.TgZ(0,"div",13),d._uU(1,"Secs"),d.qZA())}function m(n,t){if(1&n&&(d.TgZ(0,"div",9),d.TgZ(1,"div",10),d._uU(2),d.ALo(3,"async"),d.qZA(),d.YNc(4,O,2,0,"div",11),d.qZA()),2&n){const n=d.oxw(3).ngIf,t=d.oxw();d.xp6(2),d.AsE("",d.lcZ(3,3,t.seconds$),"",n.productCardVariant?"s":"",""),d.xp6(2),d.Q6J("ngIf",!n.productCardVariant)}}function P(n,t){if(1&n&&(d.TgZ(0,"div",7),d.YNc(1,C,3,0,"div",8),d.TgZ(2,"div",9),d.TgZ(3,"div",10),d._uU(4),d.ALo(5,"async"),d.qZA(),d.YNc(6,_,2,0,"div",11),d.qZA(),d.TgZ(7,"div",9),d.TgZ(8,"div",10),d._uU(9),d.ALo(10,"async"),d.qZA(),d.YNc(11,f,2,0,"div",11),d.qZA(),d.TgZ(12,"div",9),d.TgZ(13,"div",10),d._uU(14),d.ALo(15,"async"),d.qZA(),d.YNc(16,M,2,0,"div",11),d.qZA(),d.YNc(17,m,5,5,"div",8),d.qZA()),2&n){const n=d.oxw(2).ngIf,t=d.oxw();d.Q6J("ngClass",n.displaySeconds?"extended":"basic"),d.xp6(1),d.Q6J("ngIf",n.productCardVariant),d.xp6(3),d.AsE("",d.lcZ(5,12,t.days$),"",n.productCardVariant?"d":"",""),d.xp6(2),d.Q6J("ngIf",!n.productCardVariant),d.xp6(3),d.AsE("",d.lcZ(10,14,t.hours$),"",n.productCardVariant?"h":"",""),d.xp6(2),d.Q6J("ngIf",!n.productCardVariant),d.xp6(3),d.AsE("",d.lcZ(15,16,t.minutes$),"",n.productCardVariant?"m":"",""),d.xp6(2),d.Q6J("ngIf",!n.productCardVariant),d.xp6(1),d.Q6J("ngIf",n.displaySeconds)}}const u=function(n){return{"is-product-card-variant":n}};function l(n,t){if(1&n&&(d.TgZ(0,"div",2),d.YNc(1,s,4,1,"div",3),d.YNc(2,P,18,18,"div",4),d.qZA()),2&n){const n=t.ngIf,e=d.oxw().ngIf;d.Q6J("ngClass",d.VKq(3,u,e.productCardVariant)),d.xp6(1),d.Q6J("ngIf",e&&e.copy),d.xp6(1),d.Q6J("ngIf",n)}}function p(n,t){if(1&n&&(d.ynx(0),d.YNc(1,l,3,5,"div",1),d.ALo(2,"async"),d.BQk()),2&n){const n=d.oxw();d.xp6(1),d.Q6J("ngIf",d.lcZ(2,1,n.canDisplayClock$&&n.canDisplayClock$))}}let h=(()=>{class n{constructor(){this.ticker=(0,o.F)(1e3)}ngOnInit(){this.data&&(this.canDisplayClock$=this.data.pipe((0,i.q)(1),(0,c.b)(n=>this.ticker.pipe((0,r.U)(()=>n&&n.deadline&&new Date(n.deadline)>new Date),(0,g.x)()))),this.days$=this.data.pipe((0,i.q)(1),(0,c.b)(n=>this.ticker.pipe((0,r.U)(()=>("0"+Math.floor(this.getTimeRemaining(n.deadline)/864e5)).slice(-2)),(0,g.x)()))),this.hours$=this.data.pipe((0,i.q)(1),(0,c.b)(n=>this.ticker.pipe((0,r.U)(()=>("0"+Math.floor(this.getTimeRemaining(n.deadline)/36e5%24)).slice(-2)),(0,g.x)()))),this.minutes$=this.data.pipe((0,i.q)(1),(0,c.b)(n=>this.ticker.pipe((0,r.U)(()=>("0"+Math.floor(this.getTimeRemaining(n.deadline)/1e3/60%60)).slice(-2)),(0,g.x)()))),this.seconds$=this.data.pipe((0,i.q)(1),(0,c.b)(n=>this.ticker.pipe((0,r.U)(()=>("0"+Math.floor(this.getTimeRemaining(n.deadline)/1e3%60)).slice(-2)),(0,g.x)()))))}getTimeRemaining(n){return new Date(n).getTime()-(new Date).getTime()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=d.Xpm({type:n,selectors:[["vm-urgent-message-clock"]],inputs:{data:"data"},decls:2,vars:3,consts:[[4,"ngIf"],["class","vm-container",3,"ngClass",4,"ngIf"],[1,"vm-container",3,"ngClass"],["class","vm-row",4,"ngIf"],["class","clock",3,"ngClass",4,"ngIf"],[1,"vm-row"],[1,"vm-col-xs-12","vm-col-md-10","vm-col-md-offset-1","vm-col-lg-8","vm-col-lg-offset-2"],[1,"clock",3,"ngClass"],["class","counter",4,"ngIf"],[1,"counter"],[1,"digits"],["class","unit",4,"ngIf"],[1,"ends-in"],[1,"unit"]],template:function(n,t){1&n&&(d.YNc(0,p,3,3,"ng-container",0),d.ALo(1,"async")),2&n&&d.Q6J("ngIf",t.data&&d.lcZ(1,1,t.data))},directives:[a.O5,a.mk],pipes:[a.Ov],styles:['p[_ngcontent-%COMP%]{text-align:center;font-weight:var(--text-book-font-weight);font-family:var(--text-book-font-family);padding-bottom:1.5rem}@media (min-width:75rem){p[_ngcontent-%COMP%]{font-size:24px;font-size:1.5rem;line-height:1.875rem}}.clock[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;width:20rem}@media (min-width:75rem){.clock[_ngcontent-%COMP%]{width:27.375rem}}.counter[_ngcontent-%COMP%]{display:inline-block;width:33.33%;font-weight:var(--text-book-font-weight);font-family:var(--text-book-font-family);text-align:center}.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%], .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]{color:#ed0000;position:relative;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-size:32px;font-size:2rem;line-height:2.8125rem;height:2.8125rem;letter-spacing:1.75rem;padding-left:1.3125rem}@media (min-width:75rem){.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%], .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]{font-size:52px;font-size:3.25rem;line-height:4.1875rem;height:4.1875rem;letter-spacing:2.25rem;padding-left:1.625rem}}.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{display:block;position:absolute;
1left:50%;top:0;content:"";z-index:-1;border-radius:.3125rem;box-shadow:0 .125rem .1875rem 0 #dbdbdb;border:.0625rem solid #f7f7f7;height:2.8125rem;width:2.625rem}@media (min-width:75rem){.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{height:4.1875rem;width:3.8125rem}}.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{transform:translateX(-44px)}@media (min-width:75rem){.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{transform:translateX(-64px)}}.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after{transform:translateX(2px)}@media (min-width:75rem){.counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after{transform:translateX(3px)}}.counter[_ngcontent-%COMP%]   .unit[_ngcontent-%COMP%]{text-transform:uppercase;font-size:14px;font-size:.875rem;line-height:1.5rem;margin-top:.5rem}.counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]{word-spacing:normal;font-feature-settings:normal;font-variant-numeric:normal}.extended[_ngcontent-%COMP%]{width:18.375rem}@media (min-width:75rem){.extended[_ngcontent-%COMP%]{width:37.3125rem}}.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]{width:25%}.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%], .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]{line-height:2.1875rem;height:2.25rem;letter-spacing:1.0625rem;padding-left:.6875rem}@media (min-width:75rem){.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%], .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]{font-size:52px;font-size:3.25rem;line-height:4.0625rem;height:4.1875rem;letter-spacing:2.375rem;padding-left:1.625rem}}.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{height:2.125rem;width:1.875rem}@media (min-width:75rem){.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{height:4.0625rem;width:3.6875rem}}.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{transform:translateX(-33px)}@media (min-width:75rem){.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:before, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:before{transform:translateX(-64px)}}.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after{transform:translateX(2px)}@media (min-width:75rem){.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after{transform:translateX(3px)}}.extended[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .unit[_ngcontent-%COMP%]{text-transform:uppercase;font-size:14px;font-size:.875rem;line-height:1.5rem;margin-top:.5rem}.is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]{width:auto;display:inline-block;padding-bottom:.375rem}.is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]{width:auto}.is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]:last-of-type   .digits[_ngcontent-%COMP%]:after, .is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]:last-of-type   .ends-in[_ngcontent-%COMP%]:after{display:none}.is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%], .is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]{font-weight:var(--text-book-font-weight);font-family:var(--text-book-font-family);font-size:16px;font-size:1rem;line-height:normal;height:16px;letter-spacing:normal;padding-left:.375rem;position:relative;color:#fff}.is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits[_ngcontent-%COMP%]:after, .is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]:after{display:inline-block;content:" ";position:absolute;top:-.0625rem;right:.125rem;border:none;box-shadow:none;height:auto;transform:none;width:.25rem;bottom:auto;left:auto;z-index:0}.is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .digits.ends-in[_ngcontent-%COMP%], .is-product-card-variant[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]   .counter[_ngcontent-%COMP%]   .ends-in[_ngcontent-%COMP%]{font-weight:var(--text-medium-font-we
1ight);font-family:var(--text-medium-font-family)}']}),n})()}}]);

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.