PageSourceSearch

https://www.lycamobile.co.uk/_next/static/chunks/4808.c17916a6b210505d.js

js lycamobile.co.uk collected 2026-09-24 11:18:50 UTC 7,767 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4808,75488],{4808:(e,l,n)=>{"use strict";n.r(l),n.d(l,{default:()=>q});var i=n(37876),a=n(14232),t=n(75855),o=n(78581),r=n(10616),s=n(6995),u=n(9129),d=n(81516),c=n(73020),h=n(55134),p=n(84733),g=n(5067),m=n(83685),v=n.n(m),x=n(54587),f=n.n(x),_=n(16455),w=n(31777),y=n(84210),C=n(80063),A=n(89099),j=n(55485),L=n(75488);n(57227);var E=n(81279),N=n(4833),k=n(17840),b=n(29454),z=n(850),$=n(41244),S=n(60849),I=n(40501),P=n(16562);let T=(0,t.Ay)(o.A)({position:"sticky",top:0,zIndex:1e3}),q=e=>{var l,n,t,o,m,x,q,U,G,R,D,O,W,B,H,X;let{data:V,className:F=""}=e,[K,Q]=(0,a.useState)([]);(0,a.useEffect)(()=>{Q(!0===(0,N.a44)(null==V?void 0:V.field_language_switcher)&&(null==V?void 0:V.field_language_switcher[0]))},[null==V?void 0:V.field_language_switcher]);let J=null,M=(null==(J=window)||null==(l=J.location)?void 0:l.host)&&(0,E.A)(null==J||null==(n=J.location)?void 0:n.host),Y=(0,w.d4)(C.Bn),Z=b.A.get("NEXT_LOCALE")||"en",ee=null==Y||null==(t=Y.country_languages)?void 0:t.find(e=>{var l;return(null==(l=e.language_code)?void 0:l.toLowerCase())===(null==Z?void 0:Z.toLowerCase())}),el=(0,A.useRouter)(),{pathname:en,query:ei}=el,ea=(0,r.A)(),et=(0,s.A)(ea.breakpoints.down("sm")),[eo,er]=(0,a.useState)(-1),[es,eu]=(0,a.useState)(!1),[ed,ec]=(0,a.useState)(null),eh=(0,w.d4)(y.CU),[ep,eg]=(0,a.useState)([]);null==eh||null==(o=eh.cart_line_item_details)||o.length;let em=(0,w.d4)(k.Bg);(0,w.d4)(y.gD);let[ev,ex]=a.useState(!1),[ef,e_]=(0,a.useState)(Z),ew=(0,w.wA)(),ey=null==V||null==(m=V.field_logo_redirection_off)?void 0:m[0];null==(x=V.children)||x.find(e=>(null==e?void 0:e.cms_key)==="field_mobile_img");let eC=null==(q=V.children)?void 0:q.find(e=>(null==e?void 0:e.cms_key)==="field_nav_right_image"),eA=null==V||null==(R=V.children)||null==(G=R[0])||null==(U=G.field_link)?void 0:U[0];return(0,a.useEffect)(()=>{e_(Z)},[Z]),(0,a.useEffect)(()=>{if((null==el?void 0:el.asPath)==`${(0,N.Cu3)(el.locale)}/${(0,N.GPS)(el.locale)}`&&el.push(`${(0,N.Cu3)(el.locale)}/${(0,N.GPS)(el.locale)}#30-days-plans`),es){var e;eg((null==(e=V.children[0])?void 0:e.children).filter(e=>null!==e))}},[es]),(0,a.useEffect)(()=>{var e,l,n,i;"/"!==el.pathname?er(eo):er(-1),(null==(l=el.query)||null==(e=l.slug)?void 0:e.includes("help"))&&(null==V||null==(i=V.field_left_nav)||i.forEach((e,l)=>{if(null==e?void 0:e.processed){let{href:n,target:i}=(0,N.q6x)(null==e?void 0:e.processed);(null==n?void 0:n.includes("help"))&&er(l)}})),null==V||null==(n=V.field_left_nav)||n.forEach((e,l)=>{if(null==e?void 0:e.processed){var n;let{href:i,target:a}=(0,N.q6x)(null==e?void 0:e.processed),t=null==el||null==(n=el.asPath)?void 0:n.split("/");(null==t?void 0:t[1])&&(null==i?void 0:i.includes(null==t?void 0:t[1]))&&er(l)}})}),(0,i.jsxs)(u.Ay,{className:`"nav-bar-main" ${v().topContainer} ${v().container}`,children:[ev&&(0,i.jsx)(L.A,{}),V.children&&(0,i.jsxs)(T,{elevation:0,sx:{minHeight:"fit-content",backgroundColor:ea.palette.common.white,color:ea.palette.primary.contrastText,height:et?60:72,display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:0,zIndex:1031},children:[(0,i.jsx)(d.A,{maxWidth:"xl",children:(0,i.jsxs)(c.A,{className:v().toolbar_container,sx:{margin:et?"0px":"0px 0.9rem 0 2.5rem"},children:[(0,i.jsx)(h.A,{onClick:ey?void 0:()=>{(0,N.a44)(eA)&&el.push("/")},disableRipple:!0,size:"large",edge:"start",color:"inherit","aria-label":"menu",sx:{mr:2*!et,display:{sm:"flex"},cursor:(0,N.a44)(eA)?"pointer":"auto"},children:null==(D=V.children[0])?void 0:D.children.map(e=>{let l=`${null==e?void 0:e.uri[0].url}`;return(0,i.jsx)(u.Ay,{className:v().logoImage,children:ey?(0,i.jsx)(f(),{src:l,alt:"logoImage",width:et?76:104,height:et?30:40,layout:"fixed",loading:"lazy"}):(0,i.jsx)("a",{href:(0,N.a44)(eA)?eA:"#",children:(0,i.jsx)(f(),{src:l,alt:"logoImage",width:et?76:104,height:et?30:40,layout:"fixed",loading:"lazy"})})},null==e?void 0:e.value)})}),!et&&(0,i.jsx)(h.A,{size:"large",edge:"start",color:"inherit","aria-label":"menu",onClick:()=>{eu(!es)},disableRipple:!0,children:null==(W=V.children[1])||null==(O=W.uri)?void 0:O.map(e=>{let l=`${null==e?void 0:e.url}`;return(0,i.jsx)(u.Ay,{style:{height:"38px"},className:v().logoImage,children:(0,i.jsx)(f(),{src:l,alt:"logoImage",width:24,height:12,layout:"fixed",loading:"lazy"})},e.value)})}),(0,i.jsxs)(p.A,{className:v().rightContainer,sx:{ml:"auto",display:"flex",alignItems:"center"},children:[null==(B=V.field_nav_right)?void 0:B.map(e=>{let{href:l,target:n}=(0,N.q6x)(e.processed);return(0,i.jsx)(p.A,{className:`${v().rightContainer} ${v().rightContainerWidth}`,sx:{ml:"auto",display:"flex",alignItems:"center"},children:(0,i.jsx)($.A,{onClick:()=>
1{if("_self"===n){(0,S.UI)(I.H.phoneNumberFromHomeTopup,!0);let e=l||j.Ay.quickTopUp;try{let l=new URL(e,window.location.origin);l.origin===window.location.origin&&(e=l.pathname+l.search+l.hash)}catch(e){}el.push(e),"/quick-top-up"!==el.pathname&&ew((0,C.x5)(null))}},sx:{py:.5,px:3,height:0},className:v().quickTopups,variant:"contained",...(0,N.$h_)("quick-topup-button"),children:(0,i.jsx)(P.A,{content:e.processed,isParentClickable:!0})},e.processed)})}),!et&&"/loyalty"!==el.pathname&&(0,i.jsx)(p.A,{className:`${v().rightContainer} ${v().rightContainerWidth}`,sx:{ml:"auto",display:"flex",alignItems:"center"},children:null==eC||null==(H=eC.children)?void 0:H.map(e=>{let l=`${null==e?void 0:e.uri[0].url}`;return(0,i.jsx)(u.Ay,{className:v().trustPilotImage,children:(0,i.jsx)(f(),{src:l,alt:"trustPilotImage",width:et?80:255,height:et?40:27,layout:"fixed",loading:"lazy"})},null==e?void 0:e.value)})}),(null==M?void 0:M.country_code)!=="GB"&&!K&&(0,i.jsxs)(h.A,{size:"medium",color:"inherit",sx:{ml:"1rem"},onClick:(null==Y?void 0:Y.is_multilingual)?e=>{ec(e.currentTarget)}:()=>{},className:v().popover,disableRipple:!0,children:[(0,i.jsx)(g.A,{component:"span",className:v().language,children:ef?null==ef?void 0:ef.toUpperCase():null==ee||null==(X=ee.language_code)?void 0:X.toUpperCase()}),(0,i.jsx)(f(),{src:null==Y?void 0:Y.flag,width:18,height:18,alt:"flag",className:"mr5",loading:"lazy"}),(null==Y?void 0:Y.is_multilingual)&&(0,i.jsx)(f(),{loading:"lazy",src:_.z.blueArrowDownIcon,alt:"logo"}),"\xa0"]})]})]})}),(0,i.jsx)(z.A,{handleChange:e=>{let l=el.asPath,n=b.A.get("NEXT_LOCALE");l=(l=(l=(l=l.replace((0,N.Cu3)(n),(0,N.Cu3)(e.toLowerCase()))).replace((0,N.GPS)(n),(0,N.GPS)(e.toLowerCase()))).replace((0,N.ETV)(n),(0,N.ETV)(e.toLowerCase()))).replace((0,N.DC7)(n),(0,N.DC7)(e.toLowerCase())),(0,N.luq)(l).includes((0,N.$0P)(n))&&(l=l.replace((0,N.$0P)(n),(0,N.$0P)(e.toLowerCase()))),(0,N.StN)("NEXT_LOCALE",e.toLocaleLowerCase()),el.push({pathname:en,query:ei},l,{locale:e.toLocaleLowerCase()}).then(()=>{el.reload()})},open:!!ed,anchorEl:ed,onClose:()=>{ec(null)},isSmallScreen:et,isLogin:em,marginTop:"0.91rem",options:null==Y?void 0:Y.country_languages,selectedLanguage:Z})]})]})}},26216:(e,l,n)=>{"use strict";n.d(l,{A:()=>a});var i=n(14232);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[l,n]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{function l(){n(window.innerWidth<=e)}return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[e]),l}},75488:(e,l,n)=>{"use strict";n.d(l,{A:()=>d});var i=n(37876);n(14232);var a=n(99810),t=n.n(a),o=n(16455),r=n(54587),s=n.n(r),u=n(26216);let d=()=>{let e=(0,u.A)();return(0,i.jsxs)("div",{className:t().loader_wrapper,children:[(0,i.jsx)("div",{className:"spinner-border text-primary",role:"status"}),(0,i.jsx)(s(),{height:e?60:110,width:e?60:110,src:null===o.z||void 0===o.z?void 0:o.z.LycaLoader,alt:"loader"})]})}},99810:e=>{e.exports={loader_wrapper:"style_loader_wrapper__OuKQE",mainLoader:"style_mainLoader__A5gjS"}}}]);

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.