PageSourceSearch

https://www.countryfile.com/6082.8eca6c06583eeace.js

js countryfile.com collected 2026-09-24 09:01:02 UTC 5,783 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([[6082],{6082:(et,I,u)=>{u.r(I),u.d(I,{TickerModule:()=>q,component:()=>tt});var A=u(177),X=u(467),B=u(9379),e=u(3953),T=u(8251),Q=u(1210),x=u(3178);const S={url:"https://news.purpledshub.com/demo/index.php/wp-json/wp/v2/ditty_news_ticker"};var V=u(8890),N=u(3236),O=u(1584);const J=["ticksContainer"];function P(n,l){if(1&n&&(e.j41(0,"div",2),e.EFF(1),e.k0s()),2&n){const r=l.$implicit;e.R7$(),e.JRh(r.tick)}}function W(n,l){if(1&n&&(e.j41(0,"div",1,0),e.Z7z(2,P,2,1,"div",2,e.fX1),e.k0s()),2&n){const r=e.XpG();e.R7$(2),e.Dyx(r.ticks)}}let G=(()=>{var n;class l extends Q.${constructor(){super(...arguments),this.subscriptions=(0,e.WQX)(T.v),this.changeDetectorRef=(0,e.WQX)(e.gRc),this.defaultConfig=(0,B.A)({},S),this.ticks=[],this.translate=0}get isEmpty(){return!this.ticks||!this.ticks.length}ngOnInit(){super.ngOnInit(),this.subscriptions.subscribe((0,V.Ne)(),c=>this.animate())}onConfigChanges(){var c=this;return(0,X.A)(function*(){try{const o=yield(0,x.hI)(c.config.url);o[0]&&(c.ticks=function U(n){var l=function(i){for(var a=i.length,k=i.length-1;k>=0;k--){var t=i.charCodeAt(k);t>127&&t<=2047?a++:t>2047&&t<=65535&&(a+=2),t>=56320&&t<=57343&&k--}return a-1},r=function(i,a,k){for(var t=2,m=[],f=i.slice(a,a+1);f!==k;){if(t+a>i.length)throw Error("Invalid");m.push(f),f=i.slice(a+(t-1),a+t),t+=1}return[m.length,m.join("")]};try{return"string"==typeof n&&function o(i,a){var k,t,m,f,D,C,E,F,h,s,b,w,v,y,R,j,p=0,g=function(d){return d};switch(a||(a=0),t=a+2,k=i.slice(a,a+1)){case"i":g=function(d){return parseInt(d,10)},h=(s=r(i,t,";"))[1],t+=(p=s[0])+1;break;case"b":g=function(d){switch(parseInt(d,10)){case 0:return!1;case 1:return!0;default:throw SyntaxError("Invalid boolean value")}},h=(s=r(i,t,";"))[1],t+=(p=s[0])+1;break;case"d":g=function(d){return parseFloat(d)},h=(s=r(i,t,";"))[1],t+=(p=s[0])+1;break;case"n":h=null;break;case"s":if(w=(b=r(i,t,":"))[1],s=function(i,a,k){var t,m,f;for(f=[],t=0;t<k;t++)m=i.slice(a+(t-1),a+t),f.push(m),k-=l(m);return[f.length,f.join("")]}(i,(t+=(p=b[0])+2)+1,parseInt(w,10)),h=s[1],t+=(p=s[0])+2,p!==parseInt(w,10)&&p!==h.length)throw SyntaxError("String length mismatch");break;case"a":for(h={},f=(m=r(i,t,":"))[1],t+=(p=m[0])+2,C=parseInt(f,10),D=!0,v=0;v<C;v++)y=(R=o(i,t))[2],t+=R[1],t+=(j=o(i,t))[1],y!==v&&(D=!1),h[y]=j[2];if(D){for(E=new Array(C),v=0;v<C;v++)E[v]=h[v];h=E}t+=1;break;case"O":if(s=r(i,t,":"),'"stdClass"'!==(s=r(i,t+=s[0]+1,":"))[1])throw Error("Unsupported object type: "+s[1]);for(s=r(i,t+=s[0]+1,":"),f=parseInt(s[1],10),t+=s[0]+2,F={},v=0;v<f;v++)y=(s=o(i,t))[2],t+=s[1],t+=(s=o(i,t))[1],F[y]=s[2];t+=1,h=F;break;default:throw SyntaxError("Unknown / Unhandled data type(s): "+k)}return[k,t-a,g(h)]}(n,0)[2]}catch(i){return console.error(i),!1}}(o[0].metadata._mtphr_dnt_ticks[0]),c.ticks.length&&(c.changeDetectorRef.detectChanges(),c.animate()))}catch(o){console.warn("Error fetching ticker data")}})()}resetTranslate(){this.translate=this.elementRef.nativeElement.parentNode.offsetWidth,this.ticksContainer.nativeElement.style.transform="translateX(".concat(this.translate,"px)")}animate(){this.resetTranslate(),this.subscriptions.subscribe(function z(n=0,l=N.E){return n<0&&(n=0),(0,O.O)(n,n,l)}(12),()=>{this.translate-=1,this.ticksContainer.nativeElement.style.transform="translateX(".concat(this.translate,"px)"),-1*this.translate>this.ticksContainer.nativeElement.offsetWidth&&this.resetTranslate()},x.lQ,x.lQ,"interval"),this.changeDetectorRef.detectChanges()}}return(n=l).type="ticker",n.\u0275fac=(()=>{let r;return function(o){return(r||(r=e.xGo(n)))(o||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["storefront-ticker"]],viewQuery:function(c,o){if(1&c&&e.GBs(J,5),2&c){let i;e.mGM(i=e.lsd())&&(o.ticksContainer=i.first)}},hostVars:2,hostBindings:function(c,o){2&c&&e.AVh("empty",o.isEmpty)},standalone:!1,features:[e.Jv_([T.v]),e.Vt3],decls:1,vars:1,consts:[["ticksContainer",""],[1,"ticker-ticks"],[1,"ticker-tick"]],template:function(c,o){1&c&&e.DNE(0,W,4,0,"div",1),2&c&&e.vxM(null!=o.ticks&&o.ticks.length?0:-1)},styles:["storefront-ticker,.pxp-ticker{display:flex;overflow:hidden}storefront-ticker .ticker-ticks,.pxp-ticker .ticker-ticks{display:flex;padding:var(--tickerPaddingY) 0}storefront-ticker .ticker-ticks .ticker-tick,.pxp-ticker .ticker-ticks .ticker-tick{margin:0 var(--tickerGutter);white-space:nowrap}storefront-ticker.empty,.pxp-ticker.empty{display:none}\n"],encapsulation:2,changeDetection:0}),l})();const Y=["class","pxp-ticker"];function Z(n,l){if(1&n&&(e.j41(0,"div",2),e.EFF(1),e.k0s()),2&n){const r=l.$implicit;e.R7$(),e.JRh(r.tick)}}function K(n,l){if(1&n&&(e.j41(0,"div",1,0),e.Z7z(2,Z,2,1,"div",2,e.fX1),e.k0s()),2&n){const r=e.XpG();e.R7$(2),e.Dyx(r.ticks)}}let _=(()=>{var n;class l extends G{}return(n=l).\u0275fac=(()=>{let r;return function(o){return(r||(r=e.xGo(n)))(o||n)}})(),n.\u0275cmp=e.VBU({type:n,selectors:[["div",8,"pxp-ticker"]],standalone:!1,features:[e.Jv_([T.v]),e.Vt3],attrs:Y,decls:1,vars:1,consts:[["ticksContainer",""],[1,"ticker-ticks"],[1,"ticker-tick"]],template:function(c,o){1&c&&e.DNE(0,K,4,0,"div",1),2&c&&e.vxM(null!=o.ticks&&o.ticks.length?0:-1)},styles:["storefront-ticker,.pxp-ticker{display:flex;overflow:hidden}storefront-ticker .ticker-ticks,.pxp-ticker .ticker-ticks{display:flex;padding:var(--tickerPaddingY) 0}storefront-ticker .ticker-ticks .ticker-tick,.pxp-ticker .ticker-ticks .ticker-tick{margin:0 var(--tickerGutter);white-space:nowrap}storefront-ticker.empty,.pxp-ticker.empty{display:none}\n"],encapsulation:2,changeDetection:0}),l})(),q=(()=>{var n;class l{}return(n=l).\u0275fac=function(c){return new(c||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[A.MD]}),l})();const tt={component:G,leanDomComponent:_}}}]);

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.