PageSourceSearch

https://www.combak.co/_next/static/chunks/593-2acb89f4414480a4.js

js combak.co collected 2026-10-05 01:32:46 UTC 18,541 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[593],{593:(e,t,r)=>{"use strict";r.d(t,{P:()=>N,R:()=>P});var n=r(94458),l=r(68658),a=r(77750),s=r(74997),i=r(87591),c=r(70750),o=r(76472),u=r(23451),d=r(55704),h=r(21633),m=r(37585),f=r(90075),_=r(64797),p=r(88580),x=r(34240),g=r(33391),A=r(35375),v=r(78573),C=r(14254),j=r(79557),y=r(61559),b=r(28408),S=r.n(b),B=r(52873),M=r(8415);let P="combak:open-price-alert-modal";function N(e){var t,r;let{modelId:b,modelName:P,modelSlug:N,category:F,imageSrc:T,currentPrice:w,variant:I="default",isOpen:O,onClose:L,hideButton:k=!1,onCreated:R,initialTargetPrice:E}=e,{data:G}=(0,a.useSession)(),{openAuthModal:q}=(0,m.X)(),{hasAlert:D,addAlert:H}=(0,f.r)(),{enqueueBadges:z}=(0,j.En)(),U=(0,s.useRouter)(),Y=D(b),W=void 0!==O,[V,$]=(0,l.useState)(!1),J=W?O:V,Z=e=>{W?!e&&L&&L():$(e)},[Q,X]=(0,l.useState)(!1),[K,ee]=(0,l.useState)([]),et=(0,l.useMemo)(()=>Math.max(1,(0,_.Y7)(w)),[w]),[er,en]=(0,l.useState)(()=>(0,x.J)(b)),[el,ea]=(0,l.useState)(!1),es=null!=(t=null==er?void 0:er.offers)?t:null,ei=null!=(r=null==er?void 0:er.maxPrice)?r:null,ec=(0,l.useCallback)(()=>{er||(0,x.P)(b).then(e=>{e?en(e):ea(!0)})},[b,er]),[eo,eu]=(0,l.useState)(null),ed=(0,l.useRef)(!1),[eh,em]=(0,l.useState)([]),[ef,e_]=(0,l.useState)([..._.n9]),ep=(0,l.useMemo)(()=>(0,_.Po)(eh,K)||ef.length<_.n9.length,[eh,ef,K]),ex=(0,l.useMemo)(()=>es?(0,_.jn)(es,{resellers:eh,grades:ef},K):null,[es,eh,ef,K]),eg=null!==es&&es.length>0&&null===ex,eA=(0,l.useMemo)(()=>null!==ex?Math.max(1,(0,_.Y7)(ex)):et,[ex,et]),ev=(0,l.useMemo)(()=>eg?Math.max(eA,ei?(0,_.Y7)(ei):Math.round(1.5*et)):eA,[eg,eA,ei,et]),eC=(0,l.useMemo)(()=>Math.max(1,Math.floor(.5*eA)),[eA]),ej=(0,l.useMemo)(()=>{let e=e=>Math.min(Math.max(e,eC),ev);return e("number"==typeof E&&E>0?(0,_.Y7)(E):eo?(0,M.hu)(eo,eA):(0,_.S4)(eA,5))},[E,eo,eA,eC,ev]),[ey,eb]=(0,l.useState)(ej),[eS,eB]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=(0,A.ZM)(F);ee(e),em(e)},[F]);let eM=(0,l.useRef)(!1);(0,l.useEffect)(()=>{J&&K.length>0&&(eM.current=!1,eb(ej),em(K),e_([..._.n9]))},[J,K]),(0,l.useEffect)(()=>{J&&!eM.current&&eb(ej)},[J,ej]),(0,l.useEffect)(()=>{J&&ec()},[J,ec]),(0,l.useEffect)(()=>{J&&eb(e=>Math.min(Math.max(e,eC),ev))},[J,eC,ev]),(0,l.useEffect)(()=>{J&&!ed.current&&(ed.current=!0,fetch("/api/models/".concat(encodeURIComponent(b),"/price-history")).then(e=>e.ok?e.json():null).then(e=>{(null==e?void 0:e.summary)&&eu(e.summary)}).catch(()=>{ed.current=!1}))},[J,b]);let eP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x_button";(0,v.trackAlertModalClosed)({modelId:b,modelName:P,category:F,closedBy:e,targetPrice:ey,selectedResellersCount:eh.length,selectedGradesCount:ef.length,pagePath:U.asPath}),Z(!1)},eN=async()=>{if(0===eh.length)return void o.Ay.warning("S\xe9lectionnez au moins un marchand");if(0===ef.length)return void o.Ay.warning("S\xe9lectionnez au moins un \xe9tat");let e={modelId:b,modelName:P,modelSlug:N,category:F,imageSrc:T,targetPrice:ey,priceAtCreation:eA,filters:{resellers:eh,grades:ef}};if(!G){(0,C.zQ)(e),eP("login_required"),q("/mon-espace?tab=alertes","alert_creation");return}X(!0);try{let t=await fetch("/api/alerts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await t.json();if(!t.ok){if(409===t.status){o.Ay.warning("Vous avez d\xe9j\xe0 une alerte pour ce produit. Rendez-vous dans Mon Espace pour la g\xe9rer."),Z(!1);return}throw Error(r.error||"Erreur lors de la cr\xe9ation")}let n=eA>0?Math.round((eA-ey)/eA*100):0;(0,v.trackAlertCreationCompleted)({modelId:b,modelName:P,category:F,targetPrice:ey,currentPrice:eA,reductionPercent:n,selectedResellers:eh,selectedGrades:ef,pagePath:U.asPath}),H(b),null==R||R({targetPrice:ey}),(0,y.v)(r,z),o.Ay.success("Alerte cr\xe9\xe9e ! Vous serez notifi\xe9 quand le prix atteindra votre objectif."),Z(!1)}catch(e){var t;console.error("Erreur cr\xe9ation alerte:",e),(null==e||null==(t=e.message)?void 0:t.includes("existe d\xe9j\xe0"))||o.Ay.error(e instanceof Error?e.message:"Erreur lors de la cr\xe9ation de l'alerte")}finally{X(!1)}},eF=(0,l.useMemo)(()=>{let e=new Map;if(!es)return e;let t=ef.length<_.n9.length,r=new Set(ef);for(let n of es){if(t&&(!n.grade||!r.has(n.grade)))continue;let l=e.get(n.reseller);(void 0===l||n.price<l)&&e.set(n.reseller,n.price)}return e},[es,ef]),eT=(0,l.useMemo)(()=>{let e=new Set(K);for(let t of es||[])e.add(t.reseller);return[...e].sort((e,t)=>
1{let r=eF.get(e),n=eF.get(t);return void 0===r&&void 0===n?e.localeCompare(t,"fr"):void 0===r?1:void 0===n?-1:r-n})},[K,es,eF]),ew=null===es&&!el,eI=(0,l.useMemo)(()=>{if(!es||null===ex)return null;let e=ef.length<_.n9.length,t=new Set(ef),r=new Set(eh),n=(0,_.Po)(eh,K);for(let l of es)if(l.price===ex&&(!n||r.has(l.reseller))&&(!e||l.grade&&t.has(l.grade)))return l.reseller;return null},[es,ex,eh,ef,K]),eO=eg?"Le plus cher du mod\xe8le":eI?"Le moins cher, chez ".concat(eI):"Prix actuel",eL=Math.round((1-ey/eA)*100);return(0,n.jsxs)(n.Fragment,{children:[!k&&(0,n.jsxs)("button",{type:"button",className:"".concat(S().AlertButton," ").concat("compact"===I?S().AlertButtonCompact:""," ").concat("icon-only"===I?S().AlertButtonIconOnly:""," ").concat("labelled"===I?S().AlertButtonLabelled:""," ").concat("chat-action"===I?S().AlertButtonChatAction:""," ").concat(Y?S().Active:""),onClick:()=>{(0,v.trackAlertModalOpened)({modelId:b,modelName:P,category:F,currentPrice:et,pagePath:U.asPath}),Z(!0)},onPointerEnter:ec,onFocus:ec,"aria-label":Y?"Alerte prix active":"Cr\xe9er une alerte prix",children:[(0,n.jsx)(i.A,{size:"icon-only"===I?18:"compact"===I||"chat-action"===I||"labelled"===I?14:18,fill:Y?"currentColor":"none"}),"icon-only"!==I&&(0,n.jsx)("span",{children:Y?"Alerte active":"labelled"===I?"M'alerter si \xe7a baisse":"compact"===I||"chat-action"===I?"Alerte":"Cr\xe9er une alerte prix"})]}),(0,n.jsx)(u.A,{open:J,onCancel:()=>eP("x_button"),footer:null,width:440,centered:!0,className:S().AlertModal,closeIcon:(0,n.jsx)(c.A,{size:20}),children:(0,n.jsxs)("div",{className:S().ModalContent,children:[(0,n.jsxs)("div",{className:S().ModalHeader,children:[(0,n.jsx)(i.A,{size:24,className:S().HeaderIcon}),(0,n.jsx)("h2",{children:"Cr\xe9er une alerte de prix"}),(0,n.jsx)("p",{className:S().ModelName,children:(0,B.$L)(P)})]}),(0,n.jsxs)("div",{className:S().Section,children:[(0,n.jsx)("h3",{children:"Prix cible"}),(0,n.jsxs)("div",{className:S().PriceDisplay,children:[(0,n.jsxs)("span",{className:S().TargetPrice,children:[ey," €"]}),eL>0&&(0,n.jsxs)("span",{className:S().ReductionBadge,children:["-",eL,"%"]})]}),(0,n.jsx)(d.A,{min:eC,max:ev,step:1,value:ey,onChange:e=>{eM.current=!0,eb((0,_.Y7)(e))},tooltip:{formatter:e=>"".concat((0,_.Y7)(null!=e?e:0)," €")},className:S().PriceSlider}),(0,n.jsxs)("div",{className:S().SliderLabels,children:[(0,n.jsxs)("span",{className:S().MinPriceLabel,children:[(0,n.jsxs)("strong",{children:[eC," €"]}),(0,n.jsx)("small",{children:"50% du prix"})]}),(0,n.jsxs)("span",{className:S().CurrentPriceLabel,children:[(0,n.jsxs)("strong",{children:[ev," €"]}),(0,n.jsx)("small",{children:eO})]})]}),eg&&(0,n.jsx)("p",{className:S().ScopeNotice,"aria-live":"polite",children:"Aucune offre chez les marchands que tu as choisis aujourd'hui. Fixe ton prix : on te pr\xe9vient d\xe8s qu'il y en a une en dessous."})]}),(0,n.jsxs)("div",{className:S().AdvancedSection,children:[(0,n.jsxs)("button",{type:"button",className:S().AdvancedToggle,onClick:()=>eB(!eS),"aria-expanded":eS,children:[(0,n.jsxs)("span",{className:S().AdvancedLabel,children:["Marchands et \xe9tats",(0,n.jsx)("small",{children:function(e,t){var r;let n=(0,_.Po)(e.resellers,t)?0===(r=e.resellers).length?"aucun marchand":1===r.length?r[0]:2===r.length?"".concat(r[0]," et ").concat(r[1]):"".concat(r.length," marchands"):"Tous les marchands";return"".concat(n," \xb7 ").concat(function(e){if(0===e.length||e.length===_.n9.length)return"tous les \xe9tats";let t=e.map(e=>p.$x[e]);return 1===t.length?t[0]:"".concat(t.slice(0,-1).join(", ")," et ").concat(t[t.length-1])}(e.grades))}({resellers:eh,grades:ef},K)})]}),(0,n.jsx)("span",{className:"".concat(S().AdvancedArrow," ").concat(eS?S().Open:""),children:"▼"})]}),eS&&(0,n.jsxs)("div",{className:S().AdvancedContent,children:[(0,n.jsxs)("div",{className:S().Section,children:[(0,n.jsxs)("div",{className:S().SectionHeader,children:[(0,n.jsx)("h3",{children:"Marchands"}),(0,n.jsx)("button",{type:"button",className:S().ToggleAllButton,onClick:()=>{eh.length>=eT.length?em([]):em([...eT])},children:eh.length>=eT.length?"Tout d\xe9s\xe9lectionner":"Tout s\xe9lectionner"})]}),ew?(0,n.jsx)("div",{className:S().FilterGrid,"aria-hidden":"true",children:eT.map(e=>(0,n.jsx)("span",{className:S().FilterSkeleton},e))}):(0,n.jsx)("div",{className:S().FilterGrid,children:eT.map(e=>{let t=eF.get(e);return(0,n.jsxs)("label",{htmlFor:"price-alert-reseller-".concat(encodeURIComponent(e)),className:"".concat(S().FilterItem," ").concat(void 0===t&&es?S().FilterItemUnavailable:""),children:[(0,n.jsx)(h.A,{id:"price-alert-reseller-".concat(encodeURIComponent(e)),checked:eh.includes(e),onChange:()=>{em(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}}),(0,n.jsxs)("span",{className:S().FilterLabel,children:[e,es&&(0,n.jsx)("small",{className:S().FilterPrice,children:void 0===t?"pas d’offre":"d\xe8s ".concat((0,_.Y7)(t)," €")})]})]},e)})})]}),(0,n.jsxs)("div",{className:S().Section,children:[(0,n.jsxs)("div",{className:S().SectionHeader,children:[(0,n.jsx)("h3",{children:"\xc9tat souhait\xe9"}),(0,n.jsx)("button",{type:"button",className:S().ToggleAllButton,onClick:()=>{ef.length===_.n9.length?e_([]):e_([..._.n9])},children:ef.length===_.n9.length?"Tout d\xe9s\xe9lectionner":"Tout s\xe9lectionner"})]}),(0,n.jsx)("div",{className:S().FilterGridStates,children:_.n9.map(e=>(0,n.jsxs)("label",{htmlFor:"price-alert-grade-".concat(e),className:S().FilterItem,children:[(0,n.jsx)(h.A,{id:"price-alert-grade-".concat(e),checked:ef.includes(e),onChange:()=>{e_(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}}),(0,n.jsx)("span",{children:g.$x[e]})]},e))})]})]})]}),(0,n.jsx)("button",{type:"button",className:S().SubmitButton,onClick:eN,disabled:Q,children:Q?"Cr\xe9ation...":"Cr\xe9er l'alerte"}),(0,n.jsx)("p",{className:S().InfoText,children:ep?"Tu recevras un email d\xe8s qu'une offre de ta s\xe9lection passe \xe0 ".concat(ey," €"):"Tu recevras un email d\xe8s que le prix atteindra ".concat(ey," €")})]})})]})}},8415:(e,t,r)=>{"use strict";function n(e,t){var r;let n=Math.round(.95*t);if(!(null==e||null==(r=e.tiers)?void 0:r.length))return n;let l=e.tiers.filter(e=>null!==e.probabilityPct&&e.probabilityPct>=45).sort((e,t)=>
1t.discountPct-e.discountPct)[0];return l?Math.max(Math.round(t*(1-l.discountPct/100)),Math.floor(.5*t)):n}function l(e){let t=new Date("".concat(e,"T00:00:00Z")),r=t.toLocaleDateString("fr-FR",{day:"numeric",month:"long",timeZone:"UTC"});return 1===t.getUTCDate()?r.replace(/^1(?=\D)/,"1er"):r}function a(e){return new Date("".concat(e,"T00:00:00Z")).toLocaleDateString("fr-FR",{day:"numeric",month:"short",timeZone:"UTC"})}function s(e,t){let r=new Map(t.map(e=>[e.date,e.min])),n=[];for(let t of e){let e=r.get(t.date);void 0!==e&&n.push({date:t.date,first:t.min,second:e})}return n.sort((e,t)=>e.date.localeCompare(t.date))}function i(e,t,r){let{latest:n}=r;if(!n)return null;let a=l(n.date),s=Math.abs(n.second-n.first),i=0===s?"Au ".concat(a,", les deux mod\xe8les se trouvent au m\xeame prix en reconditionn\xe9").concat("\xa0",": \xe0 partir de ").concat(n.first).concat("\xa0","€."):"Au ".concat(a,", l'\xe9cart est de ").concat(s).concat("\xa0","€ en reconditionn\xe9").concat("\xa0",": ").concat(e," \xe0 partir de ").concat(n.first).concat("\xa0","€, ").concat(t," \xe0 partir de ").concat(n.second).concat("\xa0","€.");return{question:"".concat(e," ou ").concat(t).concat("\xa0",": quel \xe9cart de prix").concat("\xa0","?"),answerParts:[i,function(e){if(!e||e.days<14)return null;let t=e.days>=80?"90 jours":"".concat(e.days," jours de relev\xe9s");return"Sur ".concat(t,", l'\xe9cart moyen est de ").concat(e.average).concat("\xa0","€.")}(r.gap90)].filter(e=>!!e)}}r.d(t,{e8:()=>i,hu:()=>n,mM:()=>a,sW:()=>s,wc:()=>l})},28408:e=>{e.exports={AlertButton:"CreateAlertButton_AlertButton__rdf8c",Active:"CreateAlertButton_Active__is4yS",AlertButtonCompact:"CreateAlertButton_AlertButtonCompact__tzJMw",AlertButtonIconOnly:"CreateAlertButton_AlertButtonIconOnly__YL_uO",AlertButtonChatAction:"CreateAlertButton_AlertButtonChatAction__winOk",AlertModal:"CreateAlertButton_AlertModal__qU4SU",ModalContent:"CreateAlertButton_ModalContent__jtGhc",ModalHeader:"CreateAlertButton_ModalHeader__8OI38",HeaderIcon:"CreateAlertButton_HeaderIcon__DFY9y",ModelName:"CreateAlertButton_ModelName__EM6MK",Section:"CreateAlertButton_Section__s_wwG",SectionHeader:"CreateAlertButton_SectionHeader__bxh1y",ToggleAllButton:"CreateAlertButton_ToggleAllButton__rnvNW",PriceDisplay:"CreateAlertButton_PriceDisplay__j_yfn",TargetPrice
1:"CreateAlertButton_TargetPrice__HqGHD",ReductionBadge:"CreateAlertButton_ReductionBadge__GzwFP",CurrentPrice:"CreateAlertButton_CurrentPrice__C_3Ox",PriceSlider:"CreateAlertButton_PriceSlider__zvDmc",SliderLabels:"CreateAlertButton_SliderLabels__lkDBJ",MinPriceLabel:"CreateAlertButton_MinPriceLabel__HEPjE",CurrentPriceLabel:"CreateAlertButton_CurrentPriceLabel__Ipvq3",ScopeNotice:"CreateAlertButton_ScopeNotice__Q55sw",AdvancedSection:"CreateAlertButton_AdvancedSection__QXQWI",AdvancedToggle:"CreateAlertButton_AdvancedToggle___4C_y",AdvancedLabel:"CreateAlertButton_AdvancedLabel__dHInZ",AdvancedArrow:"CreateAlertButton_AdvancedArrow__xnLTh",Open:"CreateAlertButton_Open__xmNI7",AdvancedContent:"CreateAlertButton_AdvancedContent__snRw5",FilterGrid:"CreateAlertButton_FilterGrid__awqWD",FilterLabel:"CreateAlertButton_FilterLabel__hXI3R",FilterPrice:"CreateAlertButton_FilterPrice__Foxye",FilterItemUnavailable:"CreateAlertButton_FilterItemUnavailable__UJ0R4",FilterSkeleton:"CreateAlertButton_FilterSkeleton__Pn0P1",filterSkeletonShimmer:"CreateAlertButton_filterSkeletonShimmer__aTu9W",FilterGridStates:"CreateAlertButton_FilterGridStates__E4fap",FilterItem:"CreateAlertButton_FilterItem__eCuw_",SubmitButton:"CreateAlertButton_SubmitButton__f3zBi",InfoText:"CreateAlertButton_InfoText__sqd7W",AlertButtonLabelled:"CreateAlertButton_AlertButtonLabelled__yGrkj"}},33391:(e,t,r)=>{"use strict";r.d(t,{$x:()=>a.$x,Gu:()=>a.Gu,Uq:()=>a.Uq,Vh:()=>i});var n=r(94458),l=r(53168),a=r(88580);let s={FAIR:(0,n.jsxs)("p",{style:{fontSize:"0.9rem",lineHeight:"1rem",maxWidth:250},children:[(0,n.jsxs)("ul",{className:"no-list-style",style:{paddingLeft:"1em",lineHeight:"1.2rem"},children:[(0,n.jsx)("li",{children:"\xc9cran : micro-rayures, visibles quand l'\xe9cran est allum\xe9"}),(0,n.jsx)("li",{children:"Coque : rayures ou impacts visibles"})]}),(0,n.jsx)("br",{}),(0,n.jsx)("i",{style:{marginTop:"1.5rem"},children:"\xc0 v\xe9rifier sur le site du vendeur lors de l'achat."})]}),GOOD:(0,n.jsxs)("p",{style:{fontSize:"0.9rem",lineHeight:"1rem",maxWidth:250},children:[(0,n.jsxs)("ul",{className:"no-list-style",style:{paddingLeft:"1em",lineHeight:"1.2rem"},children:[(0,n.jsx)("li",{children:"\xc9cran : micro-rayures, visibles \xe0 20 cm mais invisibles quand l'\xe9cran est allum\xe9"}),(0,n.jsx)("li",{children:"Coque : rayures ou traces d'usure visibles"})]}),(0,n.jsx)("br",{}),(0,n.jsx)("i",{style:{marginTop:"1.5rem"},children:"\xc0 v\xe9rifier sur le site du vendeur lors de l'achat."})]}),VERY_GOOD:(0,n.jsxs)("p",{style:{fontSize:"0.9rem",lineHeight:"1rem",maxWidth:250},children:[(0,n.jsxs)("ul",{className:"no-list-style",style:{paddingLeft:"1em",lineHeight:"1.2rem"},children:[(0,n.jsx)("li",{children:"\xc9cran : micro-rayures, invisibles \xe0 20 cm et quand l'\xe9cran est allum\xe9"}),(0,n.jsx)("li",{children:"Coque : micro-rayures, visibles \xe0 20 cm"})]}),(0,n.jsx)("br",{}),(0,n.jsx)("i",{style:{marginTop:"1.5rem"},children:"\xc0 v\xe9rifier sur le site du vendeur lors de l'achat."})]}),MINT:(0,n.jsxs)("p",{style:{fontSize:"0.9rem",lineHeight:"1rem",maxWidth:250},children:[(0,n.jsxs)("ul",{className:"no-list-style",style:{paddingLeft:"1em",lineHeight:"1.2rem"},children:[(0,n.jsx)("li",{children:"\xc9cran : parfait \xe9tat"}),(0,n.jsx)("li",{children:"Coque : micro-rayures, invisibles \xe0 20 cm"})]}),(0,n.jsx)("br",{}),(0,n.jsx)("i",{style:{marginTop:"1.5rem"},children:"\xc0 v\xe9rifier sur le site du vendeur lors de l'achat."})]})};function i(e){return(0,n.jsxs)("span",{children:[a.$x[e]," ",(0,n.jsx)(l.f,{iconSize:13,children:s[e]})]})}},34240:(e,t,r)=>{"use strict";r.d(t,{J:()=>a,P:()=>s});let n=new Map,l=new Map;function a(e){var t;return null!=(t=n.get(e))?t:null}function s(e){if(!e)return Promise.resolve(null);let t=n.get(e);if(t)return Promise.resolve(t);let r=l.get(e);if(r)return r;let a=fetch("/api/models/".concat(encodeURIComponent(e),"/alert-prices")).then(e=>e.ok?e.json():null).then(t=>{if(!t||!Array.isArray(t.offers))return null;let r={minPrice:"number"==typeof t.minPrice?t.minPrice:null,maxPrice:"number"==typeof t.maxPrice?t.maxPrice:null,offers:t.offers};return n.set(e,r),r}).catch(()=>null).finally(()=>{l.delete(e)});return l.set(e,a),a}},53168:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=r(94458),l=r(87933),a=r(23204);function s(e){let{children:t,iconSize:r}=e;return(0,n.jsx)(l.A,{content:(0,n.jsx)("p",{style:{fontSize:"0.9rem",lineHeight:"1rem",maxWidth:250},children:t}),children:(0,n.jsx)(a.A,{style:{fontSize:null!=r?r:"1rem",fontWeight:400},onClick:e=>{e.stopPropagation(),e.preventDefault()}})})}},64797:(e,t,r)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return Math.floor(e*(1-t/100))}function l(e){return Number.isFinite(e)?Math.round(e):0}r.d(t,{Po:()=>s,S4:()=>n,Y7:()=>l,jn:()=>i,n9:()=>a});let a=["MINT","VERY_GOOD","GOOD","FAIR"];function s(e,t){if(0===t.length)return e.length>0;let r=new Set(e);return!t.every(e=>r.has(e))}function i(e,t,r){let n=s(t.resellers,r),l=function(e){let t=new Set(e);return!a.every(e=>t.has(e))}(t.grades),i=new Set(t.resellers),c=new Set(t.grades),o=null;for(let t of e)(!n||i.has(t.reseller))&&(!l||t.grade&&c.has(t.grade))&&(null===o||t.price<o)&&(o=t.price);return o}},88580:(e,t,r)=>{"use strict";r.d(t,{$x:()=>n,Gu:()=>l,Uq:()=>s});let n={FAIR:"\xc9tat correct",GOOD:"Bon \xe9tat",VERY_GOOD:"Tr\xe8s bon \xe9tat",MINT:"Parfait \xe9tat"};function l(e){return e?n[e]:"\xc9tat inconnu"}let a=["MINT","VERY_GOOD","GOOD","FAIR"];function s(e){let t=a.indexOf(e);return -1===t?a.length:t}}}]);

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.