PageSourceSearch

https://statics.otomoto.pl/optimus-storage/s/v2/_next/static/chunks/47635-e9351790c03a7c31.js

js otomoto.pl collected 2026-10-02 03:54:44 UTC 41,737 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="2997d350-bdd8-4619-aa02-fcb68d6d2f12",e._sentryDebugIdIdentifier="sentry-dbid-2997d350-bdd8-4619-aa02-fcb68d6d2f12")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47635],{47635:(e,r,t)=>{t.d(r,{JN:()=>p.J,C1:()=>C,XT:()=>u.X,dC:()=>I,Ll:()=>ep,Bd:()=>i.B});var i=t(971668),a=t(300561),l=t(819470),n=t(558162),c=t(271864),s=t(119218),o=t(12013),d=t(527429),m=t(599202),h=t(138209),p=t(285160),u=t(827656),v=t(641973),f={below:(0,c.Y)("path",{"data-testid":"draw-below",d:"M.006 95.407C-.126 97.933 1.912 100 4.48 100h72.957a6.25 6.25 0 005.256-9.632l-39.85-61.935c-1.394-2.168-4.36-2.7-6.45-1.169C20.818 38.671 1.4 68.816.005 95.407z"}),in:(0,c.Y)("path",{"data-testid":"draw-in",d:"M105.212 80.16l38.54-62.867c1.411-2.301.587-5.365-1.754-6.59C128.089 3.427 114.914 0 100.103 0 85.237 0 70.332 3.391 57.829 10.653c-2.217 1.288-2.947 4.25-1.589 6.483l38.303 63.005a6.25 6.25 0 0010.67.02z"}),above:(0,c.Y)("path",{"data-testid":"draw-above",d:"M199.994 95.407c.132 2.526-1.905 4.593-4.473 4.593h-72.957a6.25 6.25 0 01-5.256-9.632l39.85-61.935c1.394-2.168 4.361-2.7 6.45-1.169 15.574 11.407 34.993 41.552 36.386 68.143z"})},g=(0,s.F)()?e=>{var r,t,i,a,l,n,s,d,m,h=(0,o.c)(18),u=e.evaluation,g=e.siteCode,Y=void 0===u?p.J.NONE:u,b=void 0===g?v.env.SITE_CODE||"otomotopl":g,y=Y.toLowerCase();h[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,c.Y)("path",{stroke:"var(--colorsForegroundSecondary)",fill:"none",strokeWidth:2,d:"M37,28.1c0.8-0.6,1.8-0.8,2.7-0.6c0.9,0.2,1.8,0.7,2.3,1.5l0,0l39.8,61.9c0.5,0.8,0.8,1.8,0.8,2.8 c0,1.4-0.6,2.8-1.5,3.7c-1,1-2.3,1.5-3.7,1.5l0,0h-73c-1,0-1.9-0.4-2.5-1.1c-0.6-0.6-1-1.5-0.9-2.5C2.4,69.2,21.6,39.4,37,28.1z M100.1,1c14.6,0,27.7,3.4,41.4,10.6c0.9,0.5,1.5,1.3,1.8,2.3c0.3,1,0.1,2-0.4,2.9l0,0 l-38.5,62.9c-0.4,0.7-1,1.3-1.7,1.7c-1.2,0.8-2.7,0.9-4,0.6c-1.3-0.3-2.5-1.1-3.2-2.4l0,0l-38.3-63c-0.5-0.9-0.7-1.9-0.4-2.8 c0.2-0.9,0.8-1.8,1.7-2.3C70.7,4.3,85.4,1,100.1,1z M160.3,27.4c0.9-0.2,1.9,0,2.7,0.6c15.4,11.3,34.6,41.1,36,67.4c0.1,1-0.3,1.8-0.9,2.5 c-0.6,0.7-1.5,1.1-2.5,1.1l0,0h-73c-1.4,0-2.8-0.6-3.7-1.5c-1-1-1.5-2.3-1.5-3.7c0-1,0.3-2,0.8-2.8l0,0L158,29 C158.5,28.1,159.4,27.6,160.3,27.4z"}),h[0]=r):r=h[0];var w=f[y];
1return h[1]!==w?(t=(0,c.Y)("g",{"data-testid":"filling",fill:"currentColor",children:w}),h[1]=w,h[2]=t):t=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,c.FD)("defs",{children:[(0,c.FD)("filter",{id:"prefix__a",width:"189.3%",height:"189.3%",x:"-44.6%",y:"-41.1%",children:[(0,c.Y)("feOffset",{dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,c.Y)("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:8}),(0,c.Y)("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0.00784313725 0 0 0 0 0.0117647059 0 0 0 0 0.0352941176 0 0 0 0.32 0"})]}),(0,c.Y)("circle",{id:"prefix__b",cx:100,cy:100,r:28})]}),a=(0,c.Y)("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),h[3]=i,h[4]=a):(i=h[3],a=h[4]),h[5]!==b?(l="otomotopl"===b&&(0,c.FD)("g",{"data-testid":"otomotopl",children:[(0,c.Y)("circle",{cx:28,cy:28,r:28,fill:"#FFF"}),(0,c.Y)("path",{fill:"var(--color-red-tint-dark)",d:"M16.63 39.311c-6.177-6.245-6.174-16.4.015-22.636 6.189-6.24 16.251-6.23 22.429.012l-5.6 5.644a7.906 7.906 0 00-11.233-.006c-3.099 3.124-3.102 8.209-.009 11.336L16.63 39.31z"}),(0,c.Y)("path",{fill:"#142355",d:"M39.079 16.69c6.18 6.243 6.18 16.398-.009 22.634-6.192 6.238-16.251 6.235-22.432-.011l5.6-5.647a7.906 7.906 0 0011.236.008c3.096-3.125 3.102-8.211.006-11.336l5.599-5.647z"})]}),h[5]=b,h[6]=l):l=h[6],h[7]!==b?(n="carspt"===b&&(0,c.FD)("g",{"data-testid":"carspt",children:[(0,c.Y)("circle",{cx:28,cy:28,r:28,fill:"var(--color-background-accent)"}),(0,c.Y)("path",{fill:"#FFF",d:"M28 10c9.942 0 18 8.059 18 18 0 9.94-8.058 18-18 18-9.94 0-18-8.06-18-18 0-9.941 8.06-18 18-18zm-.014 4.082c-7.692 0-13.929 6.237-13.929 13.932 0 7.694 6.237 13.93 13.929 13.93 7.693 0 13.93-6.236 13.93-13.93 0-7.695-6.237-13.932-13.93-13.932zm.06 1.829c2.248 0 3.343.6 3.343.6 2.879 4.582 6.04 14.016 6.64 18.497-.322 1.04-2.286 3.282-4.316 4.138l-.99-3.299s-2.012-.775-4.677-.775c-2.799 0-4.674.775-4.674.775l-.992 3.299c-2.03-.856-3.991-3.098-4.315-4.138.6-4.481 3.76-13.915 6.64-18.498 0 0 1.374-.6 3.341-.6zm0 5.876c-2.562 3.621-4.016 8.937-4.016 8.937s1.633-.554 4.016-.554c2.612 0 4.018.554 4.018.554s-1.454-5.316-4.018-8.937z"})]}),h[7]=b,h[8]=n):n=h[8],h[9]!==b?(s="autovitro"===b&&(0,c.FD)("g",{"data-testid":"autovitro",children:[(0,c.Y)("path",{fill:"#142355",d:"M47.898 8.3C36.964-2.633 19.235-2.633 8.301 8.3c-10.935 10.935-10.935 28.664 0 39.598L47.898 8.301z"}),(0,c.Y)("path",{fill:"var(--color-red-tint-dark)",d:"M8.2 47.797c10.934 10.935 28.663 10.935 39.597 0 10.935-10.934 10.935-28.663 0-39.598L29.248 26.75c-.434.434-1.15-.448-1.548-.049-.399.399-.517 2.114-.952 2.548L8.2 47.798z"}),(0,c.Y)("path",{fill:"#FFF",d:"M27.723 27l2.676 6.095h-5.273l2.597-6.094zm5.705 13h6.994L28.244 14.198c-.111-.264-.335-.264-.446 0L15.578 40h6.616l.759-1.75h9.692l.783 1.75z"})]}),h[9]=b,h[10]=s):s=h[10],h[11]!==s||h[12]!==l||h[13]!==n?(d=(0,c.FD)("g",{"data-testid":"site-logo",fill:"none",fillRule:"evenodd",transform:"translate(72 72)",children:[l,n,s]}),h[11]=s,h[12]=l,h[13]=n,h[14]=d):d=h[14],h[15]!==d||h[16]!==t?(m=(0,c.FD)(c.FK,{children:[r,t,i,a,d]}),h[15]=d,h[16]=t,h[17]=m):m=h[17],m}:e=>{var r=e.evaluation,t=void 0===r?p.J.NONE:r,i=e.siteCode,a=void 0===i?v.env.SITE_CODE||"otomotopl":i,l=t.toLowerCase();return(0,c.FD)(c.FK,{children:[(0,c.Y)("path",{stroke:"var(--colorsForegroundSecondary)",fill:"none",strokeWidth:2,d:"M37,28.1c0.8-0.6,1.8-0.8,2.7-0.6c0.9,0.2,1.8,0.7,2.3,1.5l0,0l39.8,61.9c0.5,0.8,0.8,1.8,0.8,2.8 c0,1.4-0.6,2.8-1.5,3.7c-1,1-2.3,1.5-3.7,1.5l0,0h-73c-1,0-1.9-0.4-2.5-1.1c-0.6-0.6-1-1.5-0.9-2.5C2.4,69.2,21.6,39.4,37,28.1z M100.1,1c14.6,0,27.7,3.4,41.4,10.6c0.9,0.5,1.5,1.3,1.8,2.3c0.3,1,0.1,2-0.4,2.9l0,0 l-38.5,62.9c-0.4,0.7-1,1.3-1.7,1.7c-1.2,0.8-2.7,0.9-4,0.6c-1.3-0.3-2.5-1.1-3.2-2.4l0,0l-38.3-63c-0.5-0.9-0.7-1.9-0.4-2.8 c0.2-0.9,0.8-1.8,1.7-2.3C70.7,4.3,85.4,1,100.1,1z M160.3,27.4c0.9-0.2,1.9,0,2.7,0.6c15.4,11.3,34.6,41.1,36,67.4c0.1,1-0.3,1.8-0.9,2.5 c-0.6,0.7-1.5,1.1-2.5,1.1l0,0h-73c-1.4,0-2.8-0.6-3.7-1.5c-1-1-1.5-2.3-1.5-3.7c0-1,0.3-2,0.8-2.8l0,0L158,29 C158.5,28.1,159.4,27.6,160.3,27.4z"}
1),(0,c.Y)("g",{"data-testid":"filling",fill:"currentColor",children:f[l]}),(0,c.FD)("defs",{children:[(0,c.FD)("filter",{id:"prefix__a",width:"189.3%",height:"189.3%",x:"-44.6%",y:"-41.1%",children:[(0,c.Y)("feOffset",{dy:2,in:"SourceAlpha",result:"shadowOffsetOuter1"}),(0,c.Y)("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:8}),(0,c.Y)("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0.00784313725 0 0 0 0 0.0117647059 0 0 0 0 0.0352941176 0 0 0 0.32 0"})]}),(0,c.Y)("circle",{id:"prefix__b",cx:100,cy:100,r:28})]}),(0,c.Y)("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),(0,c.FD)("g",{"data-testid":"site-logo",fill:"none",fillRule:"evenodd",transform:"translate(72 72)",children:["otomotopl"===a&&(0,c.FD)("g",{"data-testid":"otomotopl",children:[(0,c.Y)("circle",{cx:28,cy:28,r:28,fill:"#FFF"}),(0,c.Y)("path",{fill:"var(--color-red-tint-dark)",d:"M16.63 39.311c-6.177-6.245-6.174-16.4.015-22.636 6.189-6.24 16.251-6.23 22.429.012l-5.6 5.644a7.906 7.906 0 00-11.233-.006c-3.099 3.124-3.102 8.209-.009 11.336L16.63 39.31z"}),(0,c.Y)("path",{fill:"#142355",d:"M39.079 16.69c6.18 6.243 6.18 16.398-.009 22.634-6.192 6.238-16.251 6.235-22.432-.011l5.6-5.647a7.906 7.906 0 0011.236.008c3.096-3.125 3.102-8.211.006-11.336l5.599-5.647z"})]}),"carspt"===a&&(0,c.FD)("g",{"data-testid":"carspt",children:[(0,c.Y)("circle",{cx:28,cy:28,r:28,fill:"var(--color-background-accent)"}),(0,c.Y)("path",{fill:"#FFF",d:"M28 10c9.942 0 18 8.059 18 18 0 9.94-8.058 18-18 18-9.94 0-18-8.06-18-18 0-9.941 8.06-18 18-18zm-.014 4.082c-7.692 0-13.929 6.237-13.929 13.932 0 7.694 6.237 13.93 13.929 13.93 7.693 0 13.93-6.236 13.93-13.93 0-7.695-6.237-13.932-13.93-13.932zm.06 1.829c2.248 0 3.343.6 3.343.6 2.879 4.582 6.04 14.016 6.64 18.497-.322 1.04-2.286 3.282-4.316 4.138l-.99-3.299s-2.012-.775-4.677-.775c-2.799 0-4.674.775-4.674.775l-.992 3.299c-2.03-.856-3.991-3.098-4.315-4.138.6-4.481 3.76-13.915 6.64-18.498 0 0 1.374-.6 3.341-.6zm0 5.876c-2.562 3.621-4.016 8.937-4.016 8.937s1.633-.554 4.016-.554c2.612 0 4.018.554 4.018.554s-1.454-5.316-4.018-8.937z"})]}),"autovitro"===a&&(0,c.FD)("g",{"data-testid":"autovitro",children:[(0,c.Y)("path",{fill:"#142355",d:"M47.898 8.3C36.964-2.633 19.235-2.633 8.301 8.3c-10.935 10.935-10.935 28.664 0 39.598L47.898 8.301z"}),(0,c.Y)("path",{fill:"var(--color-red-tint-dark)",d:"M8.2 47.797c10.934 10.935 28.663 10.935 39.597 0 10.935-10.934 10.935-28.663 0-39.598L29.248 26.75c-.434.434-1.15-.448-1.548-.049-.399.399-.517 2.114-.952 2.548L8.2 47.798z"}),(0,c.Y)("path",{fill:"#FFF",d:"M27.723 27l2.676 6.095h-5.273l2.597-6.094zm5.705 13h6.994L28.244 14.198c-.111-.264-.335-.264-.446 0L15.578 40h6.616l.759-1.75h9.692l.783 1.75z"})]})]})]})},Y="var(--color-background-accent)",b=e=>"badge"===e?{viewBox:"0 0 32 16",height:"0.5em"}:{viewBox:"0 0 200 128",height:"0.69em",preserveAspectRatio:"xMidYMin meet"},y=(0,s.F)()?e=>{var r,t,i,n,s=(0,o.c)(14),d=e.children,m=e.evaluation,h=e.size,p=e.variant,u=e.className,v=e.style,f=e.color;s[0]!==m?(r=null==m?void 0:m.toLowerCase(),s[0]=m,s[1]=r):r=s[1];var g=r,y="pe_icon_".concat(p,"_").concat(g||"none"),w=f&&"background-brand-tooltip"!==f?f:Y;return s[2]!==h||s[3]!==v||s[4]!==w?(t=(0,l._)((0,a._)({},v),{fontSize:h,color:w}),s[2]=h,s[3]=v,s[4]=w,s[5]=t):t=s[5],s[6]!==p?(i=b(p),s[6]=p,s[7]=i):i=s[7],s[8]!==d||s[9]!==u||s[10]!==y||s[11]!==t||s[12]!==i?(n=(0,c.Y)("svg",(0,l._)((0,a._)({"data-testid":y,className:u,style:t,width:"1em"},i),{children:d})),s[8]=d,s[9]=u,s[10]=y,s[11]=t,s[12]=i,s[13]=n):n=s[13],n}:e=>{var r=e.children,t=e.evaluation,i=e.size,n=e.variant,s=e.className,o=e.style,d=e.color,m=null==t?void 0:t.toLowerCase();return(0,c.Y)("svg",(0,l._)((0,a._)({"data-testid":"pe_icon_".concat(n,"_").concat(m||"none"),className:s,style:(0,l._)((0,a._)({},o),{fontSize:i,color:d&&"background-brand-tooltip"!==d?d:Y}),width:"1em"},b(n)),{children:r}))},w=t(641973),x=(e,r)=>{switch(r){case p.J.BELOW:return e("pe-badge-bubble-label-below");case p.J.ABOVE:return e("pe-badge-bubble-label-above");case p.J.IN:return e("pe-badge-bubble-label-in");default:return e("pe-badge-bubble-label-none")}},N=(e,r)=>{switch(r){case p.J.BELOW:return e("pes-indicator-below");case p.J.ABOVE:return e("pes-indicator-above");case p.J.IN:return e("pes-indicator-average");default:return e("pes-indicator-none")}},_=(e,r)=>{switch(r){case p.J.BELOW:return e("pes-indicator-below-short");case p.J.ABOVE:return e("pes-indicator-above-short");case p.J.IN:return e("pes-indicator-average-short");case p.J.LOADING:return e("pes-indicator-loading-short");default:return e("pes-indicator-none-short")}},C=(0,s.F)()?e=>{var r,t,s,h,v,f,Y,b,C,F,D,E,z,P,B,L,O,M,K,k,S,A=(0,o.c)(54);A[0]!==e?(h=(0,n._)(e,["evaluation","variant","className","tooltip","siteCode","style","color","Badge","size"]),s=e.evaluation,f=e.variant,Y=e.className,b=e.tooltip,C=e.siteCode,v=e.style,t=e.color,r=e.Badge,F=e.size,A[0]=e,A[1]=r,A[2]=t,A[3]=s,A[4]=h,A[5]=v,A[6]=f,A[7]=Y,A[8]=b,A[9]=C,A[10]=F):(r=A[1],t=A[2],s=A[3],h=A[4],v=A[5],f=A[6],Y=A[7],b=A[8],C=A[9],F=A[10]);var I=void 0===f?"badge":f,J=void 0===Y?"":Y,T=void 0!==b&&b,H=void 0===C?w.env.SITE_CODE||"otomotopl":C,q=void 0===F?"24px":F,j=(0,i.B)().t;A[11]!==r||A[12]!==s||A[13]!==I?(D="badge"===I&&(r?(0,c.Y)(r,{}):(0,c.Y)(u.X,{evaluation:s})),A[11]=r,A[12]=s,A[13]=I,A[14]=D):D=A[14],A[15]!==s||A[16]!==H||A[17]!==I?(E="full"===I&&(0,c.Y)(g,{evaluation:s,siteCode:H}),A[15]=s,A[16]=H,A[17]=I,A[18]=E):E=A[18],A[19]!==t||A[20]!==s||A[21]!==H||A[22]!==q||A[23]!==v||A[24]!==D||A[25]!==E||A[26]!==T||A[27]!==I?(z=(0,
1c.FD)(y,{evaluation:s,size:q,variant:I,style:v,tooltip:T,siteCode:H,color:t,children:[D,E]}),A[19]=t,A[20]=s,A[21]=H,A[22]=q,A[23]=v,A[24]=D,A[25]=E,A[26]=T,A[27]=I,A[28]=z):z=A[28];var G=z;if(!T)return A[29]!==G?(P=()=>G,A[29]=G,A[30]=P):P=A[30],A[31]!==s||A[32]!==j?(B=N(j,s),A[31]=s,A[32]=j,A[33]=B):B=A[33],A[34]!==h||A[35]!==B||A[36]!==P?(L=(0,c.Y)(m.lZ,(0,l._)((0,a._)({className:"flex w-full items-center overflow-hidden px-200 py-100 [&_p]:leading-[120%] [&_svg]:mr-200",variant:"positive",prefix:P},h),{children:B})),A[34]=h,A[35]=B,A[36]=P,A[37]=L):L=A[37],L;var V="mt-100 flex flex-row items-center justify-end md:mt-0 ".concat(J),U=s===p.J.LOADING;return A[38]!==s||A[39]!==j?(O=x(j,s),A[38]=s,A[39]=j,A[40]=O):O=A[40],A[41]!==G||A[42]!==U||A[43]!==O?(M=(0,c.Y)(d.m,{useDefaultTrigger:!1,disabled:U,showOnCreate:!1,placement:"top",trigger:"mouseenter",content:O,children:G}),A[41]=G,A[42]=U,A[43]=O,A[44]=M):M=A[44],A[45]!==s||A[46]!==j?(K=_(j,s),A[45]=s,A[46]=j,A[47]=K):K=A[47],A[48]!==K?(k=(0,c.Y)(m.P3,{className:"font-normal mr-0 ml-50 text-p3 max-sm:whitespace-normal",children:K}),A[48]=K,A[49]=k):k=A[49],A[50]!==M||A[51]!==k||A[52]!==V?(S=(0,c.FD)("div",{className:V,children:[M,k]}),A[50]=M,A[51]=k,A[52]=V,A[53]=S):S=A[53],S}:e=>{var r=e.evaluation,t=e.variant,s=void 0===t?"badge":t,o=e.className,h=e.tooltip,v=void 0!==h&&h,f=e.siteCode,Y=void 0===f?w.env.SITE_CODE||"otomotopl":f,b=e.style,C=e.color,F=e.Badge,D=e.size,E=(0,n._)(e,["evaluation","variant","className","tooltip","siteCode","style","color","Badge","size"]),z=(0,i.B)().t,P=(0,c.FD)(y,{evaluation:r,size:void 0===D?"24px":D,variant:s,style:b,tooltip:v,siteCode:Y,color:C,children:["badge"===s&&(F?(0,c.Y)(F,{}):(0,c.Y)(u.X,{evaluation:r})),"full"===s&&(0,c.Y)(g,{evaluation:r,siteCode:Y})]});return v?(0,c.FD)("div",{className:"mt-100 flex flex-row items-center justify-end md:mt-0 ".concat(void 0===o?"":o),children:[(0,c.Y)(d.m,{useDefaultTrigger:!1,disabled:r===p.J.LOADING,showOnCreate:!1,placement:"top",trigger:"mouseenter",content:x(z,r),children:P}),(0,c.Y)(m.P3,{className:"font-normal mr-0 ml-50 text-p3 max-sm:whitespace-normal",children:_(z,r)})]}):(0,c.Y)(m.lZ,(0,l._)((0,a._)({className:"flex w-full items-center overflow-hidden px-200 py-100 [&_p]:leading-[120%] [&_svg]:mr-200",variant:"positive",prefix:()=>P},E),{children:N(z,r)}))},F=t(698319),D=t(758275),E=t.n(D),z=t(383055),P=(0,t(346686).UG)("\n  query priceEvaluationWithGrossPrice(\n    $netPrice: DecimalScalar!\n    $vehicleParams: VehicleParams!\n  ) {\n    viewer {\n      grossPrice(netPrice: $netPrice) {\n        gross\n      }\n    }\n    priceEvaluationOnDemand(vehicleParams: $vehicleParams) {\n      ... on PriceEvaluationOnDemand {\n        absPercentageError\n        prediction\n        lower\n        higher\n      }\n    }\n  }\n"),B=t(365976),L=t(451704),O=e=>{var r,t,i=null==e?void 0:e.priceEvaluationOnDemand,a=e&&"viewer"in e?e:void 0,l=null==a||null==(t=a.viewer)||null==(r=t.grossPrice)?void 0:r.gross;return{absPercentageError:null==i?void 0:i.absPercentageError,prediction:null==i?void 0:i.prediction,higher:null==i?void 0:i.higher,lower:null==i?void 0:i.lower,grossPrice:l}},M=["make","model","year","mileage","gearbox","fuel_type","engine_power","door_count"],K=e=>M.every(r=>e[r]),k=t(162859),S=(0,s.F)()?e=>{var r,t,i=(0,o.c)(3),a=e.message;i[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,c.Y)(k.c,{size:16}),i[0]=r):r=i[0];var l=a||"";return i[1]!==l?(t=(0,c.FD)("div",{className:"flex [&>span]:ml-200",children:[r,(0,c.Y)("span",{children:l})]}),i[1]=l,i[2]=t):t=i[2],t}:e=>{var r=e.message;return(0,c.FD)("div",{className:"flex [&>span]:ml-200",children:[(0,c.Y)(k.c,{size:16}),(0,c.Y)("span",{children:r||""})]})},A=e=>{var r=e.grossPrice,t=e.prediction,i=e.lower,a=e.higher,l=e.absPercentageError;if(!r||!t||!i||!a||!l)return p.J.NONE;var n=((e,r)=>Math.abs(e-r)/r*100)(t,r),c=p.J.IN;return r<i&&(c=p.J.BELOW),r>a&&(c=p.J.ABOVE),n>l&&(c=p.J.NONE),c},I=(0,h.memo)((0,s.F)()?function(e){var r,t,i,n,s,d,m,u,v,f,g,Y=(0,o.c)(32),b=e.vehicleParams,y=e.price,w=e.currencyCode,x=e.isBusiness,N=e.isNet,_=e.variant,D=e.onUpdate,E=void 0===_?"badge":_,M=N?P:B.k;Y[0]!==y||Y[1]!==b?(r=!K(b)||!y,Y[0]=y,Y[1]=b,Y[2]=r):r=Y[2];var k=r,I=w&&"PLN"!==w;Y[3]!==b?(t=(0,L.o)(b),Y[3]=b,Y[4]=t):t=Y[4],Y[5]!==x||Y[6]!==t?(i=(0,l._)((0,a._)({},t),{isBusiness:x}),Y[5]=x,Y[6]=t,Y[7]=i):i=Y[7],Y[8]!==y?(n=null==y?void 0:y.toString(),Y[8]=y,Y[9]=n):n=Y[9];var J=n;
1Y[10]!==i||Y[11]!==J?(s={vehicleParams:i,netPrice:J},Y[10]=i,Y[11]=J,Y[12]=s):s=Y[12];var T=k||I;Y[13]!==M||Y[14]!==s||Y[15]!==T?(d={query:M,variables:s,pause:T},Y[13]=M,Y[14]=s,Y[15]=T,Y[16]=d):d=Y[16];var H=(0,F._)((0,z.IT)(d),1)[0],q=H.data,j=H.fetching,G=H.error;if(Y[17]!==q||Y[18]!==y){var V=O(q),U=V.prediction,X=V.higher,Z=V.lower,$=V.absPercentageError;m=A({grossPrice:V.grossPrice||y,prediction:U,lower:Z,higher:X,absPercentageError:$}),Y[17]=q,Y[18]=y,Y[19]=m}else m=Y[19];var W=m;return(Y[20]!==G||Y[21]!==j||Y[22]!==k||Y[23]!==W||Y[24]!==D||Y[25]!==I?(u=()=>{var e=!G&&!I&&!k&&!j&&W!==p.J.NONE;D&&D(e?W:null)},v=[D,W,G,I,k,j],Y[20]=G,Y[21]=j,Y[22]=k,Y[23]=W,Y[24]=D,Y[25]=I,Y[26]=u,Y[27]=v):(u=Y[26],v=Y[27]),(0,h.useEffect)(u,v),G||I||k)?null:j?(Y[28]===Symbol.for("react.memo_cache_sentinel")?(f=(0,c.Y)("div",{className:"flex w-full items-center justify-center",children:(0,c.Y)(S,{})}),Y[28]=f):f=Y[28],f):(Y[29]!==W||Y[30]!==E?(g=(0,c.Y)(C,{evaluation:W,variant:E}),Y[29]=W,Y[30]=E,Y[31]=g):g=Y[31],g)}:function(e){var r=e.vehicleParams,t=e.price,i=e.currencyCode,n=e.isBusiness,s=e.isNet,o=e.variant,d=e.onUpdate,m=s?P:B.k,u=!K(r)||!t,v=i&&"PLN"!==i,f=(0,F._)((0,z.IT)({query:m,variables:{vehicleParams:(0,l._)((0,a._)({},(0,L.o)(r)),{isBusiness:n}),netPrice:null==t?void 0:t.toString()},pause:u||v}),1)[0],g=f.data,Y=f.fetching,b=f.error,y=O(g),w=y.prediction,x=y.higher,N=y.lower,_=y.absPercentageError,D=A({grossPrice:y.grossPrice||t,prediction:w,lower:N,higher:x,absPercentageError:_});return((0,h.useEffect)(()=>{var e=!b&&!v&&!u&&!Y&&D!==p.J.NONE;d&&d(e?D:null)},[d,D,b,v,u,Y]),b||v||u)?null:Y?(0,c.Y)("div",{className:"flex w-full items-center justify-center",children:(0,c.Y)(S,{})}):(0,c.Y)(C,{evaluation:D,variant:void 0===o?"badge":o})},(e,r)=>E()(e,r)),J=t(242650),T=t(450836),H=(e,r)=>e(!0!=r instanceof T.CX?"pes-generic-error":404===r.status?"pes-no-range-error":"pes-generic-error"),q=t(213302),j=(0,s.F)()?e=>{var r,t=(0,o.c)(2),i=e.message;return t[0]!==i?(r=(0,c.Y)("div",{className:"mb-300 leading-[120%] last:mb-0",children:(0,c.Y)(m.lZ,{className:"[&_svg]:min-w-300",prefix:G,variant:"positive",children:i})}),t[0]=i,t[1]=r):r=t[1],r}:e=>{var r=e.message;return(0,c.Y)("div",{className:"mb-300 leading-[120%] last:mb-0",children:(0,c.Y)(m.lZ,{className:"[&_svg]:min-w-300",prefix:()=>(0,c.Y)(q.A,{size:"icon-xLarge"}),variant:"positive",children:r})})};function G(){return(0,c.Y)(q.A,{size:"icon-xLarge"})}var V=(0,s.F)()?e=>{var r,t,a,l=(0,o.c)(7),n=e.contentConfig,s=(0,i.B)().t;l[0]!==n||l[1]!==s?(l[3]!==s?(t=(e,r)=>({id:r.toString(),isOpen:0===r,header:()=>(0,c.Y)(m.u,{children:s(e.labelKey)}),content:()=>(0,c.Y)(m.ub,{children:(0,c.Y)(e.Content,{})})}),l[3]=s,l[4]=t):t=l[4],r=n.map(t),l[0]=n,l[1]=s,l[2]=r):r=l[2];var d=r;return l[5]!==d?(a=(0,c.Y)(m.nD,{openBehavior:"multiple",content:d,className:"w-full"}),l[5]=d,l[6]=a):a=l[6],a}:e=>{var r=e.contentConfig,t=(0,i.B)().t,a=(0,h.useMemo)(()=>r.map((e,r)=>({id:r.toString(),isOpen:0===r,header:()=>(0,c.Y)(m.u,{children:t(e.labelKey)}),content:()=>(0,c.Y)(m.ub,{children:(0,c.Y)(e.Content,{})})})),[r,t]);return(0,c.Y)(m.nD,{openBehavior:"multiple",content:a,className:"w-full"})},U=t(495567),X=t(549076),Z="https://pomoc.otomoto.pl/otomotohelpcenter/s/",$=(0,s.F)()?()=>{var e,r,t=(0,o.c)(4),a=(0,i.B)().t;return t[0]!==a?(e=en.map(e=>(0,c.FD)("div",{className:"flex items-center",children:[(0,c.Y)(U.default,{mr:16,color:"text-foreground-action-primary"}),a(e.lexemeKey)]},e.id)),t[0]=a,t[1]=e):e=t[1],t[2]!==e?(r=(0,c.Y)("div",{className:"mt-200 flex flex-col flex-wrap justify-between md:max-h-[100px]",children:e}),t[2]=e,t[3]=r):r=t[3],r}:()=>{var e=(0,i.B)().t;return(0,c.Y)("div",{className:"mt-200 flex flex-col flex-wrap justify-between md:max-h-[100px]",children:en.map(r=>(0,c.FD)("div",{className:"flex items-center",children:[(0,c.Y)(U.default,{mr:16,color:"text-foreground-action-primary"}),e(r.lexemeKey)]},r.id))})},W=(0,s.F)()?()=>{var e,r,t=(0,o.c)(4),a=(0,i.B)().t;return t[0]!==a?(e=ec.map(e=>(0,c.FD)("div",{className:"mb-100 flex items-center",children:[(0,c.Y)(U.default,{mr:16,color:"text-foreground-action-primary"}),(0,c.Y)("span",{children:a(e.lexemeKey)})]},e.id)),t[0]=a,t[1]=e):e=t[1],t[2]!==e?(r=(0,c.Y)("div",{className:"mt-200 flex flex-col flex-wrap justify-between md:max-h-[100px]",children:e}),t[2]=e,t[3]=r):r=t[3],r}:()=>{var e=(0,i.B)().t;return(0,c.Y)("div",{className:"mt-200 flex flex-col flex-wrap justify-between md:max-h-[100px]",children:ec.map(r=>(0,c.FD)("div",{className:"mb-100 flex items-center",children:[(0,c.Y)(U.default,{mr:16,color:"text-foreground-action-primary"}),(0,c.Y)("span",{children:e(r.lexemeKey)})]},r.id))})},R=(0,s.F)()?()=>{var e,r,t=(0,o.c)(4),a=(0,i.B)().t;return t[0]!==a?(e=el.map(e=>(0,c.FD)("div",{className:"mt-100 flex items-center [&_figure]:me-100 [&_figure]:min-w-[36px]",children:[(0,c.Y)(X.v,{size:36,paddingTop:4,name:"price-evaluation/".concat(e.name)}
1),a(e.lexemeKey)]},e.lexemeKey)),t[0]=a,t[1]=e):e=t[1],t[2]!==e?(r=(0,c.Y)("div",{className:"my-100",children:e}),t[2]=e,t[3]=r):r=t[3],r}:()=>{var e=(0,i.B)().t;return(0,c.Y)("div",{className:"my-100",children:el.map(r=>(0,c.FD)("div",{className:"mt-100 flex items-center [&_figure]:me-100 [&_figure]:min-w-[36px]",children:[(0,c.Y)(X.v,{size:36,paddingTop:4,name:"price-evaluation/".concat(r.name)}),e(r.lexemeKey)]},r.lexemeKey))})},Q=(0,s.F)()?()=>{var e,r,t,a,l=(0,o.c)(7),n=(0,i.B)().t;return l[0]!==n?(e=n("pes-info-what-is-it-answer-p1"),l[0]=n,l[1]=e):e=l[1],l[2]!==e?(r=(0,c.Y)(m.P2,{children:e}),l[2]=e,l[3]=r):r=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,c.Y)(R,{}),l[4]=t):t=l[4],l[5]!==r?(a=(0,c.FD)("div",{className:"pt-200",children:[r,t]}),l[5]=r,l[6]=a):a=l[6],a}:()=>{var e=(0,i.B)().t;return(0,c.FD)("div",{className:"pt-200",children:[(0,c.Y)(m.P2,{children:e("pes-info-what-is-it-answer-p1")}),(0,c.Y)(R,{})]})};(0,s.F)()||(()=>{var e=(0,i.B)().t;return(0,c.FD)("div",{className:"pt-200",children:[(0,c.Y)(m.P2,{children:e("pes-info-how-calculation-works-answer")}),(0,c.Y)($,{}),(0,c.Y)(J.h,{mt:16,children:(0,c.Y)(m.lZ,{className:"[&_svg]:min-w-300",prefix:()=>(0,c.Y)(q.A,{size:"icon-xLarge",mr:16}),variant:"positive",children:e("pes-info-how-calculation-works-answer-info")})})]})});var ee=(0,s.F)()?()=>{var e,r,t,a,l,n,s=(0,o.c)(12),d=(0,i.B)().t;return s[0]!==d?(e=d("pes-info-how-calculation-works-answer-cvt"),s[0]=d,s[1]=e):e=s[1],s[2]!==e?(r=(0,c.Y)(m.P2,{children:e}),s[2]=e,s[3]=r):r=s[3],s[4]!==d?(t=d("pes-some-things-we-consider"),s[4]=d,s[5]=t):t=s[5],s[6]!==t?(a=(0,c.Y)(m.P2,{className:"mt-sm!",children:t}),s[6]=t,s[7]=a):a=s[7],s[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,c.Y)(W,{}),s[8]=l):l=s[8],s[9]!==r||s[10]!==a?(n=(0,c.FD)("div",{className:"pt-200",children:[r,a,l]}),s[9]=r,s[10]=a,s[11]=n):n=s[11],n}:()=>{var e=(0,i.B)().t;return(0,c.FD)("div",{className:"pt-200",children:[(0,c.Y)(m.P2,{children:e("pes-info-how-calculation-works-answer-cvt")}),(0,c.Y)(m.P2,{className:"mt-sm!",children:e("pes-some-things-we-consider")}),(0,c.Y)(W,{})]})},er=(0,s.F)()?()=>{var e,r,t=(0,o.c)(4),a=(0,i.B)().t;return t[0]!==a?(e=a("pes-info-how-to-adjust-answer"),t[0]=a,t[1]=e):e=t[1],t[2]!==e?(r=(0,c.Y)("div",{className:"pt-200",children:(0,c.Y)(m.P2,{children:e})}),t[2]=e,t[3]=r):r=t[3],r}:()=>{var e=(0,i.B)().t;return(0,c.Y)("div",{className:"pt-200",children:(0,c.Y)(m.P2,{children:e("pes-info-how-to-adjust-answer")})})},et=(0,s.F)()?()=>{var e,r,t=(0,o.c)(4),a=(0,i.B)().t;return t[0]!==a?(e=a("pes-info-how-to-turn-off-answer"),t[0]=a,t[1]=e):e=t[1],t[2]!==e?(r=(0,c.Y)("div",{className:"pt-200",children:(0,c.Y)(m.P2,{children:e})}),t[2]=e,t[3]=r):r=t[3],r}:()=>{var e=(0,i.B)().t;return(0,c.Y)("div",{className:"pt-200",children:(0,c.Y)(m.P2,{children:e("pes-info-how-to-turn-off-answer")})})},ei=(0,s.F)()?()=>{var e,r,t,a,l,n,s,d,h,p=(0,o.c)(19),u=(0,i.B)().t;return p[0]!==u?(e=u("pes-info-where-is-displayed-answer"),p[0]=u,p[1]=e):e=p[1],p[2]!==e?(r=(0,c.Y)(m.P2,{children:e}),p[2]=e,p[3]=r):r=p[3],p[4]!==u?(t=u("pes-info-where-is-displayed-option1"),p[4]=u,p[5]=t):t=p[5],p[6]!==t?(a=(0,c.Y)("li",{children:t}),p[6]=t,p[7]=a):a=p[7],p[8]!==u?(l=u("pes-info-where-is-displayed-option2"),p[8]=u,p[9]=l):l=p[9],p[10]!==l?(n=(0,c.Y)("li",{children:l}),p[10]=l,p[11]=n):n=p[11],p[12]!==a||p[13]!==n?(s=(0,c.FD)("ul",{className:"mt-200 ps-200 [&>li]:list-disc",children:[a,n]}),p[12]=a,p[13]=n,p[14]=s):s=p[14],p[15]===Symbol.for("react.memo_cache_sentinel")?(d=(0,c.FD)("div",{className:"mt-200 flex flex-col md:flex-row [&>figure]:mb-100 md:[&>figure]:mb-0 md:[&>figure:first-of-type]:mr-100 [&>figure:last-of-type]:mb-0 md:[&>figure:last-of-type]:ml-100",children:[(0,c.Y)(X.v,{name:"price-evaluation/indicator-example"}),(0,c.Y)(X.v,{name:"price-evaluation/section-example"})]}),p[15]=d):d=p[15],p[16]!==r||p[17]!==s?(h=(0,c.FD)("div",{className:"pt-200",children:[r,s,d]}),p[16]=r,p[17]=s,p[18]=h):h=p[18],h}:()=>{var e=(0,i.B)().t;return(0,c.FD)("div",{className:"pt-200",children:[(0,c.Y)(m.P2,{children:e("pes-info-where-is-displayed-answer")}),(0,c.FD)("ul",{className:"mt-200 ps-200 [&>li]:list-disc",children:[(0,c.Y)("li",{children:e("pes-info-where-is-displayed-option1")}),(0,c.Y)("li",{children:e("pes-info-where-is-displayed-option2")})]}),(0,c.FD)("div",{className:"mt-200 flex flex-col md:flex-row [&>figure]:mb-100 md:[&>figure]:mb-0 md:[&>figure:first-of-type]:mr-100 [&>figure:last-of-type]:mb-0 md:[&>figure:last-of-type]:ml-100",children:[(0,c.Y)(X.v,{name:"price-evaluation/indicator-example"}),(0,c.Y)(X.v,{name:"price-evaluation/section-example"})]})]})},ea=(0,s.F)()?()=>{var e,r,t,a,l,n=(0,o.c)(11),s=(0,i.B)().t;n[0]!==s?(e=s("pes-info-how-to-report-answer"),n[0]=s,n[1]=e):e=n[1];var d="".concat(e," ");n[2]!==d?(r=(0,c.Y)("span",{children:d}),n[2]=d,n[3]=r):r=n[3],n[4]!==s?(t=s("pes-help-center"),n[4]=s,n[5]=t):t=n[5];var h="".concat(t);return n[6]!==h?(a=(0,c.Y)("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:h}),n[6]=h,n[7]=a):a=n[7],n[8]!==r||n[9]!==a?(l=(0,c.Y)("div",{className:"pt-200",children:(0,c.FD)(m.P2,{children:[r,a,"."]})}),n[8]=r,n[9]=a,n[10]=l):l=n[10],l}:()=>{var e=(0,i.B)().t;return(0,c.Y)("div",{className:"pt-200",children:(0,c.FD)(m.P2,{children:[(0,c.Y)("span",{children:"".concat(e("pes-info-how-to-report-answer")," ")}),(0,c.Y)("a",{href:Z,target:"_blank",rel:"noopener noreferrer",children:"".concat(e("pes-help-center"))}),"."]})})},el=[{name:"below",lexemeKey:"pes-indicator-below"},{name:"average",lexemeKey:"pes-indicator-average"},{name:"above",lexemeKey:"pes-indicator-above"},{name:"none",lexemeKey:"pes-indicator-none-info"}],en=[{id:"make",lexemeKey:"pes-make-title"},{id:"model",lexemeKey:"pes-model-title"},{id:"year",lexemeKey:"pes-year-title"},{id:"mileage",lexemeKey:"pes-mileage-title"},{id:"engine_capacity",lexemeKey:"pes-engine-capacity-title"},{id:"engine_power",lexemeKey:"pes-engine-power-title"},{id:"gearbox",lexemeKey:"pes-gearbox-title"},{id:"fuel_type",lexemeKey:"pes-fuel-type-title"},{id:"door_count",lexemeKey:"pes-door-count-title"}],ec=[{id:"make_model",lexemeKey:"pes-make-model-title-cvt"},{id:"year",lexemeKey:"pes-year-title-cvt"},{id:"mileage",lexemeKey:"pes-mileage-title-cvt"},{id:"fuel_type",lexemeKey:"pes-fuel-type-title-cvt"},{id:"engine_power",lexemeKey:"pes-engine-power-title-cvt"},{id:"transmission",lexemeKey:"pes-transmission-title-cvt"}],es=[{labelKey:"pes-info-what-is-it-question",Content:Q},{labelKey:"pes-info-how-calculation-works-question",Content:ee},{labelKey:"pes-info-how-to-adjust-question",Content:er},{labelKey:"pes-info-how-to-turn-off-question",Content:et},{labelKey:"pes-info-where-is-displayed-question",Content:ei},{labelKey:"pes-info-how-to-report-question",Content:ea}],eo=(0,s.F)()?e=>{var r,t,a,l,n,s,d,p,u,v,f=(0,o.c)(22),g=e.onClose,Y=(0,i.B)().t,b=(0,m.pA)("pes-info"),y=b.openDialog,w=b.closeDialog;f[0]!==w||f[1]!==g?(r=()=>{w(),g()},f[0]=w,f[1]=g,f[2]=r):r=f[2];var x=r;return f[3]!==y?(t=()=>{y()},a=[y],f[3]=y,f[4]=t,f[5]=a):(t=f[4],a=f[5]),(0,h.useEffect)(t,a),f[6]!==Y?(l=Y("pes-info-title"),f[6]=Y,f[7]=l):l=f[7],f[8]!==l?
1(n=(0,c.Y)("div",{className:"mt-400 flex items-center justify-center",children:(0,c.Y)(m.H3,{children:l})}),f[8]=l,f[9]=n):n=f[9],f[10]===Symbol.for("react.memo_cache_sentinel")?(s=(0,c.Y)(J.h,{mt:"md",className:"flex",children:(0,c.Y)(V,{contentConfig:es})}),f[10]=s):s=f[10],f[11]!==Y?(d=Y("pes-info-close"),f[11]=Y,f[12]=d):d=f[12],f[13]!==g||f[14]!==d?(p=(0,c.Y)(J.h,{textAlign:"center",mb:"md",children:(0,c.Y)(m.$n,{variant:"tertiary",onClick:g,children:d})}),f[13]=g,f[14]=d,f[15]=p):p=f[15],f[16]!==n||f[17]!==p?(u=(0,c.FD)(J.h,{overflow:"scroll",children:[n,s,p]}),f[16]=n,f[17]=p,f[18]=u):u=f[18],f[19]!==x||f[20]!==u?(v=(0,c.Y)(m.lG,{id:"pes-info",onDialogClose:x,children:u}),f[19]=x,f[20]=u,f[21]=v):v=f[21],v}:e=>{var r=e.onClose,t=(0,i.B)().t,a=(0,m.pA)("pes-info"),l=a.openDialog,n=a.closeDialog;return(0,h.useEffect)(()=>{l()},[l]),(0,c.Y)(m.lG,{id:"pes-info",onDialogClose:()=>{n(),r()},children:(0,c.FD)(J.h,{overflow:"scroll",children:[(0,c.Y)("div",{className:"mt-400 flex items-center justify-center",children:(0,c.Y)(m.H3,{children:t("pes-info-title")})}),(0,c.Y)(J.h,{mt:"md",className:"flex",children:(0,c.Y)(V,{contentConfig:es})}),(0,c.Y)(J.h,{textAlign:"center",mb:"md",children:(0,c.Y)(m.$n,{variant:"tertiary",onClick:r,children:t("pes-info-close")})})]})})},ed=t(393709),em=(0,s.F)()?e=>{var r,t,i,a=(0,o.c)(6),l=e.prediction;a[0]!==l.lower?(r=(0,ed.ZV)(l.lower),a[0]=l.lower,a[1]=r):r=a[1];var n=r;a[2]!==l.higher?(t=(0,ed.ZV)(l.higher),a[2]=l.higher,a[3]=t):t=a[3];var s=t,d="".concat(n," - ").concat(s),h="".concat(d," ").concat("PLN");return a[4]!==h?(i=(0,c.Y)(m.H3,{variant:"bold",children:h}),a[4]=h,a[5]=i):i=a[5],i}:e=>{var r=e.prediction,t=(0,ed.ZV)(r.lower),i=(0,ed.ZV)(r.higher),a="".concat(t," - ").concat(i);return(0,c.Y)(m.H3,{variant:"bold",children:"".concat(a," ").concat("PLN")})},eh=(0,s.F)()?e=>{var r,t,a=(0,o.c)(6),l=e.prediction,n=(0,i.B)().t,s=(0,F._)((0,h.useState)(!1),2),d=s[0],p=s[1];return a[0]!==d||a[1]!==l||a[2]!==n?(r=l&&(0,c.FD)(c.FK,{children:[(0,c.Y)(em,{prediction:l}),(0,c.Y)(m.$n,{variant:"tertiary",onClick:()=>p(!0),children:n("pes-learn-more")}),d&&(0,c.Y)(eo,{onClose:()=>p(!1)})]}),a[0]=d,a[1]=l,a[2]=n,a[3]=r):r=a[3],a[4]!==r?(t=(0,c.Y)("div",{className:"mb-300 leading-[120%] last:mb-0",children:(0,c.Y)("div",{className:"mt-200 flex min-h-500 flex-col items-start md:flex-row md:items-center [&>button]:mt-100 [&>button]:ml-0 md:[&>button]:mt-0 md:[&>button]:ml-200",children:r})}),a[4]=r,a[5]=t):t=a[5],t}:e=>{var r=e.prediction,t=(0,i.B)().t,a=(0,F._)((0,h.useState)(!1),2),l=a[0],n=a[1];return(0,c.Y)("div",{className:"mb-300 leading-[120%] last:mb-0",children:(0,c.Y)("div",{className:"mt-200 flex min-h-500 flex-col items-start md:flex-row md:items-center [&>button]:mt-100 [&>button]:ml-0 md:[&>button]:mt-0 md:[&>button]:ml-200",children:r&&(0,c.FD)(c.FK,{children:[(0,c.Y)(em,{prediction:r}),(0,c.Y)(m.$n,{variant:"tertiary",onClick:()=>n(!0),children:t("pes-learn-more")}),l&&(0,c.Y)(eo,{onClose:()=>n(!1)})]})})})};let ep=(0,h.memo)((0,s.F)()?function(e){var r,t,n,s,d,p,u,v,f,g,Y,b,y,w,x,N,_,C,D,E,P,M,k,A,I=(0,o.c)(61),T=e.vehicleParams,q=e.isBusiness,G=e.currencyCode,V=e.isNet,U=e.onUpdate,X=void 0===G?"PLN":G,Z=void 0!==V&&V,$=(0,i.B)().t,W=X&&"PLN"!==X;I[0]!==T?(r=K(T),I[0]=T,I[1]=r):r=I[1];var R=!r;I[2]!==T?(t=(0,L.o)(T),I[2]=T,I[3]=t):t=I[3],I[4]!==q||I[5]!==t?(n={vehicleParams:(0,l._)((0,a._)({},t),{isBusiness:q})},I[4]=q,I[5]=t,I[6]=n):n=I[6];var Q=R||W;I[7]!==n||I[8]!==Q?(s={query:B.k,variables:n,pause:Q},I[7]=n,I[8]=Q,I[9]=s):s=I[9];var ee=(0,F._)((0,z.IT)(s),1)[0],er=ee.data,et=ee.fetching,ei=ee.error;I[10]!==er?(d=er?O(er):null,I[10]=er,I[11]=d):d=I[11];var ea=d;return(I[12]!==ei||I[13]!==R||I[14]!==U||I[15]!==ea||I[16]!==W?(u=()=>{var e=!ei&&!W&&!R&&!!ea;U&&U(e)},p=[U,ea,ei,W,R],I[12]=ei,I[13]=R,I[14]=U,I[15]=ea,I[16]=W,I[17]=p,I[18]=u):(p=I[17],u=I[18]),(0,h.useEffect)(u,p),W)?(I[19]!==$?(v=$("pes-wrong-currency-error"),I[19]=$,I[20]=v):v=I[20],I[21]!==v?(f=(0,c.Y)(j,{message:v}),I[21]=v,I[22]=f):f=I[22],f):R?(I[23]!==$?(g=$("pes-default-message"),I[23]=$,I[24]=g):g=I[24],I[25]!==g?(Y=(0,c.Y)(j,{message:g}),I[25]=g,I[26]=Y):Y=I[26],Y):ei?(I[27]!==ei||I[28]!==$?(b=H($,ei),I[27]=ei,I[28]=$,I[29]=b):b=I[29],I[30]!==b?(y=(0,c.Y)(j,{message:b}),I[30]=b,I[31]=y):y=I[31],y):(I[32]!==Z||I[33]!==$?(w=Z&&(0,c.Y)(j,{message:$("pes-price-is-net-warning")}),I[32]=Z,I[33]=$,I[34]=w):w=I[34],I[35]!==$?(x=$("pes-info-title"),I[35]=$,I[36]=x):x=I[36],I[37]!==x?(N=(0,c.Y)(m.H3,{children:x}),I[37]=x,I[38]=N):N=I[38],I[39]!==$?(_=$("pes-improved-tag"),I[39]=$,I[40]=_):_=I[40],I[41]!==_?
1(C=(0,c.Y)(J.h,{ml:16,children:(0,c.Y)(m.vw,{className:"h-300 bg-[var(--color-green-primary)]",content:_})}),I[41]=_,I[42]=C):C=I[42],I[43]!==N||I[44]!==C?(D=(0,c.FD)("div",{className:"mb-200 flex items-center",children:[N,C]}),I[43]=N,I[44]=C,I[45]=D):D=I[45],I[46]!==$?(E=$("pes-range-result"),I[46]=$,I[47]=E):E=I[47],I[48]!==E?(P=(0,c.Y)(m.P2,{children:E}),I[48]=E,I[49]=P):P=I[49],I[50]!==et||I[51]!==ea||I[52]!==$?(M=et?(0,c.Y)("div",{className:"mt-200 flex min-h-500 w-full items-center justify-start",children:(0,c.Y)(S,{message:$("pes-loading")})}):(0,c.Y)(eh,{prediction:ea}),I[50]=et,I[51]=ea,I[52]=$,I[53]=M):M=I[53],I[54]!==D||I[55]!==P||I[56]!==M?(k=(0,c.FD)("div",{className:"bg-background-brand-fields-disabled p-200 [&_h4]:text-h4 [&_h4]:font-bold",children:[D,P,M]}),I[54]=D,I[55]=P,I[56]=M,I[57]=k):k=I[57],I[58]!==w||I[59]!==k?(A=(0,c.FD)(c.FK,{children:[w,k]}),I[58]=w,I[59]=k,I[60]=A):A=I[60],A)}:function(e){var r=e.vehicleParams,t=e.isBusiness,n=e.currencyCode,s=void 0===n?"PLN":n,o=e.isNet,d=e.onUpdate,p=(0,i.B)().t,u=s&&"PLN"!==s,v=!K(r),f=(0,F._)((0,z.IT)({query:B.k,variables:{vehicleParams:(0,l._)((0,a._)({},(0,L.o)(r)),{isBusiness:t})},pause:v||u}),1)[0],g=f.data,Y=f.fetching,b=f.error,y=g?O(g):null;return((0,h.useEffect)(()=>{var e=!b&&!u&&!v&&!!y;d&&d(e)},[d,y,b,u,v]),u)?(0,c.Y)(j,{message:p("pes-wrong-currency-error")}):v?(0,c.Y)(j,{message:p("pes-default-message")}):b?(0,c.Y)(j,{message:H(p,b)}):(0,c.FD)(c.FK,{children:[void 0!==o&&o&&(0,c.Y)(j,{message:p("pes-price-is-net-warning")}),(0,c.FD)("div",{className:"bg-background-brand-fields-disabled p-200 [&_h4]:text-h4 [&_h4]:font-bold",children:[(0,c.FD)("div",{className:"mb-200 flex items-center",children:[(0,c.Y)(m.H3,{children:p("pes-info-title")}),(0,c.Y)(J.h,{ml:16,children:(0,c.Y)(m.vw,{className:"h-300 bg-[var(--color-green-primary)]",content:p("pes-improved-tag")})})]}),(0,c.Y)(m.P2,{children:p("pes-range-result")}),Y?(0,c.Y)("div",{className:"mt-200 flex min-h-500 w-full items-center justify-start",children:(0,c.Y)(S,{message:p("pes-loading")})}):(0,c.Y)(eh,{prediction:y})]})]})},(e,r)=>E()(e,r))},164106:(e,r,t)=>{t.d(r,{AY:()=>l,Wm:()=>s,_h:()=>c,hB:()=>a,n:()=>o,p2:()=>n,qH:()=>i});var i=400,a=401,l=403,n=404,c=408,s=429,o=500},285160:(e,r,t)=>{t.d(r,{J:()=>i});var i=function(e){return e.IN="IN",e.BELOW="BELOW",e.ABOVE="ABOVE",e.NONE="NONE",e.LOADING="LOADING",e}({})},365976:(e,r,t)=>{t.d(r,{k:()=>i});var i=(0,t(346686).UG)("\n  query priceEvaluation($vehicleParams: VehicleParams) {\n    priceEvaluationOnDemand(vehicleParams: $vehicleParams) {\n      ... on PriceEvaluationOnDemand {\n        absPercentageError\n        prediction\n        lower\n        higher\n      }\n    }\n  }\n")},393709:(e,r,t)=>{t.d(r,{ZV:()=>a,eh:()=>i});var i=e=>null==e?void 0:e.toString().replace(/\s/g,"").replace(/,/g,"."),a=e=>null==e?void 0:e.toString().replace(/(\d)(?=(\d{3}){1,16}(?!\d))/g,"$1 ").replace(/\./g,",")},450836:(e,r,t)=>{t.d(r,{CX:()=>s,Ui:()=>c,Xu:()=>o});var i=t(15281),a=t(164106),l=t(742949),n=t(104495);class c extends Error{constructor(e,r){super(e),this.name="UnknownException",this.cause=r}}class s extends Error{toJSON(){var e="string"==typeof this.requestKey&&this.requestKey.length>s.REQUEST_KEY_MAX_LENGTH?"".concat(this.requestKey.slice(0,s.REQUEST_KEY_MAX_LENGTH),"..."):this.requestKey;return{name:this.name,message:this.message,status:this.status,cause:this.cause,reasons:this.reasons,requestKey:e,isAbort:this.isAbort}}constructor(e,r,t,c,s){void 0!==t?Array.isArray(t)?(d=t,"string"==typeof c&&(m=c)):"string"==typeof t?m=t:(o=t,Array.isArray(c)?d=c:"string"==typeof c&&(m=c),void 0!==s&&(m=s)):void 0!==c&&(Array.isArray(c)?d=c:"string"==typeof c&&(m=c),void 0!==s&&(m=s)),super(e),this.name="NetworkException",this.requestKey="",this.cause=o,this.reasons=d,this.requestKey=m;var o,d,m,h=(0,n.c)(this);this.isAbort=!h&&(0,l.z)(this),this.status=h?a._h:r,h?this.status=a._h:(!r||r>=600)&&e.includes("[GraphQL] Internal Error")?this.status=i.n:this.status=r}}s.REQUEST_KEY_MAX_LENGTH=50;class o extends Error{constructor(...e){super(...e),this.name="NotImplementedException",this.message="There was a NotImplementedException"}}},451704:(e,r,t)=>{t.d(r,{o:()=>a});var i=t(300561),a=e=>Object.keys(e).reduce((r,t)=>(0,i._)({},r,((e,r)=>{var t;return t=e.replace(/([_-][a-z])/gi,e=>e.toUpperCase().replace(/[_-]/g,"")),"year"===e&&(t="vehicleYear"),{[t]:r}})(t,e[t])),{})},827656:(e,r,t)=>{t.d(r,{X:()=>h});var i=t(271864),a=t(119218),l=t(12013);t(138209);var n=t(285160),c="M0.000975407285,15.2651041 C-0.0201941004,15.6692286 0.305917125,16 0.716580372,16 L12.3897114,16 C12.9419962,16 13.3897114,15.5522847 13.3897114,15 C13.3897114,14.8081163 13.3345052,14.6202841 13.23068,14.458916 L6.85472952,4.54922708 C6.63169364,4.20244458 6.15701783,4.11730042 5.82259001,4.36230709 C3.33101457,6.18732135 0.224011292,11.0105024 0.000975407285,15.2651041 Z",s="M16.834 12.826L23 2.766a.752.752 0 00-.28-1.054C20.494.548 18.386 0 16.016 0c-2.378 0-4.763.543-6.763 1.704a.754.754 0 00-.255 1.038l6.129 10.08a1 1 0 001.707.004z",o="M31.999 15.265a.704.704 0 01-.716.735H19.61a1 1 0 01-.84-1.541l6.375-9.91a.722.722 0 011.032-.187c2.492 1.825 5.6 6.649 5.822 10.903z",d={below:(0,i.Y)("path",{"data-testid":"draw-below",d:c}),in:(0,i.Y)("path",{"data-testid":"draw-in",d:s}),above:(0,i.Y)("path",{"data-testid":"draw-above",d:o}),loading:(0,i.Y)("path",{"data-testid":"draw-loading",d:"M12.4,16H1c-0.3,0-0.5-0.1-0.7-0.3S0,15.2,0,14.9c0.3-4,3.1-8.4,5.5-10.3c0.2-0.2,0.5-0.2,0.8-0.2 c0.3,0,0.5,0.2,0.7,0.4l6.2,9.7c0.2,0.3,0.2,0.7,0,1C13.1,15.8,12.8,16,12.4,16z M2.2,14h8.4L6,6.9C4.4,8.6,2.7,11.3,2.2,14z M16.1,13.1c-0.3,0-0.7-0.2-0.8-0.5L9.1,3C9,2.7,8.9,2.5,9,2.2c0.1-0.3,0.2-0.5,0.5-0.
16C11.4,0.5,13.6,0,16,0 c2.3,0,4.3,0.5,6.4,1.6c0.2,0.1,0.4,0.4,0.5,0.6C23,2.5,23,2.8,22.9,3l-5.9,9.7C16.8,13,16.4,13.1,16.1,13.1 C16.1,13.1,16.1,13.1,16.1,13.1z M11.4,2.9l4.6,7.4l4.5-7.3C19.1,2.3,17.6,2,16,2C14.4,2,12.8,2.3,11.4,2.9z M31,16H19.6c-0.4,0-0.7-0.2-0.9-0.5c-0.2-0.3-0.2-0.7,0-1L25,4.8c0.2-0.2,0.4-0.4,0.7-0.4 c0.3,0,0.6,0,0.8,0.2c2.4,2,5.2,6.4,5.5,10.3c0,0.3-0.1,0.6-0.3,0.8S31.3,16,31,16z M21.4,14h8.4c-0.5-2.7-2.2-5.4-3.8-7.1 L21.4,14z"})},m="var(--colorsForegroundDisabled)",h=(0,a.F)()?e=>{var r,t,a,h=(0,l.c)(8),p=e.evaluation,u=(void 0===p?n.J.NONE:p).toLowerCase(),v="loading"!==u?o+s+c:"M12.4,16H1c-0.3,0-0.5-0.1-0.7-0.3S0,15.2,0,14.9c0.3-4,3.1-8.4,5.5-10.3c0.2-0.2,0.5-0.2,0.8-0.2 c0.3,0,0.5,0.2,0.7,0.4l6.2,9.7c0.2,0.3,0.2,0.7,0,1C13.1,15.8,12.8,16,12.4,16z M2.2,14h8.4L6,6.9C4.4,8.6,2.7,11.3,2.2,14z M16.1,13.1c-0.3,0-0.7-0.2-0.8-0.5L9.1,3C9,2.7,8.9,2.5,9,2.2c0.1-0.3,0.2-0.5,0.5-0.6C11.4,0.5,13.6,0,16,0 c2.3,0,4.3,0.5,6.4,1.6c0.2,0.1,0.4,0.4,0.5,0.6C23,2.5,23,2.8,22.9,3l-5.9,9.7C16.8,13,16.4,13.1,16.1,13.1 C16.1,13.1,16.1,13.1,16.1,13.1z M11.4,2.9l4.6,7.4l4.5-7.3C19.1,2.3,17.6,2,16,2C14.4,2,12.8,2.3,11.4,2.9z M31,16H19.6c-0.4,0-0.7-0.2-0.9-0.5c-0.2-0.3-0.2-0.7,0-1L25,4.8c0.2-0.2,0.4-0.4,0.7-0.4 c0.3,0,0.6,0,0.8,0.2c2.4,2,5.2,6.4,5.5,10.3c0,0.3-0.1,0.6-0.3,0.8S31.3,16,31,16z M21.4,14h8.4c-0.5-2.7-2.2-5.4-3.8-7.1 L21.4,14z";h[0]!==v?(r=(0,i.Y)("path",{fill:m,d:v}),h[0]=v,h[1]=r):r=h[1];var f="loading"===u?m:"currentColor",g=d[u];return h[2]!==f||h[3]!==g?(t=(0,i.Y)("g",{"data-testid":"filling",fill:f,children:g}),h[2]=f,h[3]=g,h[4]=t):t=h[4],h[5]!==r||h[6]!==t?(a=(0,i.FD)("g",{children:[r,t]}),h[5]=r,h[6]=t,h[7]=a):a=h[7],a}:e=>{var r=e.evaluation,t=(void 0===r?n.J.NONE:r).toLowerCase();return(0,i.FD)("g",{children:[(0,i.Y)("path",{fill:m,d:"loading"!==t?o+s+c:"M12.4,16H1c-0.3,0-0.5-0.1-0.7-0.3S0,15.2,0,14.9c0.3-4,3.1-8.4,5.5-10.3c0.2-0.2,0.5-0.2,0.8-0.2 c0.3,0,0.5,0.2,0.7,0.4l6.2,9.7c0.2,0.3,0.2,0.7,0,1C13.1,15.8,12.8,16,12.4,16z M2.2,14h8.4L6,6.9C4.4,8.6,2.7,11.3,2.2,14z M16.1,13.1c-0.3,0-0.7-0.2-0.8-0.5L9.1,3C9,2.7,8.9,2.5,9,2.2c0.1-0.3,0.2-0.5,0.5-0.6C11.4,0.5,13.6,0,16,0 c2.3,0,4.3,0.5,6.4,1.6c0.2,0.1,0.4,0.4,0.5,0.6C23,2.5,23,2.8,22.9,3l-5.9,9.7C16.8,13,16.4,13.1,16.1,13.1 C16.1,13.1,16.1,13.1,16.1,13.1z M11.4,2.9l4.6,7.4l4.5-7.3C19.1,2.3,17.6,2,16,2C14.4,2,12.8,2.3,11.4,2.9z M31,16H19.6c-0.4,0-0.7-0.2-0.9-0.5c-0.2-0.3-0.2-0.7,0-1L25,4.8c0.2-0.2,0.4-0.4,0.7-0.4 c0.3,0,0.6,0,0.8,0.2c2.4,2,5.2,6.4,5.5,10.3c0,0.3-0.1,0.6-0.3,0.8S31.3,16,31,16z M21.4,14h8.4c-0.5-2.7-2.2-5.4-3.8-7.1 L21.4,14z"}),(0,i.Y)("g",{"data-testid":"filling",fill:"loading"===t?m:"currentColor",children:d[t]})]})}},971668:(e,r,t)=>{t.d(r,{B:()=>a});var i=t(464399),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";return(0,i.Bd)(e)}}}]);

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.