1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4a071ce6-ab48-45ac-90e6-57043ac93566",e._sentryDebugIdIdentifier="sentry-dbid-4a071ce6-ab48-45ac-90e6-57043ac93566")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60090],{25694:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var o={nextAuth:{logoutUri:"https://www.otomoto.pl",urls:{cognito:{authorize:"https://login.otomoto.pl/oauth2/authorize",token:"https://login.otomoto.pl/oauth2/token",logout:"https://login.otomoto.pl/oauth2/logout",userInfo:"https://login.otomoto.pl/v2/user/me"},auth0:{authorize:"https://auth.otomoto.pl/authorize",token:"https://auth.otomoto.pl/oauth/token",logout:"https://auth.otomoto.pl/v2/logout",userInfo:"https://auth.otomoto.pl/v2/user/me"}},cognito:{issuer:"https://cognito-idp.eu-west-1.amazonaws.com/eu-west-1_bigbq34vj",jwks_endpoint:"https://cognito-idp.eu-west-1.amazonaws.com/eu-west-1_bigbq34vj/.well-known/jwks.json",clientId:"1l7s2rtc114dc9uqu87n8fm27"},auth0:{issuer:"https://auth.otomoto.pl/",jwks_endpoint:"https://auth.otomoto.pl/.well-known/jwks.json",clientId:"qo9CLDjAWBV4OD95Dbe5Aork7E7lR12o",clientSecret:""},scope:"openid profile email offline_access",storage:{path:"/",secure:!0,domain:".otomoto.pl"}},impersonatorAudience:"1kfmreb3a3qutghdjnmu4t3dqc",cognitoInfo:{region:"eu-west-1",userPoolId:"eu-west-1_bigbq34vj",userPoolWebClientId:"1l7s2rtc114dc9uqu87n8fm27",oauth:{domain:"login.otomoto.pl",scope:["email","openid"],redirectSignIn:"https://www.otomoto.pl/authentication/oauthverify",redirectSignOut:"https://www.otomoto.pl",responseType:"code"},authenticationFlowType:"USER_SRP_AUTH",storage:{path:"/",secure:!0,domain:".otomoto.pl"}}}},36388:(e,t,n)=>{"use strict";n.d(t,{i:()=>r,u:()=>i});var o=n(838223),a=n(340709),i=e=>({isMainAccount:(null==e?void 0:e["".concat(a.cV)])===(null==e?void 0:e.sub)}),r=e=>{if(!(0,o.LB)(e)||!e)return!1;var t=e.multiUser;return!(t&&!(null==t?void 0:t.isMainAccount))}},67413:(e,t,n)=>{"use strict";n.d(t,{VN:()=>o,o$:()=>a}),n(327894);var o="backUrl",a=e=>"b"===e||"c"===e},151933:(e,t,n)=>{"use strict";n.d(t,{iU:()=>r,yy:()=>i});var o=n(698319),a=n(275939).hp;function i(e){return(0,o._)((e.headers.host||"").split(":"),1)[0].replace("www.","").replace("local.","")}var r=e=>e?JSON.parse(a.from(e.split(".")[1],"base64").toString()):{}},327894:(e,t,n)=>{"use strict";n.d(t,{eA:()=>i,j:()=>a,jd:()=>l,vV:()=>u});var o=n(610196),a={otomotopl:"/mojekonto",autovitro:"/contul-meu",carspt:"/contapessoal"},i={otomotopl:"/nowe-ogloszenie",autovitro:"/anunt-nou",carspt:"/anunciar"},r=e=>{var t,n,o=(null!=(n=null==(t=e.split("?")[0])?void 0:t.split("#")[0])?n:e).replace(/\/+$/,"");return o.length>0?o:"/"},s=["business-restricted-access","pending-approval"],u=(e,t)=>{if(l(e,t))return!0;var n=r(e),o=r(a[t]);return s.some(e=>n==="".concat(o,"/").concat(e))},l=(e,t)=>{var n=a[t];if(r(e).includes("/welcome/notifications"))return!0;var s=e===n||e.startsWith("".concat(n,"/"));if(s&&!((e,t)=>{var n=r(e),i=r(a[t]);return(e=>{var t=a[e];return Object.values(o).filter(e=>"string"==typeof e&&e.startsWith(t)).map(e=>r(e))})(t).some(e=>n===e||e!==i&&n.startsWith("".concat(e,"/")))})(e,t))return!1;var u=i[t],l=e.includes(u);return s||l}},460090:(e,t,n)=>{"use strict";n.r(t),n.d(t,{determineTokenEndpoint:()=>X,nextAuthOptions:()=>K});var o,a=n(300561),i=n(819470),r=n(558162),s=n(698319),u=n(22275),l=n(81205),c=n(586032),d=u.q.getMeter("git.naspersclassifieds.com/olxeu/motors/services/optimus-web"),p=new Map,m=n(761876),h=n(838223),k=n(952468),v=n(340709),g=n(151933),f=n(36388),w=n(239245),y=n(67413),A=Object.values(n(327894).eA),x="/authentication/oauthverify",_=e=>!("/"===e||e.startsWith(x)||e.startsWith("/api/auth")||(e=>{var t=(e=>{var t,n,o=e.trim();if(!o)return"";if(/^https?:\/\//i.test(o))try{return new URL(o).pathname}catch(e){return null!=(t=o.split("?")[0])?t:o}var a=o.startsWith("/")?o:"/".concat(o);return null!=(n=a.split("?")[0])?n:a})(e);
1return A.some(e=>t.includes(e))})(e)),S=(e,t)=>"".concat(e).concat(x,"?").concat(y.VN,"=").concat(encodeURIComponent(t));n(497569);var j=n(346686),b=n(784272),I=n(189786);n(934085);var T=n(740181),N=n(326427),U=n(641973),P=b.o7,E=e=>"PROFESSIONAL"===e?1:2*("PRIVATE"===e),$=(0,j.UG)("\n query AuthUserQuery($fetchAccountType: Boolean! = true) {\n viewer {\n currentAccount @include(if: $fetchAccountType) {\n accountType\n }\n currentUser {\n familyName\n givenName\n pictureId\n dealerships {\n id\n }\n }\n user {\n userType\n id\n firstName\n lastName\n displayName\n accountStatus\n suspendReason\n email\n }\n }\n }\n"),D=e=>!!e&&!!e[m.Cpw],C=async(e,t,o)=>{if(!e)return{userType:null,id:void 0};var a,i,r,s,u,l,c,d,p,m,h,v,g,f,w,y,A,x,_,S,j,b,C,O,R,L,z,M,H,q,F,G,V,B,W,X,J,K,Q,Y,Z,ee,et,en,eo=D(),ea=void 0;if(ea&&(!eo||null!=ea.accountType))return ea;var ei=(0,N.UU)((e=>{var t="enabled"===U.env.NEXT_PUBLIC_API_MOCKING&&P(),n={cookie:document.cookie,"Content-Type":"application/json"},o="".concat(window.location.origin,"/graphql");return n["X-Client-Name"]="Optimus",n["X-Client-Version"]="".concat("local"),n["Accept-Encoding"]="gzip, compress, br",e&&(n.Authorization="Bearer ".concat(e)),{url:o,fetchOptions:{credentials:"same-origin",headers:n},exchanges:[N.WG,!t&&"enabled"!==U.env.NEXT_PUBLIC_API_MOCKING&&(0,T.L)({preferGetForPersistedQueries:!0}),N.cI].filter(Boolean),fetch:(0,I.k)()}})(e)),er=await ei.query($,{fetchAccountType:eo},{requestPolicy:"cache-first"}).toPromise();try{return{userType:E(null==er||null==(r=er.data)||null==(i=r.viewer)||null==(a=i.user)?void 0:a.userType),id:null==er||null==(l=er.data)||null==(u=l.viewer)||null==(s=u.user)?void 0:s.id,firstName:null==er||null==(p=er.data)||null==(d=p.viewer)||null==(c=d.user)?void 0:c.firstName,lastName:null==er||null==(v=er.data)||null==(h=v.viewer)||null==(m=h.user)?void 0:m.lastName,displayName:null==er||null==(w=er.data)||null==(f=w.viewer)||null==(g=f.user)?void 0:g.displayName,accountStatus:null==er||null==(x=er.data)||null==(A=x.viewer)||null==(y=A.user)?void 0:y.accountStatus,suspendReason:null==er||null==(j=er.data)||null==(S=j.viewer)||null==(_=S.user)?void 0:_.suspendReason,email:null==er||null==(O=er.data)||null==(C=O.viewer)||null==(b=C.user)?void 0:b.email,currentUserAccountFamilyName:null==er||null==(z=er.data)||null==(L=z.viewer)||null==(R=L.currentUser)?void 0:R.familyName,currentUserAccountGivenName:null==er||null==(q=er.data)||null==(H=q.viewer)||null==(M=H.currentUser)?void 0:M.givenName,pictureId:null==er||null==(V=er.data)||null==(G=V.viewer)||null==(F=G.currentUser)?void 0:F.pictureId,hasDealerships:(null!=(Z=null==er||null==(J=er.data)||null==(X=J.viewer)||null==(W=X.currentUser)||null==(B=W.dealerships)?void 0:B.length)?Z:0)>1,accountType:eo?(0,k.kv)(null==er||null==(Y=er.data)||null==(Q=Y.viewer)||null==(K=Q.currentAccount)?void 0:K.accountType):null}}catch(e){return(0,(await Promise.all([n.e(39285),n.e(13487)]).then(n.bind(n,813487))).logger)().error({message:"Error getting GetUserType in next-auth",userAgent:t,clientId:o,err:e}),{userType:E(null==er||null==(en=er.data)||null==(et=en.viewer)||null==(ee=et.user)?void 0:ee.userType),id:void 0,firstName:null,lastName:null,displayName:null,accountStatus:null,suspendReason:null,email:null,currentUserAccountFamilyName:null,currentUserAccountGivenName:null,pictureId:null,hasDealerships:!1,accountType:null}}},O=n(25694),R=e=>e===O.$.nextAuth.urls.auth0.token?"auth0":"cognito",L=async e=>{var t=e.refreshToken,o=e.token,r=e.clientId,s=e.domain,u=e.tokenEndpoint,l=e.setHeader,c=!1,d=e=>{c||(c=!0,Promise.resolve().then(n.bind(n,739734)).then(t=>{(0,t.setRootSpanAttribute)("tokenRefreshFailureReason",e)}).catch(()=>void 0))};try{if(!t)throw d("no refresh token available"),Error(v.k_);if(t&&o.rtexp&&o.rtexp<Date.now()/1e3)throw d("refresh token expired"),Error("refresh token expired at ".concat(o.refreshTokenExpiresAt));var p=R(u),m={client_id:r,grant_type:"refresh_token",refresh_token:t};"auth0"===p&&O.$.nextAuth.auth0.clientSecret&&(m.client_secret=O.$.nextAuth.auth0.clientSecret);var h=await fetch(u,{headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(m),method:"POST"}),k=await h.json();if(!h.ok)throw d(400===h.status?v.Np:v.sC),Error(400===h.status?v.Np:v.sC,{cause:k});if(l&&k.id_token){var g=R(u);try{l("Set-Cookie",["id_token=".concat(k.id_token,"; Domain=.").concat(s,"; Path=/; Max-Age=").concat(v.eb,"; HttpOnly; Secure; SameSite=Lax;"),"".concat(v.O9,"=").concat(g,"; Domain=.").concat(s,"; Path=/; Max-Age=").concat(v.i$,"; Secure; SameSite=Lax;"),"client_id=".concat(r,"; Domain=.").concat(s,"; Path=/; Max-Age=").concat(v.i$,"; Secure; HttpOnly; SameSite=Lax;")])}catch(e){}}return(0,i._)((0,a._)({},o),{itexp:Math.floor(Date.now()/1e3+(k.expires_in||0)),rt:k.refresh_token,it:k.id_token,rtexp:Math.floor(Date.now()/1e3)+v.i$,e:null})}catch(e){return c||d(e instanceof Error?e.message:String(e)),(0,i._)((0,a._)({},o),{originalError:e,e:e.message})}},z=e=>!!(e&&e.length>1e3&&e.split(".").length-1==4),M=e=>{var t=e.authProviderCookie,n=e.clientIdFromCookie,o=e.refreshToken,a=e.isAuth0Enabled;return O.$.nextAuth.auth0.clientId&&n===O.$.nextAuth.auth0.clientId?"auth0":n===O.$.nextAuth.cognito.clientId||o&&z(o)?"cognito":o&&!z(o)&&a&&O.$.nextAuth.auth0.clientId||"auth0"===t&&O.$.nextAuth.auth0.clientId?"auth0":"cognito"===t?"cognito":a&&O.$.nextAuth.auth0.clientId?"auth0":"cognito"};async function H(e){return(0,I.k)()("".concat("https://www.otomoto.pl/api/v1/").concat("auth/signout"),{headers:{"Content-Type":"application/json",cookie:e},method:"POST",timeout:1e4})}var q=async(e,t)=>{var n,o=(0,g.yy)(e),a=(null==(n=(await H(e.headers.cookie||"")).headers.get("Set-Cookie"))?void 0:n.split(",").find(e=>e.includes("PHPSESSID")))||"";null==t||t.setHeader("Set-Cookie",["id_token=deleted; Domain=.".concat(o,"; Path=/; Max-Age=",0,"; HttpOnly; Secure; SameSite=Lax"),"".concat(v.O9,"=deleted; Domain=.").concat(o,"; Path=/; Max-Age=",0,"; Secure; SameSite=Lax"),"refresh_token=deleted; Domain=.".concat(o,"; Path=/; Max-Age=",0,"; Secure; HttpOnly; SameSite=Lax"),"device_token=deleted; Domain=.".concat(o,"; Path=/; Max-Age=",0,"; HttpOnly; Secure; SameSite=Lax"),"client_id=deleted; Domain=.".concat(o,"; Path=/; Max-Age=",0,"; HttpOnly; Secure; SameSite=Lax"),a])},F={warn:async e=>{console.warn("NEXT-AUTH",{code:e})},error:async(e,t)=>{console.error("NEXT-AUTH",{code:e,metadata:t})}
1,debug:async(e,t)=>{console.error("NEXT-AUTH",{code:e,metadata:t})}},G={id:"hciam",name:"hciam",type:"oauth",authorization:{url:O.$.nextAuth.urls.cognito.authorize,params:{scope:O.$.nextAuth.scope}},token:{url:O.$.nextAuth.urls.cognito.token,request:async e=>({tokens:await e.client.callback(e.provider.callbackUrl,e.params,e.checks,{exchangeBody:{client_id:O.$.nextAuth.cognito.clientId}})})},userinfo:O.$.nextAuth.urls.cognito.userInfo,idToken:!0,checks:["pkce"],client:{client_id:O.$.nextAuth.cognito.clientId},profile:e=>({id:e.sub,name:e.name,email:e.email,image:e.picture}),jwks_endpoint:O.$.nextAuth.cognito.jwks_endpoint,clientId:O.$.nextAuth.cognito.clientId,clientSecret:"",issuer:O.$.nextAuth.cognito.issuer},V={id:"hciam-auth0",name:"hciam-auth0",type:"oauth",authorization:{url:O.$.nextAuth.urls.auth0.authorize,params:{scope:O.$.nextAuth.scope}},token:{url:O.$.nextAuth.urls.auth0.token,request:async e=>({tokens:await e.client.callback(e.provider.callbackUrl,e.params,e.checks,{exchangeBody:{client_id:O.$.nextAuth.auth0.clientId}})})},userinfo:O.$.nextAuth.urls.auth0.userInfo,idToken:!0,checks:["pkce"],client:{client_id:O.$.nextAuth.auth0.clientId},profile:e=>({id:e.sub,name:e.name,email:e.email,image:e.picture}),jwks_endpoint:O.$.nextAuth.auth0.jwks_endpoint,clientId:O.$.nextAuth.auth0.clientId,get clientSecret(){return O.$.nextAuth.auth0.clientSecret||""},issuer:O.$.nextAuth.auth0.issuer},B={debug:!1,cookies:{sessionToken:{name:v.sU,options:{domain:O.$.nextAuth.storage.domain,httpOnly:!0,sameSite:"lax",path:"/",secure:!0}},callbackUrl:{name:"__Secure-next-auth.callback-url",options:{domain:O.$.nextAuth.storage.domain,httpOnly:!0,sameSite:"lax",path:"/",secure:!0}},csrfToken:{name:"__Host-next-auth.csrf-token",options:{httpOnly:!0,sameSite:"lax",path:"/",secure:!0}},pkceCodeVerifier:{name:"__Secure-next-auth.pkce.code_verifier",options:{domain:O.$.nextAuth.storage.domain,httpOnly:!0,sameSite:"lax",path:"/",secure:!0,maxAge:900}},state:{name:"__Secure-next-auth.state",options:{domain:O.$.nextAuth.storage.domain,httpOnly:!0,sameSite:"lax",path:"/",secure:!0,maxAge:900}},nonce:{name:"__Secure-next-auth.nonce",options:{domain:O.$.nextAuth.storage.domain,httpOnly:!0,sameSite:"lax",path:"/",secure:!0}}},pages:{signIn:"/authentication",error:"/",newUser:"/authentication",signOut:"/",verifyRequest:"/"},providers:(()=>{var e=[G];return O.$.nextAuth.auth0.clientId?e.push(V):Promise.all([n.e(39285),n.e(13487)]).then(n.bind(n,813487)).then(e=>{(0,e.logger)().warn({message:"Auth0 provider not registered: Auth0 clientId is empty"})}).catch(()=>void 0),e})()},W=(e,t)=>{var n=e.id_token;return n||t.it},X=e=>{let t;var n=e.authProvider;return t=M({authProviderCookie:n,clientIdFromCookie:e.clientIdFromCookie,refreshToken:e.refreshToken,isAuth0Enabled:e.isAuth0Enabled}),O.$.nextAuth.urls[t].token},J=async(e,t,a)=>{var i=e.cookies.refresh_token,r=e.cookies.id_token,s=r?(0,g.iU)(r):void 0,u=e.cookies.auth_provider,h=e.cookies.client_id,k=(null==(I=t.locals)||null==(b=I.featureFlags)?void 0:b[m.JnH])===!0,f=X({authProvider:u,clientIdFromCookie:h,refreshToken:i,isAuth0Enabled:k}),w=M({authProviderCookie:u,clientIdFromCookie:h,refreshToken:i,isAuth0Enabled:k});("auth0"===u||i&&!z(i)&&k)&&!O.$.nextAuth.auth0.clientId&&(0,(await Promise.all([n.e(39285),n.e(13487)]).then(n.bind(n,813487))).logger)().warn({message:"Auth0 indicated but Auth0 clientId not configured; falling back to Cognito",authProviderCookie:u,isAuth0Enabled:k,tokenLooksLikeCognito:i?z(i):void 0,clientIdFromCookie:h,hasRefreshToken:!!i});var y=null==s?void 0:s.aud,A=Array.isArray(y)?y[0]:y,x=A===O.$.impersonatorAudience,_=f===O.$.nextAuth.urls.auth0.token?O.$.nextAuth.auth0.clientId:O.$.nextAuth.cognito.clientId,S=e.cookies.client_id||(x?void 0:A)||_,j=await L({refreshToken:i||"",domain:(0,g.yy)(e),setHeader:t.setHeader.bind(t),token:a,clientId:S,tokenEndpoint:f});if(j.e){(0,(await Promise.all([n.e(39285),n.e(13487)]).then(n.bind(n,813487))).logger)().error({message:"Error refreshing token",userAgent:e.headers["user-agent"],clientId:S,authProvider:w,tokenEndpoint:f,hasIdTokenCookie:+!!e.cookies.id_token,idTokenExpiresAt:a.itexp,refreshTokenExpiresAt:a.rtexp,hasRefreshTokenCookie:+!!e.cookies.refresh_token,errorMessage:j.e,err:j.originalError});var b,I,T,N,U,P,E=(await n.e(21383).then(n.bind(n,243764))).metrics;null!=o||(o=E.getMeter("git.naspersclassifieds.com/olxeu/motors/services/optimus-web").createCounter("optimus.refreshToken.error")),o.add(1,{userAgent:e.headers["user-agent"]||"",clientId:S,authProvider:w,tokenEndpoint:f,hasIdToken:!!e.cookies.id_token,hasIdTokenExpired:!!a.itexp&&a.itexp<Date.now()/1e3,hasRefreshTokenExpired:!!a.rtexp&&a.rtexp<Date.now()/1e3,hasRefreshTokenCookie:!!e.cookies.refresh_token}),j.e===v.k_&&void 0===e.cookies.id_token&&void 0!==a.itexp&&!function(e,t){var n,o,a;null==(n=l.u.getSpan(c._.active()))||n.addEvent(e,t),(o="olx.optimus.server.event",!(a=p.get(o))&&(a=d.createCounter(o),p.set(o,a)),a).add(1,{"event.name":e})}("OptimusSessionTokenWithoutIdRefreshTokens",{userId:null!=(T=a.id)?T:"",idTokenExpiryTimestamp:a.itexp,refreshTokenExpiryTimestamp:null!=(N=a.rtexp)?N:"",userType:null!=(U=a.ut)?U:"",userAgent:null!=(P=e.headers["user-agent"])?P:""})}return j},K=(e,t)=>(0,i._)((0,a._)({},B),{cookies:(e=>{var t=(0,g.yy)(e);return t.startsWith("optimus-web-preview-")&&B.cookies?Object.fromEntries(Object.entries(B.cookies).map(e=>{var n=(0,s._)(e,2),o=n[0],r=n[1];return"domain"in r.options?[o,(0,i._)((0,a._)({},r),{options:(0,i._)((0,a._)({},r.options),{domain:t})})]:[o,r]})):B.cookies})(e),logger:F,events:{async signOut(){await q(e,t)}},callbacks:{redirect(e){var t,n=e.url,o=e.baseUrl;if(n.startsWith("/"))return _(null!=(t=n.split("?")[0])?t:n)?S(o,n):"".concat(o).concat(n);try{var a=new URL(n);if(a.origin===new URL(o).origin){if(_(a.pathname))return S(o,n);return n}}catch(e){}return o},signIn:async n=>(((e,t,n)=>{if(null==n?void 0:n.id_token){var o=(0,g.yy)(e),a=[],i=(e=>{var t=e.accountProvider,n=e.refreshToken,o=(e=>"hciam"===e?"cognito":"hciam-auth0"===e?"auth0":void 0)(t);return o||(z(n)?"cognito":"auth0")})({accountProvider:n.provider,refreshToken:n.refresh_token}),r=O.$.nextAuth[i].clientId;a.push("id_token=".concat(n.id_token,"; Domain=.").concat(o,"; Path=/; Max-Age=").concat(v.eb,"; HttpOnly; Secure; SameSite=Lax"),"".concat(v.O9,"=").concat(i,"; Domain=.").concat(o,"; Path=/; Max-Age=").concat(v.i$,"; Secure; SameSite=Lax")),r&&a.push("client_id=".concat(r,"; Domain=.").concat(o,"; Path=/; Max-Age=").concat(v.i$,"; Secure; HttpOnly; SameSite=Lax")),n.refresh_token&&a.push("refresh_token=".concat(n.refresh_token,"; Domain=.").concat(o,"; Path=/; Max-Age=").concat(v.i$,"; Secure; HttpOnly; SameSite=Lax")),null==t||t.setHeader("Set-Cookie",a)}})(e,t,n.account),!0),async jwt(o){var s,u,l=o.token,c=o.account,d=o.trigger,p=o.session;l.it,l.r;var m=(0,r._)(l,["it","r"]),h=!1;try{var k,f=(await n.e(81972).then(n.t.bind(n,881972,23))).default.requestContext;h=!!(null==f||null==(k=f.get)?void 0:k.call(f,"refreshUserInfoCache"))}catch(e){}if((null==l?void 0:l.error)===v.Np||(null==l?void 0:l.error)===v.k_)return{error:l.error};if("update"===d)return(0,i._)((0,a._)({},l),{fn:(null==p?void 0:p.givenName)||l.fn,ln:(null==p?void 0:p.familyName)||l.ln,cfn:(null==p?void 0:p.givenName)||l.cfn,cln:(null==p?void 0:p.familyName)||l.cln,pid:(null==p?void 0:p.pictureId)||l.pid,as:(null==p?void 0:p.accountStatus)||l.as,sr:null!=(s=null==p?void 0:p.suspendReason)?s:l.sr});if(c){var w=new Date().getTime()+1e3*v.i$,y=(0,g.iU)(c.id_token);e.cookies.id_token=c.id_token;try{var A=await C(c.id_token),x=A.userType,_=A.id,S=A.email,j=A.firstName,b=A.lastName,I=A.displayName,T=A.accountStatus,N=A.suspendReason,U=A.currentUserAccountGivenName,P=A.currentUserAccountFamilyName,E=A.pictureId,$=A.hasDealerships,R=A.accountType;return{itexp:y.exp||0,rtexp:w,ut:x,id:_,em:S,fn:j,ln:b,dn:I,as:T,sr:N,cfn:U,cln:P,pid:E,at:R,hd:+!!$,uiv:v.IG}}catch(e){return{itexp:y.exp||0,rtexp:w}}}var L=(0,g.iU)(null!=(u=e.cookies.id_token)?u:""),z=e.cookies.id_token&&O.$.impersonatorAudience===L.aud&&Date.now()<1e3*(L.exp||0),M=!!(l.itexp&&Date.now()<1e3*l.itexp),H=!!(e.cookies.id_token&&M),q=W(e.cookies,l),F=!!(h&&M&&q);if(H||z||F){if(h&&q){var G=await C(q),V=G.userType,B=G.id,X=G.email,K=G.firstName,Q=G.lastName,Y=G.displayName,Z=G.accountStatus,ee=G.suspendReason,et=G.currentUserAccountGivenName,en=G.currentUserAccountFamilyName,eo=G.pictureId,ea=G.hasDealerships,ei=G.accountType;return(0,i._)((0,a._)({},m),{ut:null!=V?V:l.ut,id:null!=B?B:l.id,em:X,fn:K,ln:Q,dn:Y,as:Z,sr:ee,cfn:et,cln:en,pid:eo,at:null!=ei?ei:l.at,hd:+!!ea,uiv:v.IG})}if(m.uiv!==v.IG||D()&&null==m.at)try{var er=W(e.cookies,l);if(!er)return(0,a._)({},m);var es=await C(er),eu=es.userType,el=es.id,ec=es.email,ed=es.firstName,ep=es.lastName,em=es.displayName,eh=es.accountStatus,ek=es.suspendReason,ev=es.currentUserAccountGivenName,eg=es.currentUserAccountFamilyName,ef=es.pictureId,ew=es.hasDealerships,ey=es.accountType;return(0,i._)((0,a._)({},m),{ut:null!=eu?eu:l.ut,id:null!=el?el:l.id,em:ec,fn:ed,ln:ep,dn:em,as:eh,sr:ek,cfn:ev,cln:eg,pid:ef,at:null!=ey?ey:m.at,hd:+!!ew,uiv:v.IG})}catch(e){}return(0,a._)({},m)}var eA=await J(e,t,l),ex=eA.it,e_=(eA.rt,(0,r._)(eA,["it","rt"]));if(!ex)return e_;e.cookies.id_token=ex;var eS=await C(ex),ej=eS.userType,eb=eS.id,eI=eS.email,eT=eS.firstName,eN=eS.lastName,eU=eS.displayName,eP=eS.accountStatus,eE=eS.suspendReason,e$=eS.currentUserAccountGivenName,eD=eS.currentUserAccountFamilyName,eC=eS.pictureId,eO=eS.hasDealerships,eR=eS.accountType;return(0,i._)((0,a._)({},e_),{ut:ej,id:eb,em:eI,fn:eT,ln:eN,dn:eU,as:eP,sr:eE,cfn:e$,cln:eD,pid:eC,at:null!=eR?eR:l.at,hd:+!!eO,uiv:v.IG})},async session(t){var n,o,r,s=t.session,u=t.token,l=(e=>{if(e){let t;return{userType:1===(t=e.ut)||"1"===t||"PROFESSIONAL"===t?"PROFESSIONAL":2===t||"2"===t||"PRIVATE"===t?"PRIVATE":null,idTokenExpiresAt:e.itexp,error:e.e,id:e.id}}})(u),c=(e=>{if(!e)return{};var t=(0,g.iU)(e||""),n=(0,w.zw)(t),o=n.mainAccountUUID,a=n.userUUID,i=(0,f.u)(t).isMainAccount;return{email:t["".concat(v.ri)],mainAccountUUID:o,userUUID:a,isMainAccount:i}})(e.cookies.id_token),d=c.email||u.em||"",p=u.cln||u.ln||"",m=u.cfn||u.fn||"",y=u.dn||"",A=u.as||"",x=null!=(n=u.sr)?n:null;return(0,i._)((0,a._)({},s),{idToken:e.cookies.id_token,idTokenExpiresAt:null==l?void 0:l.idTokenExpiresAt,error:null==l?void 0:l.error,user:{id:null==l?void 0:l.id,pictureId:u.pid,email:d,familyName:p,givenName:m,userUUID:c.userUUID,userType:null!=(o=null==l?void 0:l.userType)?o:null,displayName:(0,h.J)(null==l?void 0:l.userType)?m:y,accountStatus:A,suspendReason:x,hasDealerships:1===u.hd,accountType:D()&&null!=(r=(0,k.CV)(u.at))?r:void 0},multiUser:u.multiuser?(0,a._)({},u.multiuser):c.mainAccountUUID?{isMainAccount:c.isMainAccount,mainAccountUUID:c.mainAccountUUID}:null})}}})},497569:()=>{},610196:e=>{"use strict";e.exports=JSON.parse('{"advert-pathname":"/osobowe/oferta","car-valuation":"/wycena-samochodu","market-data":"/mojekonto/shop/market-data","cluster-detail":"/mojekonto/shop/market-data/cluster","appraisal-tool":"/mojekonto/kupuj/wyceny","sourcing-tool":"/professionals-listing","overview":"/mojekonto/przeglad/","preferences":"/mojekonto/preferences","user-administration":"/mojekonto/user-a
1dministration","parts-settings":"/mojekonto/platnosc-i-dostawa","subscriptions":"/mojekonto/subscriptions/overview","subscriptions-overview":"/mojekonto/subscriptions/overview","subscriptions-benefits":"/mojekonto/subscriptions/benefits","statistics":"/mojekonto/statystyki","active-ads":"/mojekonto/active","waiting-ads":"/mojekonto/waiting","archived-ads":"/mojekonto/archive","moderated-ads":"/mojekonto/moderated","draft-ads":"/mojekonto/draft","messages":"/mojekonto/messages","financing-leads":"/mojekonto/financing-leads","new-cars-leads":"/mojekonto/new-cars-leads","selling":"/mojekonto/messages/selling","buying":"/mojekonto/messages/buying","archived":"/mojekonto/messages/archived","inventory-management":"/mojekonto/inventory-management","leads":"/mojekonto/leads","leads-management":"/mojekonto/leads-management","leads-from-favs":"/mojekonto/favorite-leads","calls":"/mojekonto/calls","payments":"/mojekonto/newinvoices","dealerWallet":"/mojekonto/dealerwallet","invoices":"/mojekonto/newinvoices","credits":"/mojekonto/operacjenasrodkach","private-history":"/mojekonto/portfel","wallet-top-up":"/mojekonto/doladowaniesrodkow","reviews":"/mojekonto/opinii","reviews-ask-for-reviews-tab":"/mojekonto/opinii/qrcode","inactiveAds":"/mojekonto/archive","favorites":"/obserwowane","saved-searches":"/twoje-obserwowane-wyszukiwania","professional-saved-searches":"/twoje-asystent-obserwowane-wyszukiwania","account":"/mojekonto/","accountOverview":"/mojekonto/przeglad/","authentication":"/authentication","logout":"/konto/wyloguj/","signUp":"/konto/rejestracja","signUpAsDealer":"/konto/rejestracja-dealer","upgradePackage":"/mojekonto/wybierzpakiety","messageDetail":"/mojekonto/odpowiedz-na-ogloszenie","postingForm":"/nowe-ogloszenie","editAd":"/nowe-ogloszenie/edit","wallet":"/mojekonto/portfel","invoice":"/mojekonto/invoice","einvoice":"/mojekonto/einvoice","dealerInvoices":"/mojekonto/invoices","calltracking":"/mojekonto/calltracking","insights":"/mojekonto/insights","carBuyingRedirect":"/redirect/321sprzedane/","selectCategory":"/nowe-ogloszenie/selectcategory","changepackage":"/mojekonto/changepackage","newpayment":"/platnosci/new-payment","oldPayment":"/platnosci/multipay","benefitCenter":"/mojekonto/subscriptions","dealerRatings":"/shop/reviews/","postAd":"/osobowe/nowe-ogloszenie","packageComparison":"/mojekonto/package-comparison","newRoutePayment":"/platnosci/payment","listing":"/osobowe","financing-flow":"/finansowanie","partner-financing-flow":"/finansowanie/partnera","dealer-financing-flow":"/finansowanie/dealera","financing-redirect":"/finansowanie/redirect","menu":"/menu","dashboard":"/mojekonto/dashboard","business-information":"/mojekonto/preferences#business-information","dealership-services":"/mojekonto/preferences#dealership-services","profile-information":"/mojekonto/profile","notifications":"/mojekonto/preferences#notifications","request-personal-data":"/mojekonto/preferences#request-personal-data","mobile-account":"/menu","post-login":"/post-login","dealerships":"/mojekonto/dealerships","business-restricted-access":"/mojekonto/business-restricted-access","pending-approval":"/mojekonto/pending-approval","ai-video":"/mojekonto/ai-video","financing-management":"/mojekonto/financing-management","financing-configurator":"/mojekonto/financing-configurator"}')},952468:(e,t,n)=>{"use strict";n.d(t,{CV:()=>r,kv:()=>i});var o={PRIVATE:1,DEALERSHIP:2,BUSINESS:3},a={1:"PRIVATE",2:"DEALERSHIP",3:"BUSINESS"},i=e=>{if(!e)return 0;if("number"==typeof e)return a[e]?e:0;var t=(e=>{if(!e)return null;var t=e.toUpperCase();return"PRIVATE"===t||"DEALERSHIP"===t||"BUSINESS"===t?t:null})(e);return t?o[t]:0},r=e=>{var t;return null==e||0===e?null:null!=(t=a[e])?t:null}}}]);
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.