1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c71ce71d-6830-7d6a-4128-96051369d0d2")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,549541,e=>{"use strict";var t=e.i(391398),i=e.i(183332);e.s(["default",0,function(e,r){let{withGoBackLink:n,withShouldClearOtcState:a}=r||{};return function(r){let o=(0,i.getRedirectLinkFromStorage)(),s={};return[i.redirects.otcBasket,i.redirects.otcCheckout].includes(o)?n&&(s.goBackLink=function(e){if(/marketplace/.test(e))return"/marketplace/basket"}(o)):a&&(s.shouldClearOtcState=!0),(0,t.jsx)(e,{...r,...s})}}])},611008,e=>{"use strict";var t=e.i(167239);e.s(["withoutAuth",()=>t.default])},487534,e=>{"use strict";var t=e.i(391398);e.i(191788),e.s(["default",0,e=>(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M13.6667 3.82684C13.6672 3.7391 13.6504 3.65213 13.6172 3.5709C13.5841 3.48968 13.5352 3.4158 13.4734 3.35351L10.6467 0.526841C10.5844 0.465053 10.5105 0.416169 10.4293 0.382993C10.3481 0.349817 10.2611 0.333 10.1734 0.333507C10.0856 0.333 9.99867 0.349817 9.91745 0.382993C9.83622 0.416169 9.76234 0.465053 9.70005 0.526841L7.81339 2.41351L0.526718 9.70017C0.464931 9.76247 0.416047 9.83634 0.382871 9.91757C0.349695 9.99879 0.332878 10.0858 0.333385 10.1735V13.0002C0.333385 13.177 0.403623 13.3466 0.528647 13.4716C0.653672 13.5966 0.823241 13.6668 1.00005 13.6668H3.82672C3.92 13.6719 4.01331 13.6573 4.1006 13.624C4.18788 13.5907 4.26719 13.5394 4.33338 13.4735L11.5801 6.18684L13.4734 4.33351C13.5342 4.26889 13.5838 4.19453 13.6201 4.11351C13.6265 4.06037 13.6265 4.00665 13.6201 3.95351C13.6232 3.92247 13.6232 3.89121 13.6201 3.86017L13.6667 3.82684ZM3.55339 12.3335H1.66672V10.4468L8.28672 3.82684L10.1734 5.71351L3.55339 12.3335ZM11.1134 4.77351L9.22672 2.88684L10.1734 1.94684L12.0534 3.82684L11.1134 4.77351Z",fill:"currentColor"})})])},42462,e=>{"use strict";var t=e.i(721939);e.s(["ApiErrDisplay",()=>t.default])},839303,671146,e=>{"use strict";var t=e.i(391398),i=e.i(951675),r=e.i(862416),n=e.i(191788);let a=(0,e.i(693437).default)((0,t.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple");var o=e.i(317898);let s=function(e){(0,n.useEffect)(function(){if(e){var t=document.querySelectorAll('script[src="'.concat(e,'"]'))[0];t||((t=document.createElement("script")).src=e,t.async=!0,document.body.appendChild(t))}},[e])},l=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},r=i.pollFrequency,n=void 0===r?1e3:r,a=i.retries,o=void 0===a?100:a,s=i.parent,l=void 0===s?window:s;if(l&&l.hasOwnProperty(t))return Promise.resolve(l[t]);if(!o)return Promise.resolve(void 0);var d=o-1;return new Promise(function(e){return setTimeout(e,"function"==typeof n?n({retries:d}):n)}).then(function(){return e(t,{pollFrequency:n,parent:l,retries:d})})},d=function(e){var t=e.authOptions,i=e.onSuccess,r=e.onError;return l("AppleID").then(function(){window.AppleID||console.error(Error("Error loading apple script")),window.AppleID.auth.init(t);var e=window.AppleID.auth.signIn();return t.usePopup?e.then(function(e){return i&&i(e),e}).catch(function(e){return r?r(e):console.error(e),null}):(e&&"function"==typeof e.catch&&e.catch(function(){}),null)}).catch(function(e){return r?r(e):console.error(e),null})};var c=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function p(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}var h="\n.react-apple-signin-auth-btn {\n background-color: transparent;\n border: none;\n padding: 0;\n cursor: pointer;\n border-radius: 4px;\n padding: 0 8px 0 2px;\n font-size: 14px;\n font-size: 1em;\n line-height: 1;\n border: 1px solid #000;\n overflow: hidden;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}\n.react-apple-signin-auth-btn-light {\n background-color: #FFF;\n color: #000;\n border-color: #000;\n}\n.react-apple-signin-auth-btn-dark {\n background-color: #000;\n color: #FFF;\n border-color: #FFF;\n}".replace(/ {2}|\n/g,"");let g=function(e){var t=e.onSuccess,i=e.onError,r=e.skipScript,a=e.authOptions,o=e.iconProps,l=e.render,g=e.uiType,m=void 0===g?"dark":g,f=e.className,y=e.noDefaultStyle,x=void 0!==y&&y,k=e.buttonExtraChildren,v=function(e,t){if(null==e)return{};var i,r,n=function(e,t){if(null==e)return{};var i,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)i=a[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)i=a[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}(e,c);s(void 0!==r&&r?null:"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");var b=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
2t%2?p(Object(i),!0).forEach(function(t){var r,n,a;r=e,n=t,a=i[t],n in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({children:n.default.createElement(n.default.Fragment,null,n.default.createElement("svg",u({width:"24px",height:"44px",viewBox:"0 0 24 44"},o),n.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},n.default.createElement("rect",{fill:"light"===m?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),n.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:"light"===m?"#000":"#FFF",fillRule:"nonzero"}))),void 0===k?"Continue with Apple":k),onClick:function(e){e&&(e.preventDefault(),e.stopPropagation()),d({authOptions:a,onSuccess:t,onError:i})}},v);return l?l(b):n.default.createElement(n.default.Fragment,null,n.default.createElement("button",u({className:"".concat(x?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(m)).concat(f?" ".concat(f):""),type:"button","aria-label":"Signin with apple ID"},b)),x?null:n.default.createElement("style",null,h))};var m=e.i(520268),f=e.i(422276),y=e.i(679935);e.i(942919);var x=e.i(960963),k=e.i(300750);let v=(0,o.styled)(r.Button)({height:"48px",padding:"12px 16px",display:"inline-flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#000",color:"#fff",borderRadius:"6px",boxShadow:"none","&.MuiButton-sizeMedium":{fontWeight:"600"},"&:hover, &:focus, &:active":{boxShadow:"none",backgroundColor:"#333"}}),b=e=>(0,t.jsxs)(v,{variant:"contained",sx:{...e.borderRadius&&{borderRadius:e.borderRadius}},onClick:t=>{e?.onClick&&e?.onClick(t)},children:[(0,t.jsx)(a,{sx:{fontSize:"1.8rem",marginLeft:"-2px"}}),"Continue with Apple",(0,t.jsx)(i.Box,{width:24,height:24})]});e.s(["default",0,e=>{let i,r,n=e.screenName||"login_signup_page",a=e.action||"login_signup_started",o=(0,m.useNativeTracker)(n),s=(i=(0,m.useNativeTracker)(n),r=(0,f.useDispatch)(),async e=>{let t=e?.user?.name?{forename:e.user.name?.firstName,surname:e.user.name?.lastName}:{};if(e.error)return;let n=!!(t.forename||t.surname);k.default.setItem("login_method","apple"),n?(k.default.setItem("is_new_user",!0),i("account_created",{params:{method:"apple"}})):k.default.setItem("is_new_user",!1);try{await r((0,x.addUserThunkSocial)({login_type:"apple",code:e.authorization.code,redirect_uri:"",...t})).unwrap()}catch{y.toast.error("Sign in with Apple failed. Please try again.")}}),{borderRadius:l}=e;return(0,t.jsx)(g,{authOptions:{clientId:"",scope:"email name",redirectURI:"",state:"",nonce:"nonce",usePopup:!0},uiType:"dark",onSuccess:s,onError:s,render:e=>(0,t.jsx)(b,{borderRadius:l,onClick:t=>{k.default.setItem("login_method","apple"),o(a,{params:{method:"apple"}}),e.onClick(t)}})})}],839303);let w={src:e.i(139581).default,width:24,height:25,blurWidth:0,blurHeight:0};var C=e.i(80897),S=e.i(762368),j=e.i(954855);let _=()=>(0,t.jsx)(C.default,{src:w,alt:"Google",width:24,height:24}),E=(0,o.styled)(r.Button)({height:"48px",padding:"12px 16px",border:"1px solid #868686",display:"inline-flex",alignItems:"center",justifyContent:"space-between",boxShadow:"none",backgroundColor:"#fff",color:"#000",borderRadius:"6px","&.Mu
2iButton-sizeMedium":{fontWeight:"600"},"&:hover, &:focus, &:active":{color:"#000",border:"1px solid #868686",backgroundColor:"#f2f2f2",boxShadow:"none"}});e.s(["default",0,e=>{let r=e.screenName||"login_signup_page",n=e.action||"login_signup_started",a=(0,f.useDispatch)(),o=(0,m.useNativeTracker)(r),s=(0,S.useGoogleLogin)({onError:e=>console.error("[GoogleLoginButton] Login error:",e),onSuccess:async e=>{let t=0!==Number(e.authuser);k.default.setItem("is_new_user",t);try{await a((0,x.addUserThunkSocial)({login_type:"google",code:e.code})).unwrap()}catch{y.toast.error("Sign in with Google failed. Please try again.")}},flow:"auth-code"});return(0,j.useSocialLoginRedirect)("google"),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(E,{variant:"outlined",sx:{...e.borderRadius&&{borderRadius:e.borderRadius}},onClick:()=>{k.default.setItem("login_method","google"),o(n,{params:{method:"google"}}),s()},children:[(0,t.jsx)(_,{}),"Continue with Google",(0,t.jsx)(i.Box,{width:24,height:24})]})})}],671146)},399914,e=>{"use strict";var t=e.i(471207);e.s(["NHSLogin",()=>t.default])},910890,e=>{"use strict";var t=e.i(619588);e.s(["ProgressComponent",()=>t.default])},960993,e=>{"use strict";var t=e.i(391398),i=e.i(806798),r=e.i(982404),n=e.i(191788);e.i(148854);var a=e.i(399914),o=e.i(839303),s=e.i(671146),l=e.i(709983);e.s(["default",0,({displayAppleLogin:e,displayGoogleLogin:d,displayNhsLogin:c,nhsLoginSubtitle:u,screenName:p="login_page",action:h="login_signup_started"})=>(0,n.useMemo)(()=>[d,e,c].some(Boolean),[e,d,c])?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.StyledContainerWithDividers,{children:(0,t.jsx)(r.Typography,{color:"#5E5E5E",variant:"caption3Bold",children:"or"})}),(0,t.jsxs)(l.StyledSocialLoginsWrapper,{children:[e&&(0,t.jsx)(o.default,{screenName:p,action:h}),d&&(0,t.jsx)(s.default,{screenName:p,action:h}),c&&(0,t.jsxs)(i.Stack,{gap:"32px",children:[u&&(0,t.jsx)(r.Typography,{textAlign:"center",variant:"body3Bold",children:u}),(0,t.jsx)(a.NHSLogin,{screenName:p,action:h})]})]})]}):null])},709983,e=>{"use strict";var t=e.i(951675),i=e.i(322138),r=e.i(337630);let n=(0,i.styled)(t.Box)(({theme:e})=>({margin:"0 auto",padding:"40px 16px",maxWidth:"480px",display:"flex",flexDirection:"column",alignItems:"center",gap:"32px",[e.breakpoints.up("lg")]:{paddingTop:"56px",paddingBottom:"56px"}})),a=(0,i.styled)(n)(({theme:e,minHeight:t})=>({padding:"48px 16px",margin:"none",maxWidth:"unset",width:"100%",alignSelf:"stretch",backgroundColor:e.palette.essential["100"],backgroundPosition:"bottom right",backgroundSize:"349px",backgroundRepeat:"no-repeat",backgroundImage:`url(${r.default.branding?.images?.onboarding_background?.desktop})`,flexGrow:1,height:"100%",[e.breakpoints.up("lg")]:{backgroundPosition:"bottom right",backgroundSize:"420px",order:-1,minHeight:t?.toString()||"100vh",backgroundImage:`url(${r.default.branding?.images?.onboarding_background?.desktop})`}})),o=(0,i.styled)(t.Box)(({theme:e,minHeight:t})=>({flexGrow:1,[e.breakpoints.up("lg")]:{display:"grid",gridTemplateColumns:"480px 1fr",alignItems:"center"},minHeight:t?.toString()||"480px",display:"flex",flexDirection:"column"})),s=(0,i.styled)(t.Box)({position:"relative",textAlign:"center",width:"100%",":before":{position:"absolute",left:0,top:"56%",content:'""',height:"1px",width:"calc((100% - 40px) / 2)",background:"#DDDDDD"},":after":{position:"absolute",right:0,top:"56%",content:'""',height:"1px",width:"calc((100% - 40px) / 2)",background:"#DDDDDD"}}),l=(0,i.styled)(t.Box,{shouldForwardProp:e=>"$highlight"!==e})(({theme:e,$highlight:t})=>({position:"relative",padding:"16px",display:"flex",gap:"16px",opacity:.8,backgroundColor:t?e.palette.essential["900"]:e.palette.essential["900"]+"CC",color:"white",borderRadius:"12px",backdropFilter:"blur(4px)"})),d=(0,i.styled)(t.Box)({display:"flex",flexDirection:"column",gap:"16px",width:"100%"}),c=(0,i.styled)(t.Box)({display:"flex",flexDirection:"column",gap:"16px",width:"100%"});(0,i.styled)(t.Box)(({theme:e})=>({paddingY:"48px",display:"flex",maxWidth:"480px",flexDirection:"column",alignItems:"center",gap:"16px",[e.breakpoints.up("lg")]:{alignItems:"flex-start"}}));let u=(0,i.styled)(t.Box)(()=>({display:"flex",flexDirection:"column",gap:"16px",marginTop:"4px"}));(0,i.styled)(t.Box)(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"})),e.s(["StyledCardContainer",0,l,"StyledContainer",0,o,"StyledContainerWithDividers",0,s,"StyledEmailLoginWrapper",0,c,"StyledInfoWrapper",0,u,"StyledSocialLoginsWrapper",0,d,"StyledWrapperWithBackgroun
2d",0,a])},80006,e=>{"use strict";var t=e.i(391398),i=e.i(191788),r=e.i(203828),n=e.i(422276);e.i(148854);var a=e.i(42462),o=e.i(399914),s=e.i(910890),l=e.i(951675),d=e.i(862416),c=e.i(806798),u=e.i(982404),p=e.i(322138),h=e.i(858411),g=e.i(786235),m=e.i(549541),f=e.i(839303),y=e.i(671146),x=e.i(709983),k=e.i(637197),v=e.i(274463);let b=(0,p.styled)(l.Box)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexGrow:1,width:"100%"})),w=["apple","google","nhs"],C=(0,m.default)(({shouldClearOtcState:e})=>{let l=(0,n.useDispatch)(),p=(0,r.useRouter)(),{email:m}=(0,n.useSelector)(e=>e.email),C=p.query.method,[S,j]=(0,i.useState)("");(0,i.useEffect)(()=>{m||p.push("/login")},[m,p]),(0,i.useEffect)(()=>{l((0,g.resetUserSliceError)())},[]);let _=async e=>{e.target.disabled=!0;try{await (0,k.sendPasswordResetEmail)({username:m}),p.push("/login/check-your-email")}catch(t){e.target.disabled=!1,(0,v.default)(t,j)}},E={action:"previous_social_login_started",screenName:"previous_social_login"};return(0,t.jsx)(b,{children:(0,t.jsxs)(h.StyledStackWithBorderLoginFlow,{children:[(0,t.jsx)(s.ProgressComponent,{headerContent:"Sign in",buttonAction:()=>p.push("/login")}),(0,t.jsxs)(c.Stack,{gap:"12px",direction:"column",children:[(0,t.jsx)(u.Typography,{variant:"body2Bold",children:w.includes(C)?"You previously signed in with...":"An account already exists for"}),(0,t.jsx)(u.Typography,{variant:"body6Regular",children:m})]}),"apple"===C&&(0,t.jsx)(f.default,{...E}),"google"===C&&(0,t.jsx)(y.default,{...E}),"nhs"===C&&(0,t.jsx)(o.NHSLogin,{...E}),w.includes(C)&&(0,t.jsx)(x.StyledContainerWithDividers,{children:(0,t.jsx)(u.Typography,{color:"#5E5E5E",variant:"caption3Bold",children:"or"})}),(0,t.jsx)(d.Button,{variant:"containedSecondary",size:"medium",onClick:_,children:"Reset password"}),S&&(0,t.jsx)(a.ApiErrDisplay,{err:S,id:"reset-password-api-error"}),(0,t.jsx)(d.Button,{variant:"text",size:"medium",onClick:()=>p.push("/login"),children:"Login with different account"})]})})},{withShouldClearOtcState:!0});e.s(["default",0,C,"knownSocialLoginMethods",0,w])},858411,e=>{"use strict";var t=e.i(317898),i=e.i(181753),r=e.i(951675),n=e.i(912174),a=e.i(862416),o=e.i(806798);(0,t.styled)(i.Link)(({theme:e})=>({...(0,n.default)().caption1Medium}));let s=(0,t.styled)(a.Button)(({theme:e})=>({width:"100%",[e.breakpoints.up("md")]:{width:"50%","&.MuiButton-root":{marginLeft:"auto",marginRight:"auto"}}}));(0,t.styled)(r.Box)(()=>({...(0,n.default)().body3Regular,textAlign:"center",margin:"10px 0"}));let l=(0,t.styled)(o.Stack)(({theme:e})=>({border:"1px solid #E0EBE2",borderRadius:"0.5rem",padding:"3rem 15%",[e.breakpoints.down("md")]:{width:"100%",paddingLeft:"3%",paddingRight:"3%"}})),d=(0,t.styled)(l)(({theme:e})=>({backgroundColor:"#FFFFFF",padding:"40px",width:"100%",maxWidth:"480px",paddingLeft:"40px",paddingRight:"40px",gap:"24px",[e.breakpoints.down("md")]:{width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"40px",paddingRight:"40px"},[e.breakpoints.down("sm")]:{maxWidth:"100%",height:"100%",flexGrow:1,paddingLeft:"16px",paddingRight:"16px"}})),c=(0,t.styled)(o.Stack)(({theme:e})=>({width:"100%",[e.breakpoints.down("md")]:{width:"100%",paddingLeft:"5%",paddingRight:"5%"}})),u=(0,t.styled)(r.Box)(({theme:e})=>({borderRadius:"8px",padding:"8px 16px",border:`1px solid ${e.palette.secondary.dark}`,marginLeft:"1.5rem",maxWidth:"300px"})),p=(0,t.styled)(r.Box)(({theme:e})=>({padding:"1rem 0","&:not(:last-child)":{borderBottom:`1px solid ${e.palette.secondary.dark}`}}));e.s(["OrderingContainer",0,u,"OrderingItem",0,p,"StyledButtonRemedies",0,s,"StyledStackWithBorder",0,l,"StyledStackWithBorderLoginFlow",0,d,"StyledStackWithoutBorder",0,c])},954855,e=>{"use strict";var t=e.i(191788),i=e.i(422276),r=e.i(839016),n=e.i(183332),a=e.i(753970),o=e.i(150815);let s=e=>{let t=(0,o.getRedirectUrlWithBasePath)(e);window.location.assign(t)};e.s(["useSocialLoginRedirect",0,e=>{let o=(0,t.useRef)(!1),l=(0,t.useRef)(0),{status:d,new_user:c=!1,match_success:u,gpsoc_success:p=!1}=(0,i.useSelector)(e=>e.socialUser),{token:h,user_id:g}=(0,i.useSelector)(e=>e.user),[,m]=(0,a.getTokenDataFromStorage)(),f=!!(h&&g&&m);(0,t.useEffect)(()=>
2{if(o.current)return;let e=(0,n.getRedirectLinkFromStorageNoDefault)(),t=async(e,i)=>{if(console.error("Navigation failed:",e),l.current+=1,l.current<=2){console.warn(`Navigation retry attempt ${l.current}/2`);try{(0,n.removeRedirectLinkFromStorage)(),s(i)}catch(e){await t(e,i)}}else{console.error("Max navigation retries exceeded, falling back to home page");try{(0,n.removeRedirectLinkFromStorage)(),s("/")}catch(e){console.error("Critical: Fallback navigation failed:",e)}}},i=async(e,i=!1)=>{try{(0,n.removeRedirectLinkFromStorage)(),s(e)}catch(i){await t(i,e)}};"fulfilled_social"===d&&f&&(o.current=!0,c?e&&"/login"!==e?i((0,n.getSafeRedirectUrl)(),!1):i((0,r.isWhiteLabel)()?"/info/welcome":"/prescriptions/patients",!0):!1===u?i("/profile/surgery?confirm=social",!0):"/login"===e?i("/",!0):e?i((0,n.getSafeRedirectUrl)(),!1):i("/",!0))},[d,c,e,m,u,f])}])},205841,e=>{"use strict";let t=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;e.s(["default",0,function(e){return t.test(e)},"emailRegexp",0,t])},762368,e=>{"use strict";var t=e.i(191788);let i=(0,t.createContext)(null);e.s(["GoogleOAuthProvider",0,function({clientId:e,nonce:r,locale:n,onScriptLoadSuccess:a,onScriptLoadError:o,children:s}){let l=function(e={}){let{nonce:i,locale:r,onScriptLoadSuccess:n,onScriptLoadError:a}=e,[o,s]=(0,t.useState)(!1),l=(0,t.useRef)(n);l.current=n;let d=(0,t.useRef)(a);return d.current=a,(0,t.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",r&&(e.src+=`?hl=${r}`),e.async=!0,e.defer=!0,e.nonce=i,e.onload=()=>{var e;s(!0),null==(e=l.current)||e.call(l)},e.onerror=()=>{var e;s(!1),null==(e=d.current)||e.call(d)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[i]),o}({nonce:r,onScriptLoadSuccess:a,onScriptLoadError:o,locale:n}),d=(0,t.useMemo)(()=>({locale:n,clientId:e,scriptLoadedSuccessfully:l}),[e,l]);return t.default.createElement(i.Provider,{value:d},s)},"useGoogleLogin",0,function({flow:e="implicit",scope:r="",onSuccess:n,onError:a,onNonOAuthError:o,overrideScope:s,state:l,...d}){let{clientId:c,scriptLoadedSuccessfully:u}=function(){let e=(0,t.useContext)(i);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),p=(0,t.useRef)(),h=(0,t.useRef)(n);h.current=n;let g=(0,t.useRef)(a);g.current=a;let m=(0,t.useRef)(o);m.current=o,(0,t.useEffect)(()=>{var t,i;if(!u)return;let n="implicit"===e?"initTokenClient":"initCodeClient";p.current=null==(i=null==(t=null==window?void 0:window.google)?void 0:t.accounts)?void 0:i.oauth2[n]({client_id:c,scope:s?r:`openid profile email ${r}`,callback:e=>{var t,i;if(e.error)return null==(t=g.current)?void 0:t.call(g,e);null==(i=h.current)||i.call(h,e)},error_callback:e=>{var t;null==(t=m.current)||t.call(m,e)},state:l,...d})},[c,u,e,r,l]);let f=(0,t.useCallback)(e=>{var t;return null==(t=p.current)?void 0:t.requestAccessToken(e)},[]),y=(0,t.useCallback)(()=>{var e;return null==(e=p.current)?void 0:e.requestCode()},[]);return"implicit"===e?f:y}])},763686,e=>{"use strict";var t=e.i(205270);let i={name:"pill",size:24,node:[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]]};i.node;let r=(0,t.default)(i);e.s(["Pill",0,r],763686)},50700,e=>{"use strict";var t=e.i(205270);let i={name:"shopping-basket",size:24,node:[["path",{d:"m15 11-1 9",key:"5wnq3a"}],["path",{d:"m19 11-4-7",key:"cnml18"}],["path",{d:"M2 11h20",key:"3eubbj"}],["path",{d:"m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4",key:"yiazzp"}],["path",{d:"M4.5 15.5h15",key:"13mye1"}],["path",{d:"m5 11 4-7",key:"116ra9"}],["path",{d:"m9 11 1 9",key:"1ojof7"}]]};i.node;let r=(0,t.default)(i);e.s(["ShoppingBasket",0,r],50700)},139581,e=>{e.q("/_next/static/media/google_colorful_logo.3x2ddwolqyrbd.svg")},107770,671844,e=>{"use strict";var t=e.i(693645),i=e.i(480896),r=e.i(268082),n=e.i(122967),a=e.i(273340);function o(e,t){return(0,n.useBaseQuery)({...e,enabled:!0,suspense:!0,throwOnError:r.defaultThrowOnError,placeholderData:void 0},a.QueryObserver,t)}e.s(["useSuspenseQuery",0,o],671844);let s=async()=>t.api.get("/v3/affordances"),l=()=>(0,i.queryOptions)({queryKey:["affordances"],queryFn:s});e.s(["getAffordancesQueryOptions",0,l,"useGetAffordances",0,()=>o(l())],107770)},724081,e=>{"use strict";var t=e.i(715572),i=e.i(107770),r=e.i(331744),n=e.i(568547),a=e.i(763686),o=e.i(50700),s=e.i(205270);let l={name:"stethoscope",size:24,node:[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]};l.node;let d=(0,s.default)(l),c={name:"syringe",size:24,node:[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]]};c.node;let u=(0,s.default)(c),p={name:"heart-pulse",size:24,node:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]]};p.node;let h=(0,s.default)(p),g={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};g.node;let m=(0,s.default)(g),f={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};f.node;let y=(0,s.default)(f),x={sectionId:"prescription",headerTitle:"Prescriptions",headerLink:"/prescriptions/add-medicine",icon:a.Pill},k={sectionId:"my-prescriptions",headerTitle:"Prescriptions",headerLink:"/my-prescriptions",icon:a.Pill},v={sectionId:"pharmacy-shop",headerTitle:"Shop",headerLink:"/marketplace",icon:o.ShoppingBasket},b={sectionId:"pharmacy-services",headerTitle:"Services",headerLink:"/services",icon:d},w={sectionId:"pharmacy-services",headerTitle:"Pharmacy services",headerLink:"/services",icon:u},C={sectionId:"clinic",headerTitle:"Clinic",headerLink:"/clinic",icon:h},S={sectionId:"about-us",headerTitle:"About Us",headerLink:"/about-us",icon:m},j={sectionId:"pharmacy-finder",headerTitle:"Find Pharmacy",headerLink:"/pharmacies",icon:y},_={sectionId:"pharmacy-finder",headerTitle:"Pharmacies",headerLink:"/pharmacy",icon:y};e.s(["useHeaderPages",0,()=>{let{data:e}=(0,t.useConfig)(),{organisationId:a,bundleId:o}=(0,r.useOrganisationIdentity)(),{data:s}=(0,i.useGetAffordances)(),l=[],d=e?.homepageSections,c=!!o,u=!!a&&!c,p=!!s?._links?.clinicConditions,h=e=>d?.includes(e),g=(0,n.isCARegion)()?k:x,m=!(0,n.isCARegion)();return u&&(p&&l.push(C),h(x.sectionId)&&l.push(g),h(v.sectionId)&&l.push(v),h(b.sectionId)&&l.push(b)),c&&(p&&l.push(C),l.push(g),l.push(v),l.push(w),m&&(o?.toLowerCase().includes("alphega")?l.push(_):l.push(j))),u||c||
2(p&&l.push(C),l.push(g),l.push(v),l.push(w)),m&&h(j.sectionId)&&l.push({...j,headerLink:e?.pharmacyFinderOverrideUrl??j.headerLink}),e?.aboutUs?.enabled&&l.push(S),l}],724081)},331744,e=>{"use strict";var t=e.i(715572),i=e.i(323182);e.s(["useOrganisationIdentity",0,function(){let{data:e}=(0,t.useConfig)(),{data:r}=(0,i.useWebsiteIdentity)();return{organisationId:r?.organisationId??e?.organisationId??null,bundleId:r?.bundleId??e?.bundleId??null,organisationName:r?.organisationName??e?.name??""}}])},508540,e=>{"use strict";var t=e.i(391398),i=e.i(191788),r=e.i(203828),n=e.i(679935),a=e.i(422276),o=e.i(839016),s=e.i(648465),l=e.i(637197),d=e.i(274463),c=e.i(709983),u=e.i(714596),p=e.i(858411),h=e.i(960993),g=e.i(300750),m=e.i(862416),f=e.i(806798),y=e.i(982404),x=e.i(349825),k=e.i(558021);e.i(148854);var v=e.i(42462),b=e.i(512209),w=e.i(171975),C=e.i(205841),S=e.i(393731);e.i(357301);var j=e.i(456196),_=e.i(670220),E=e.i(203320);function L(){return(0,S.useMutation)({mutationFn:e=>{let t,i,r=(0,_.getStoredAttribution)(),n=r?.source,a=g.default.getItem("source_pharmacy_id"),o=g.default.getItem("otpEmailSentTimestamp"),s=o?Date.now()-o:null;if("number"==typeof s&&s<3e4){let e=Math.ceil((3e4-s)/1e3);return Promise.reject(Error(`Cannot request new code. Please wait ${e} seconds`))}return t=e.toLowerCase().trim(),i=(0,E.resolveJourney)(),j.coreApi.post("/v4/login-otp",{email:t,source:n,sourcePharmacyId:a,journey:i})},onSuccess:(e,t)=>{g.default.setItem("otpEmail",t.toLowerCase().trim(),300),g.default.setItem("otpEmailSentTimestamp",Date.now(),300),n.toast.success("Code sent to your email")},onError:e=>{n.toast.error((0,d.getErrorMessage)(e))}})}var P=e.i(520268);let I=({showOTPInput:e})=>{let i=(0,P.useNativeTracker)("login"),{control:r,handleSubmit:n,formState:a}=(0,k.useForm)({defaultValues:{email:g.default.getItem("otpEmail")||""}}),{privacyLink:o,termsOfUseLink:s}=(0,w.useGetTermsAndConditionLinks)({showPurchaseTerms:!1}),{mutateAsync:l,isPending:c,error:u}=L(),p=u&&(0,d.getErrorMessage)(u),h=async t=>{if(g.default.getItem("otpEmail")===t.email)return void e();try{await l(t.email.toLowerCase().trim()),e(),await i("otp_email_submitted")}catch(e){}};return(0,t.jsxs)(f.Stack,{component:"form",gap:"16px",onSubmit:n(h),children:[(0,t.jsx)(f.Stack,{marginTop:"0 !important",gap:"12px",children:(0,t.jsx)(y.Typography,{variant:"body1Bold",children:"Create an account or sign in"})}),(0,t.jsx)(f.Stack,{children:(0,t.jsx)(b.default,{details:{control:r,id:"register-email",label:"Email",name:"email",disabled:!1,variant:"outlined",defaultValue:"",type:"email",rules:{required:"Email required",pattern:{value:C.emailRegexp,message:"Please enter a valid email"}}},InputLabelProps:{shrink:!1,required:!0}})}),(0,t.jsxs)(f.Stack,{gap:"12px",children:[(0,t.jsx)(m.Button,{variant:"contained",size:"medium",type:"submit",sx:{borderRadius:"32px"},onClick:n(h),disabled:!a.isValid||c,children:c?(0,t.jsx)(x.CircularProgress,{size:24,color:"inherit",sx:{mr:1}}):"Continue"}),p&&(0,t.jsx)(v.ApiErrDisplay,{err:p,id:"otp-login-api-error",highlight:!0}),(0,t.jsxs)(y.Typography,{variant:"caption1Medium",children:["By clicking continue, you accept the"," ",(0,t.jsx)(m.Button,{variant:"link",size:"small",LinkComponent:"a",href:s||"",target:"_blank",children:"Terms and Conditions"})," & ",(0,t.jsx)(m.Button,{variant:"link",size:"small",LinkComponent:"a",href:o||"",target:"_blank",children:"Privacy Policy"})]})]})]})};var T=e.i(67493),B=e.i(951675),O=e.i(496488),R=e.i(487534),A=e.i(257204),F=e.i(786235),D=e.i(275143),M=e.i(273828);async function N(e){for(let t=0;t<3;t++){let i=await e.token();if(i?.data?.token)return g.default.setItem("access_token",i.data.token),i.data.token;t<2&&await new Promise(e=>setTimeout(e,300))}throw Error("Token not found")}let W=({hideOTPInput:e,onClaimed:i})=>{let r,n,{control:o,handleSubmit:s,formState:l}=(0,k.useForm)(),c=g.default.getItem("otpEmail"),u=(0,O.useTheme)(),p=(0,P.useNativeTracker)("login");c||e();let{mutate:h}=L(),{mutate:w,isPending:C,error:_}=(r=(0,A.getAuthClient)(),n=(0,a.useDispatch)(),(0,S.useMutation)({mutationFn:async({email:e,otp:t})=>{if(!e||!t)throw Error("Email and OTP are required");if(!r)throw Error("Auth client not found");let i=!0===(0,M.isAnonymousUser)(),n=await r.signIn.emailOtp({email:e.toLowerCase().trim(),otp:t});if(n?.error){p?.("otp_code_failed");let{code:e,message:t}=n.error,i=t;switch(e){case"USER_NOT_FOUND":case"INVALID_EMAIL":case"INVALID_OTP":case"OTP_NOT_FOUND":i="Invalid verification code. Please check and try again.";break;case"OTP_EXPIRED":i="Verification code has expired. Please request a new one.";break;case"TOO_MANY_ATTEMPTS":i="Too many failed attempts. Please wait before trying again.";break;default:i=t||"Verification failed. Please try again."}throw Error(i)}return{...n,wasAnonymous:i}},onSuccess:async e=>{if(p?.("otp_code_verified"),e?.data?.user?.id)try{let t=await N(r);e.wasAnonymous&&await (0,M.claimAnonymousUser)();let a=(await j.coreApi.get(`/users/${e.data.user.id}`)).data.data[0];n((0,F.userLogin)({token:t,refresh_token:null,user:a})),(0,D.invalidateOtcBasket)(),i?.()}catch(e){throw console.error("Failed to complete OTP login:",e),e}}})),E=_&&(0,d.getErrorMessage)(_),I=t=>{c?w({email:c.toLowerCase().trim(),otp:t.otp}):e()};async function W(t){(t.preventDefault(),c)?(p("otp_code_resend_requested"),h(c)):e()}return(0,t.jsxs)(f.Stack,{component:"form",gap:"16px",onSubmit:s(I),children:[(0,t.jsx)(f.Stack,{marginTop:"0 !important",gap:"12px",children:(0,t.jsx)(y.Typography,{variant:"body2Bold",children:"Check your inbox and use the one time password to verify your account"})}),(0,t.jsxs)(B.Box,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"4px",children:[(0,t.jsx)(y.Typography,{variant:"caption1Regular",children:"We have sent an email to:"}),(0,t.jsxs)(B.Box,{display:"flex",alignItems:"center",gap:"4px",children:[(0,t.jsx)(y.Typography,{variant:"caption1Bold",style:{whiteSpace:"nowrap"},children:c}),(0,t.jsx)(T.IconButton,{onClick:e,children:(0,t.jsx)(R.default,{})})]})]}),(0,t.jsxs)(f.Stack,{children:[(0,t.jsx)(b.default,{autocomplete:"off",details:{control:o,id:"verify-otp",label:"Code",name:"otp",disabled:!1,variant:"outlined",defaultValue:"",type:"text",placeholder:"Enter code",rules:{required:"Code is required",pattern:{value:/^[0-9]{6}$/,message:"Code must be 6 digits"}}},onChange:e=>{let t=e.target.value.replace(/[^0-9]/g,"").slice(0,6);return e.target.value=t,t},InputLabelProps:{shrink:!1,required:!0}}),(0,t.jsxs)(f.Stack,{direction:"row",gap:"12px",children:["Didn't get the code or it expired?",(0,t.jsx)("a",{onClick:W,href:"#",style:{color:u.palette.primary.dark,textDecoration:"underline",cursor:"pointer",fontWeight:600},children:"Send code again"})]})]}),(0,t.jsxs)(f.Stack,{gap:"12px",children:[(0,t.jsx)(m.Button,{variant:"contained",size:"medium",type:"submit",sx:{borderRadius:"32px"},onClick:s(I),disabled:!l.isValid||C,children:C?(0,t.jsx)(x.CircularProgress,{size:24,color:"inherit",sx:{mr:1}}
2):"Submit code"}),E&&(0,t.jsx)(v.ApiErrDisplay,{err:E,id:"verify-otp-api-error",highlight:!0})]})]})},z=({onClaimed:e})=>{let r=!!g.default.getItem("otpEmail"),[n,a]=(0,i.useState)(r);return(0,t.jsx)(t.Fragment,{children:n?(0,t.jsx)(W,{hideOTPInput:()=>a(!1),onClaimed:e}):(0,t.jsx)(I,{showOTPInput:()=>a(!0)})})};var q=e.i(183332),U=e.i(150815);let G=({isSocialLoaded:e,displayNhsLogin:i,displayGoogleLogin:r,displayAppleLogin:n})=>(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(u.default,{}),(0,t.jsxs)(p.StyledStackWithBorderLoginFlow,{sx:{gap:"32px"},children:[(0,t.jsx)(c.StyledEmailLoginWrapper,{children:(0,t.jsx)(z,{onClaimed:()=>{let e=(0,q.getSafeRedirectUrl)();(0,q.removeRedirectLinkFromStorage)(),window.location.assign((0,U.getRedirectUrlWithBasePath)(e))}})}),(0,t.jsx)(h.default,{screenName:"login_page",action:"login_signup_started",displayAppleLogin:n,displayGoogleLogin:r,displayNhsLogin:i})]})]});var $=e.i(55620),H=e.i(80006),V=e.i(893930),Z=e.i(724081),Q=e.i(323182);let X=["prescription","clinic","pharmacy-services","pharmacy-shop"];var K=e.i(977398);let Y=()=>{let{isAuthenticated:e,isLoading:c}=(()=>{let{data:e,isLoading:t}=(0,V.useQuery)((0,K.getUseSessionQueryOptions)()),n=(0,r.useRouter)(),a=(()=>{let{data:e}=(0,Q.useWebsiteHeader)(),t=(0,Z.useHeaderPages)();if(e?.menu){let t=function(e){for(let t of e){if("link"===t.kind)return t.url;if("group"===t.kind&&t.links.length>0)return t.links[0].url}}(e.menu);if(t)return t}for(let e of X){let i=t.find(t=>t.sectionId===e);if(i)return i.headerLink}return t[0]?.headerLink??"/"})(),o=(0,i.useRef)(!1),[s]=(0,i.useState)(()=>!1===(0,M.isAnonymousUser)()),l=!!e?.user||s;return(0,i.useEffect)(()=>{if(!l||o.current)return;o.current=!0;let e=n.query.onSuccessUrl,t=Array.isArray(e)?e[0]:e,i=t&&(0,q.isSafeRedirectUrl)(t)?t:a;n.replace(i)},[l,n,a]),{isAuthenticated:l,isLoading:t}})(),p=(0,r.useRouter)(),[h,m]=(0,i.useState)(""),[f,y]=(0,i.useState)(""),x=(0,a.useDispatch)(),k=(0,P.useNativeTracker)("login_signup_page"),v=(0,a.useSelector)(e=>e.socialUser),b=v.status,w=v?.user?.username,S=async()=>{if(!(0,C.default)(h))return y("Please enter a valid email");(0,o.trackGAEvent)("enter_email"),x((0,$.addEmailAddress)(h));try{let{exist:e,previous_login_method:t,has_email_login:i}=await (0,l.checkEmailExistance)({username:h});if(g.default.setItem("login_method","email"),k("login_signup_started",{params:{method:"email",email_existing:e}}),e){(0,o.trackGAEvent)("continue_by_login"),k("continue_by_login");let e=t&&H.knownSocialLoginMethods.includes(t)&&!i;p.push(e?`/login/social-login?method=${t}`:"/login")}else g.default.setItem("is_new_user",!0),(0,o.trackGAEvent)("continue_by_signup"),k("continue_by_signup"),p.push("/login/register")}catch(e){(0,d.default)(e,e=>n.toast.error(e))}(0,o.trackGAEvent)("continue_email")},{tokenExpiredError:j}=(0,a.useSelector)(e=>e.user),{pharmacyFromGeneratedLink:_}=(0,a.useSelector)(e=>e.pharmacies);(0,i.useEffect)(()=>(p.isReady&&((0,o.trackGAEvent)(`login_signup_page_loaded${_?"_pharmacy":""}`),k("login_signup_page_loaded",{params:{pharmacy_id:_?._id||null}})),()=>{x((0,F.setTokenExpiredError)(null))}),[p.isReady,k]),(0,i.useEffect)(()=>{j&&n.toast.error(j)},[j]);let E=(0,s.useFeatureFlag)("nhsLogin"),L=(0,o.isHealthera)(),I=(0,o.isHealthera)();return c||e||"pending_addUser_social"===b?(0,t.jsx)(u.default,{}):(0,t.jsx)(G,{isSocialLoaded:"fulfilled_social"===b&&!!w,displayNhsLogin:E,displayGoogleLogin:L,displayAppleLogin:I,email:h,emailError:f,handleChange:e=>m(e.target.value),handleBlur:()=>{!h||(0,C.default)(h)?y(""):y("Please enter a valid email")},handleLoginWithEmail:S})};e.i(737088);var J=e.i(611008),ee=e.i(415732),et=e.i(322138),ei=e.i(707065);let er=ei.keyframes` 3 0% { 4 display: block; 5 opacity: 0; 6 transform: translateX(-100vw); 7 } 8 9 100% { 10 opacity: 1; 11 transform: translateX(0); 12 } 13`,en=(0,et.styled)(B.Box,{shouldForwardProp:e=>"string"!=typeof e||!["$position","$time"].includes(e)})(({$position:e})=>ei.css` 14 opacity: 0; 15 animation: ${er} 1s; 16 animation-timing-function: ease-in-out; 17 animation-fill-mode: forwards; 18 animation-delay: ${+e}s; 19 `);var ea=e.i(506583);let eo=({title:e,icon:i,isHighlighted:r})=>(0,t.jsxs)(c.StyledCardContainer,{$highlight:r,children:["string"==typeof i?(0,t.jsx)(ea.CustomIcon,{src:i,size:24}):i,(0,t.jsx)(y.Typography,{color:"white",children:e})]}),es=({fill:e,size:i=22})=>((0,O.useTheme)(),(0,t.jsx)("svg",{width:i,height:i,viewBox:`0 0 ${i} ${i}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0008 3.01922e-08C8.8252 -0.000161127 6.69838 0.644837 4.88934 1.85343C3.0803 3.06202 1.67027 4.77992 0.837579 6.78988C0.00488533 8.79984 -0.213077 11.0116 0.211256 13.1454C0.635589 15.2793 1.68316 17.2394 3.22149 18.7778C4.75982 20.3163 6.71981 21.364 8.85361 21.7886C10.9874 22.2131 13.1992 21.9953 15.2092 21.1628C17.2193 20.3303 18.9373 18.9204 20.146 17.1115C21.3548 15.3025 22 13.1758 22 11.0002C21.9985 8.08335 20.8392 5.28643 18.7768 3.22386C16.7144 1.16128 13.9176 0.00174449 11.0008 3.01922e-08ZM6.39064 12.151L8.69575 14.4563C8.80903 14.5701 8.94367 14.6604 9.09193 14.722C9.24019 14.7836 9.39916 14.8153 9.5597 14.8153C9.72025 14.8153 9.87922 14.7836 10.0275 14.722C10.1757 14.6604 10.3104 14.5701 10.4237 14.4563L15.611 9.27206C15.8401 9.04291 15.9689 8.73212 15.9689 8.40805C15.9689 8.08398 15.8402 7.77317 15.611 7.54401C15.3819 7.31485 15.0711 7.18611 14.747 7.1861C14.4229 7.18609 14.1121 7.31482 13.883 7.54396L9.56136 11.8659L8.11861 10.4229C7.88945 10.1938 7.57864 10.0651 7.25458 10.0651C6.93051 10.0651 6.61972 10.1939 6.39057 10.423C6.16143 10.6522 6.0327 10.963 6.03272 11.287C6.03273 11.6111 6.16148 11.9219 6.39064 12.151Z",fill:e||"#ffffff"})})),el=(0,et.styled)(B.Box)(({theme:e})=>({flexGrow:1,padding:"0",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",[e.breakpoints.down("md")]:{padding:"0"},[e.breakpoints.up("sm")]:{padding:"40px 16px"}})),ed=(0,J.withoutAuth)(()=>(0,t.jsx)(Y,{}));ed.getLayout=e=>(0,ee.default)((0,t.jsxs)(c.StyledContainer,{width:"100%",height:"100%",children:[(0,t.jsx)(el,{children:e}
19),(0,t.jsx)(c.StyledWrapperWithBackground,{minHeight:"480px",children:(0,t.jsxs)(c.StyledInfoWrapper,{children:[(0,t.jsx)(en,{$position:0,children:(0,t.jsx)(eo,{icon:(0,t.jsx)(es,{}),title:(0,o.isHealthera)()?"UK-wide delivery available":"Fast and convenient service",isHighlighted:!0})}),(0,t.jsx)(en,{$position:1,children:(0,t.jsx)(eo,{icon:(0,t.jsx)(es,{}),title:(0,o.isHealthera)()?"Connected with 99% of GPs":"Get live updates on your order",isHighlighted:!0})}),(0,t.jsx)(en,{$position:2,children:(0,t.jsx)(eo,{icon:(0,t.jsx)(es,{}),title:(0,o.isPlusWebsite)()?"We'll confirm with your GP directly":"Partnered with 1,600+ local & delivery pharmacies",isHighlighted:!0})}),(0,o.isHealthera)()&&(0,t.jsx)(en,{$position:3,children:(0,t.jsx)(eo,{icon:(0,t.jsx)(es,{}),title:"Rated excellent (4.5/5) for service",isHighlighted:!0})})]})})]}),{showTitle:!1,showHeader:!0}),e.s(["__N_SSP",0,!0,"default",0,ed],508540)},484848,(e,t,i)=>{let r="/login";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(508540)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})}]); 20 21//# debugId=c71ce71d-6830-7d6a-4128-96051369d0d2
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.