1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2146],{4062:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658),n=l(7930),i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n.A}))})},5724:(e,t,l)=>{"use strict";l.d(t,{xr:()=>s});let s=(e,t)=>{if(!e)return t;let l=e.trim().toLowerCase();return t.trim().toLowerCase().startsWith(l)?t:"".concat(e," ").concat(t)}},19468:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658);let n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"};var i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n}))})},29976:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658);let n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};var i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n}))})},49435:(e,t,l)=>{"use strict";l.d(t,{J:()=>i});var s=l(94458);l(68658);var r=l(81672),n=l(4146);function i(e){let{mobileCardRender:t,scroll:l,pagination:i,size:a,...o}=e,c=(0,n.l)();if(c&&t){var d;let e=null!=(d=o.dataSource)?d:[];return(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:e.map((e,l)=>{var r,n;let i=o.rowKey&&"function"==typeof o.rowKey?String(o.rowKey(e,l)):String(null!=(n=e[String(null!=(r=o.rowKey)?r:"key")])?n:l);return(0,s.jsx)("div",{style:{background:"#ffffff",border:"1px solid #e5e7eb",borderRadius:12,padding:16},children:t(e,l)},i)})})}return(0,s.jsx)(r.A,{...o,size:c?"small":a,scroll:c?{x:"max-content",...l}:l,pagination:!1!==i&&{simple:c||void 0,...null!=i?i:{}}})}},56705:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658),n=l(22741),i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n.A}))})},57020:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>ed});var s=l(94458),r=l(68658),n=l(74997),i=l(65238),a=l.n(i),o=l(11457),c=l(49435),d=l(95140),u=l(32203),p=l(64032),h=l(76472),m=l(29661),g=l(79687),y=l(83440),x=l(7737),f=l(51331),j=l(50114),v=l(32957),A=l(91601),b=l(29566),S=l(48158),w=l(76897),k=l(16281),z=l(32631),C=l(99556),D=l(26587),O=l(15471),_=l(42293),M=l(23451),E=l(29976),T=l(4062),N=l(80124),I=l(19468),P=l(79580),L=l(56705),R=l(61123),B=l(12990),H=l(68766),F=l(57966),q=l(64909),V=l(52045);let K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};var W=l(94613);let $=r.forwardRef(function(e,t){return r.createElement(W.A,(0,V.A)({},e,{ref:t,icon:K}))});var J=l(5793),G=l(5724),Y=l(70647),U=l(90862),X=l.n(U);let Q="seo-articles",Z=(0,J.df)(Q),ee=(0,J.bG)(Q),{Title:et,Text:el}=d.A,{Option:es,OptGroup:er}=u.A,{Panel:en}=p.A,ei={1:"Meilleur [Brand] reconditionn\xe9",2:"Meilleur [Brand]",3:"Budget (moins de Xâ¬)",4:"Multi-gamme"},ea=[/^meilleur/,/^meilleurs/],eo={top_priority:{label:"\uD83D\uDD25 Top priorit\xe9",color:"red",hint:"Fort trafic GSC + mod\xe8les faibles â trafic g\xe2ch\xe9, fixer les mod\xe8les"},maintain:{label:"â
Maintenir",color:"green",hint:"Fort trafic + bons mod\xe8les â
1 maintenir / scaler"},seo_push:{label:"\uD83D\uDD27 Push SEO",color:"blue",hint:"Faible trafic + bons mod\xe8les â striking distance / CTR / maillage"},low:{label:"\uD83D\uDDD1ï¸ Basse priorit\xe9",color:"default",hint:"Faible trafic + mod\xe8les faibles â \xe9laguer ?"}},ec={position_loss:{label:"\uD83D\uDD27 Perte de position â r\xe9opti",color:"red"},seasonality:{label:"\uD83C\uDF19 Saisonnalit\xe9 â ne pas toucher",color:"gold"},ctr_loss:{label:"â¡ Perte de CTR â titre/meta",color:"orange"},growth:{label:"\uD83D\uDCC8 En croissance",color:"green"},stable:{label:"Stable",color:"default"}};function ed(){let e,t=(0,n.useRouter)(),[l,i]=(0,r.useState)([]),[d,V]=(0,r.useState)(!1),[K,W]=(0,r.useState)(null),[J,U]=(0,r.useState)(null),[Q,ed]=(0,r.useState)(!1),[eu,ep]=(0,r.useState)(!1),[eh,em]=(0,r.useState)(null),[eg,ey]=(0,r.useState)([]),[ex,ef]=(0,r.useState)(!1),[ej,ev]=(0,r.useState)(""),[eA,eb]=(0,r.useState)(new Map),[eS,ew]=(0,r.useState)([]),[ek,ez]=(0,r.useState)("swap"),[eC,eD]=(0,r.useState)(!1),[eO,e_]=(0,r.useState)(null),[eM,eE]=(0,r.useState)(null),[eT,eN]=(0,r.useState)(null),[eI,eP]=(0,r.useState)(null),[eL,eR]=(0,r.useState)(ee),[eB,eH]=(0,r.useState)(!1),[eF,eq]=(0,r.useState)(!1),[eV,eK]=(0,r.useState)(!1),[eW,e$]=(0,r.useState)("edit"),[eJ,eG]=(0,r.useState)({minOffers:3,minClicks:5,minPageViews:10,maxAge:4}),[eY,eU]=(0,r.useState)([1,2,3,4]),[eX,eQ]=(0,r.useState)(!1),[eZ,e0]=(0,r.useState)(null),[e1,e6]=(0,r.useState)([]),[e4,e2]=(0,r.useState)(!1),[e8,e3]=(0,r.useState)([]),[e5,e7]=(0,r.useState)(null),[e9,te]=(0,r.useState)(30),[tt,tl]=(0,r.useState)(30),[ts,tr]=(0,r.useState)(null),[tn,ti]=(0,r.useState)(null),[ta,to]=(0,r.useState)(null),[tc,td]=(0,r.useState)(!1);(0,r.useEffect)(()=>{tu()},[]),(0,r.useEffect)(()=>{t.isReady&&t.query.slug&&!K&&W(t.query.slug)},[t.isReady,t.query.slug,K]),(0,r.useEffect)(()=>{K&&tp(K)},[K]);let tu=async()=>{V(!0);try{let e=await fetch("/api/backoffice/blog/list-articles"),t=((await e.json()).articles||[]).filter(e=>ea.some(t=>t.test(e.slug)));i(t)}catch(e){h.Ay.error("Erreur chargement articles: "+e.message)}finally{V(!1)}},tp=async e=>{ed(!0),U(null),eb(new Map),ew([]),eE(null),eN(null);try{let t=await fetch("/api/backoffice/seo/edit-selection/parse-article",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:e,thresholds:eJ})});if(!t.ok){let e=await t.json();throw Error(e.error||"Parse failed")}let l=await t.json();U(l)}catch(e){h.Ay.error("Erreur parsing: "+e.message)}finally{ed(!1)}},th=async(e,t)=>{if(J){ez("swap"),em(e),ep(!0),ef(!0),ey([]),ev("");try{let t=J.models.find(t=>t.modelName===e),l=[...J.models.map(e=>e.objectID).filter(Boolean),...eS.map(e=>e.objectID)],s=await fetch("/api/backoffice/seo/edit-selection/suggestions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleType:J.articleType,category:J.category,brand:J.brand,budget:J.budget,tier:null==t?void 0:t.tier,excludeModelIds:l})});if(!s.ok){let e=await s.json();throw Error(e.error||"Erreur ".concat(s.status))}let r=await s.json();ey(r.suggestions||[])}catch(e){h.Ay.error("Erreur suggestions: "+e.message)}finally{ef(!1)}}},tm=async()=>{if(J&&ej.trim()){ef(!0);try{let e=[...J.models.map(e=>e.objectID).filter(Boolean),...eS.map(e=>e.objectID)],t=await fetch("/api/backoffice/seo/edit-selection/suggestions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleType:J.articleType,category:J.category,excludeModelIds:e,q:ej})});if(!t.ok){let e=await t.json();throw Error(e.error||"Erreur ".concat(t.status))}let l=await t.json();ey(l.suggestions||[])}catch(e){h.Ay.error("Erreur recherche: "+e.message)}finally{ef(!1)}}},[tg,ty]=(0,r.useState)(!1),tx=async()=>{if(!J)return;ty(!0);let e=new Map,t=new Set([...J.models.map(e=>e.objectID).filter(Boolean),...eS.map(e=>e.objectID)]);try{for(let l of J.models){let s=await fetch("/api/backoffice/seo/edit-selection/suggestions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleType:J.articleType,category:J.category,brand:J.brand,budget:J.budget,tier:l.tier,excludeModelIds:[...Array.from(t),...Array.from(e.values()).map(e=>e.newModel.objectID)]})});if(!s.ok){let e=await s.json();throw Error(e.error||"Erreur ".concat(s.status))}let r=((await s.json()).suggestions||[])[0];r&&(e.set(l.modelName,{oldModelName:l.modelName,oldObjectID:l.objectID||"",newModel:r}),t.add(r.objectID))}eb(e),h.Ay.success("".concat(e.size," suggestion(s) auto-s\xe9lectionn\xe9e(s)"))}catch(e){h.Ay.error("Erreur auto-suggest: "+e.message)}finally{ty(!1)}},tf=async()=>
1{if(J){ez("add"),em(null),ep(!0),ef(!0),ey([]),ev("");try{let e=[...J.models.map(e=>e.objectID).filter(Boolean),...eS.map(e=>e.objectID)],t=await fetch("/api/backoffice/seo/edit-selection/suggestions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleType:J.articleType,category:J.category,brand:J.brand,budget:J.budget,excludeModelIds:e})});if(!t.ok){let e=await t.json();throw Error(e.error||"Erreur ".concat(t.status))}let l=await t.json();ey(l.suggestions||[])}catch(e){h.Ay.error("Erreur suggestions: "+e.message)}finally{ef(!1)}}},tj=async()=>{if(J&&(0!==eA.size||0!==eS.length)){eD(!0),e_(null),eE(null),eN(null),eP(null);try{var e;let t=null==(e=(await fetch("/api/backoffice/seo/edit-selection/regenerate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:J.slug,fullHtml:J._fullHtml,parsedModels:J._parsedModels,swaps:Array.from(eA.values()),additions:eS.map(e=>({objectID:e.objectID,name:e.name,brand:e.brand,minPrice:e.minPrice,nbOffers:e.nbOffers,releaseYear:e.releaseYear,knownSeries:e.knownSeries,categoryLevel1:e.categoryLevel1,categoryLevel2:e.categoryLevel2,categoryLevel3:e.categoryLevel3,categoryLevel4:e.categoryLevel4,categoryLevel5:e.categoryLevel5})),articleType:J.articleType,category:J.category,brand:J.brand,budget:J.budget,postSummary:J.postSummary,llmModel:eL,webSearch:eB})})).body)?void 0:e.getReader(),l=new TextDecoder,s="";if(!t)throw Error("No reader available");for(;;){let{done:e,value:r}=await t.read();if(e)break;let n=(s+=l.decode(r,{stream:!0})).split("\n");for(let e of(s=n.pop()||"",n))if(e.startsWith("data: "))try{let t=JSON.parse(e.slice(6));if("progress"===t.type)e_(t);else if("result"===t.type){eE(t.html),eN(t.summary||null);let e=Array.isArray(t.skippedSwaps)?t.skippedSwaps:[];eP({skippedSwaps:e,warnings:Array.isArray(t.warnings)?t.warnings:[]});let l="Reg\xe9n\xe9ration termin\xe9e (".concat(t.swapsApplied," swap(s)").concat(t.additionsApplied?", ".concat(t.additionsApplied," ajout(s)"):"",")");e.length>0?h.Ay.warning("".concat(l," : ").concat(e.length," remplacement(s) non appliqu\xe9(s)")):h.Ay.success(l)}else if("error"===t.type)throw Error(t.message)}catch(e){if(e.message&&!e.message.includes("JSON"))throw e}}}catch(e){h.Ay.error("Erreur reg\xe9n\xe9ration: "+e.message)}finally{eD(!1)}}},tv=null==J?void 0:J.status,tA="published"===tv?"published":"draft",tb=!!(null==J?void 0:J.updatedAt)&&"archived"!==tv,tS="Injecter en brouillon";"published"===tv&&(tS="Publier la retouche (en ligne aussit\xf4t)"),"archived"===tv?e="Article archiv\xe9 : le r\xe9activer d'abord au backoffice du blog":(null==J?void 0:J.updatedAt)||(e="Relancer l'analyse de l'article avant d'injecter");let tw=async()=>{if(J&&eM&&tb){eK(!0);try{var e,t;let l=await fetch("/api/backoffice/seo/inject-selection",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleType:J.articleType,category:null!=(e=J.category)?e:void 0,content:eM,slug:J.slug,expectedUpdatedAt:null!=(t=J.updatedAt)?t:void 0,status:tA,updateIfExists:!0,summary:null!=eT?eT:void 0})}),s=await l.json();if(!s.success){let e=409===l.status?" Relancer l'analyse de l'article avant de r\xe9essayer.":"";throw Error("".concat(s.error||"Injection failed",".").concat(e))}h.Ay.success(s.publiclyVisible?"Retouche publi\xe9e, en ligne : ".concat(s.slug):"Retouche inject\xe9e en brouillon : ".concat(s.slug)),U(e=>e?{...e,updatedAt:null}:e)}catch(e){h.Ay.error("Erreur injection: "+e.message)}finally{eK(!1)}}},tk=async e=>{ti(e),to(null),td(!0);try{let l=await fetch("/api/backoffice/seo-tracker/analyze",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({keyword:e})});if((l.headers.get("content-type")||"").includes("application/json")){let e=await l.json();to(e.error||"Erreur")}else{var t;let e=null==(t=l.body)?void 0:t.getReader(),s=new TextDecoder,r="";if(e)for(;;){let{done:t,value:l}=await e.read();if(t)break;r+=s.decode(l,{stream:!0}),to(r)}r||to("Aucun r\xe9sultat")}}catch(e){to("Erreur: "+e.message)}finally{ti(null)}},tz=async()=>{eQ(!0),e6([]),e2(!1),e0(null),e3([]),e7(null),tl(e9);try{var e;let t=null==(e=(await fetch("/api/backoffice/seo/edit-selection/audit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({typeFilter:eY,thresholds:eJ,gscPeriodDays:e9})})).body)?void 0:e.getReader(),l=new TextDecoder,s="";if(!t)throw Error("No reader");for(;;){let{done:e,value:r}=await t.read();if(e)break;let n=(s+=l.decode(r,{stream:!0})).split("\n");for(let e of(s=n.pop()||"",n))if(e.startsWith("data: "))try{let t=JSON.parse(e.slice(6));"progress"===t.type?e0(t):"article"===t.type?e6(e=>[...e,t]):"gsc_status"===t.type?e7({available:t.available,error:t.error,articlesWithGsc:t.articlesWithGsc}):"done"===t.type?(e2(!0),e3(t.worklist||[])):"error"===t.type&&h.Ay.error(t.message)}catch{}}}catch(e){h.Ay.error("Erreur audit: "+e.message)}finally{eQ(!1)}},tC=(0,r.useMemo)(()=>[...e1].sort((e,t)=>
1e.healthScore-t.healthScore),[e1]),tD=(0,r.useMemo)(()=>{let e=new Set(["position_loss","seasonality","ctr_loss"]);return e1.filter(t=>{var l;return t.gsc&&e.has(null==(l=t.gsc.decay)?void 0:l.status)}).map(e=>({...e,clicksLost:(e.gsc.prevClicks||0)-(e.gsc.clicks||0)})).sort((e,t)=>t.clicksLost-e.clicksLost)},[e1]),tO=e=>{var t,l,r,n,i,a;let o=e.gsc;if(!o)return null;let c=ec[null==(t=o.decay)?void 0:t.status]||ec.stable;return(0,s.jsxs)("div",{style:{padding:"4px 8px"},children:[(0,s.jsxs)(m.A,{wrap:!0,size:16,style:{marginBottom:8},children:[(0,s.jsx)(g.A,{title:"Impressions (".concat(tt,"j)"),value:o.impressions,valueStyle:{fontSize:16},suffix:null!==o.clicksDeltaPct?(0,s.jsxs)(el,{type:o.clicksDelta>=0?"success":"danger",style:{fontSize:12},children:[o.clicksDelta>=0?"+":"",o.clicksDeltaPct,"% clics"]}):void 0}),(0,s.jsx)(g.A,{title:"Clics (".concat(tt,"j)"),value:o.clicks,valueStyle:{fontSize:16}}),(0,s.jsx)(g.A,{title:"Position moy.",value:o.position,precision:1,valueStyle:{fontSize:16}}),(0,s.jsx)(g.A,{title:"CTR",value:(100*o.ctr).toFixed(1),suffix:"%",valueStyle:{fontSize:16}}),(0,s.jsxs)("div",{children:[(0,s.jsx)(el,{type:"secondary",style:{fontSize:12,display:"block"},children:"Diagnostic tendance"}),(0,s.jsx)(y.A,{color:c.color,children:c.label}),e.trackerConfirmsLoss&&(0,s.jsx)(x.A,{title:"Le position-tracker (DataForSEO) confirme la d\xe9gradation",children:(0,s.jsx)(y.A,{color:"volcano",children:"tracker â"})}),(null==(l=o.decay)?void 0:l.explanation)&&(0,s.jsx)("div",{children:(0,s.jsx)(el,{type:"secondary",style:{fontSize:11},children:o.decay.explanation})})]})]}),(null==(r=o.strikingDistance)?void 0:r.length)>0&&(0,s.jsxs)("div",{style:{marginBottom:6},children:[(0,s.jsxs)(el,{strong:!0,style:{fontSize:12},children:["\uD83C\uDFAF Striking distance (page 2 â 1) â ",o.strikingCount," requ\xeate(s) :"]})," ",o.strikingDistance.map(e=>(0,s.jsxs)(y.A,{color:"blue",style:{fontSize:11},children:[e.query," \xb7 #",e.position," \xb7 ",e.impressions," imp \xb7 +",e.potentialClicks," clics"]},e.query)),o.strikingCount>o.strikingDistance.length&&(0,s.jsxs)(el,{type:"secondary",style:{fontSize:11},children:["+",o.strikingCount-o.strikingDistance.length," autres"]})]}),(null==(n=o.ctrIssues)?void 0:n.length)>0&&(0,s.jsxs)("div",{style:{marginBottom:6},children:[(0,s.jsxs)(el,{strong:!0,style:{fontSize:12},children:["â¡ CTR sous-performant (r\xe9\xe9crire title/meta) â ",o.ctrCount," requ\xeate(s) :"]})," ",o.ctrIssues.map(e=>(0,s.jsxs)(y.A,{color:"orange",style:{fontSize:11},children:[e.query," \xb7 #",e.position," \xb7 CTR ",(100*e.ctr).toFixed(1),"% vs ",(100*e.expectedCtr).toFixed(1),"% \xb7 -",e.lostClicks," clics"]},e.query)),o.ctrCount>o.ctrIssues.length&&(0,s.jsxs)(el,{type:"secondary",style:{fontSize:11},children:["+",o.ctrCount-o.ctrIssues.length," autres"]})]}),(null==(i=o.cannibalization)?void 0:i.length)>0&&(0,s.jsxs)("div",{style:{marginBottom:6},children:[(0,s.jsxs)(el,{strong:!0,style:{fontSize:12},children:["\uD83E\uDDF9 Cannibalisation â ",o.cannibalCount," requ\xeate(s) :"]})," ",o.cannibalization.map(e=>(0,s.jsx)(x.A,{title:e.pages.map(e=>"".concat(e.url," (#").concat(e.position,", ").concat(e.impressions," imp)")).join(" | "),children:(0,s.jsxs)(y.A,{color:"purple",style:{fontSize:11},children:[e.query," \xb7 ",e.pages.length," URLs"]})},e.query)),o.cannibalCount>o.cannibalization.length&&(0,s.jsxs)(el,{type:"secondary",style:{fontSize:11},children:["+",o.cannibalCount-o.cannibalization.length," autres"]})]}),(null==(a=o.risingDemand)?void 0:a.length)>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)(el,{strong:!0,style:{fontSize:12},children:["\uD83D\uDCC8 Demande montante â ",o.risingCount," requ\xeate(s) :"]})," ",o.risingDemand.map(e=>(0,s.jsxs)(y.A,{color:"green",style:{fontSize:11},children:[e.query," \xb7 +",e.growthPct,"% \xb7 ",e.impressions," imp \xb7 #",e.position]},e.query)),o.risingCount>o.risingDemand.length&&(0,s.jsxs)(el,{type:"secondary",style:{fontSize:11},children:["+",o.risingCount-o.risingDemand.length," autres"]})]})]})},t_=(0,r.useMemo)(()=>{let e={"Type 1 - Reconditionn\xe9":[],"Type 2 - Meilleur":[],"Type 3 - Budget":[],"Type 4 - Multi-gamme":[],Autre:[]};for(let t of l)/reconditionn[eé]/.test(t.slug)?e["Type 1 - Reconditionn\xe9"].push(t):/moins-\d+-euros/.test(t.slug)?e["Type 3 - Budget"].push(t):/^meilleur-(?:iphone|samsung|apple|google|pixel|xiaomi|macbook|ipad|galaxy)/.test(t.slug)?e["Type 2 - Meilleur"].push(t):/^meilleur/.test(t.slug)?e["Type 4 - Multi-gamme"].push(t):e.Autre.push(t);return e},[l]);return(0,s.jsxs)(o.U,{children:[(0,s.jsx)(a(),{children:(0,s.jsx)("title",{children:"R\xe9optimisation Articles S\xe9lection | Backoffice"})}),(0,s.jsxs)("div",{className:X().container,children:[(0,s.jsx)(et,{level:3,children:"R\xe9optimisation Articles S\xe9lection"}),(0,s.jsx)(f.A,{activeKey:eW,onChange:e$,items:[{key:"edit",label:"\xc9diter un article"},{key:"audit",label:(0,s.jsxs)("span",{children:[(0,s.jsx)(E.A,{})," Audit global"]})}],style:{marginBottom:16}}),"audit"===eW&&(0,s.jsxs)("div",{children:[(0,s.jsx)(j.A,{style:{marginBottom:16},children:(0,s.jsxs)(m.A,{direction:"vertical",style:{width:"100%"},children:[(0,s.jsxs)(el,{children:["Analyse les articles de s\xe9lection sur deux axes : ",(0,s.jsx)(el,{strong:!0,children:"mon\xe9tisation"})," (mod\xe8les \xe0 faibles m\xe9triques : 0 offres, peu de clics marchands, peu de visites) et ",(0,s.jsx)(el,{strong:!0,children:"SEO via Google Search Console"})," (striking distance, CTR sous-performant, decay d\xe9compos\xe9, cannibalisation, demande montante). Le plan d'action est tri\xe9 par gain SEO r\xe9cup\xe9rable."]}),(0,s.jsxs)(m.A,{wrap:!0,children:[(0,s.jsx)(el,{strong:!0,children:"Types :"}),[{value:1,label:"Meilleur [Brand] reconditionn\xe9"},{value:2,label:"Meilleur [Brand]"},{value:3,label:"Budget (< Xâ¬)"},{value:4,label:"Multi-gamme"}].map(e=>(0,s.jsx)(y.A.CheckableTag,{checked:eY.includes(e.value),onChange:t=>{eU(l=>t?[...l,e.value]:l.filter(t=>t!==e.value))},children:e.label},e.value))]}),(0,s.jsxs)(m.A,{wrap:!0,children:[(0,s.jsx)(el,{strong:!0,children:"Seuils :"}),(0,s.jsxs)("span",{children:[(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:"Offres min"})," ",(0,s.jsx)(v.A,{size:"small",min:0,max:50,value:eJ.minOffers,onChange:e=>eG(t=>({...t,minOffers:null!=e?e:3})),style:{width:60}})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:"Clics min (30j)"})," ",(0,s.jsx)(v.A,{size:"small",min:0,max:100,value:eJ.minClicks,onChange:e=>eG(t=>({...t,minClicks:null!=e?e:5})),style:{width:60}})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:"Visites min (30j)"})," ",(0,s.jsx)(v.A,{size:"small",min:0,max:500,value:eJ.minPageViews,onChange:e=>eG(t=>({...t,minPageViews:null!=e?e:10})),style:{width:60}})]}),(0,s.jsxs)("span",{children:[(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:"Age max (ans)"})," ",(0,s.jsx)(v.A,{size:"small",min:1,max:10,value:eJ.maxAge,onChange:e=>eG(t=>({...t,maxAge:null!=e?e:4})),style:{width:60}})]})]}),(0,s.jsxs)(m.A,{wrap:!0,children:[(0,s.jsx)(el,{strong:!0,children:"P\xe9riode GSC :"}),(0,s.jsx)(A.A,{size:"small",value:e9,onChange:e=>te(e),options:[{label:"30 jours",value:30},{label:"90 jours",value:90}]}),(0,s.jsx)(x.A,{title:"Fen\xeatre de comparaison GSC : la p\xe9riode choisie est compar\xe9e \xe0 la p\xe9riode pr\xe9c\xe9dente de m\xeame dur\xe9e (decay, demande montante).",children:(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:"vs p\xe9riode pr\xe9c\xe9dente de m\xeame dur\xe9e"})})]}),(0,s.jsx)(b.Ay,{type:"primary",icon:(0,s.jsx)(E.A,{}),onClick:tz,loading:eX,disabled:0===eY.length,children:eX?"Audit en cours...":"Lancer l'audit (".concat(eY.length," type").concat(eY.length>
11?"s":"",")")}),eZ&&eX&&(0,s.jsx)(S.A,{percent:Math.round(eZ.current/eZ.total*100),format:()=>"".concat(eZ.current,"/").concat(eZ.total),size:"small"})]})}),e5&&!e5.available&&(0,s.jsx)(w.A,{type:"warning",showIcon:!0,style:{marginBottom:16},message:"Google Search Console indisponible",description:"L'audit SEO (striking distance, CTR, decay, cannibalisation) est d\xe9sactiv\xe9. ".concat(e5.error||"GSC non configur\xe9."," L'audit mon\xe9tisation (mod\xe8les) reste actif.")}),e8.length>0&&(0,s.jsxs)(j.A,{title:(0,s.jsxs)("span",{children:["\uD83C\uDFAF Plan d'action SEO â ",e8.length," article(s) \xe0 optimiser (tri\xe9 par gain r\xe9cup\xe9rable)"]}),style:{marginBottom:16},size:"small",children:[(0,s.jsx)(w.A,{type:"info",showIcon:!0,style:{marginBottom:12},message:(0,s.jsxs)(m.A,{direction:"vertical",size:2,children:[(0,s.jsxs)(el,{style:{fontSize:12},children:[(0,s.jsx)(el,{strong:!0,children:"Gain SEO"})," = clics organiques estim\xe9s r\xe9cup\xe9rables sur la p\xe9riode (rouge = grosse opportunit\xe9, pas une alerte)."]}),(0,s.jsxs)(el,{style:{fontSize:12},children:[(0,s.jsx)(el,{strong:!0,children:"Quadrant"})," = trafic GSC \xd7 qualit\xe9 des mod\xe8les : \uD83D\uDD25 Top priorit\xe9 (fort trafic + mod\xe8les faibles = trafic g\xe2ch\xe9) \xb7 â
Maintenir (fort trafic + bons mod\xe8les) \xb7 \uD83D\uDD27 Push SEO \xb7 \uD83D\uDDD1ï¸ Basse priorit\xe9."]}),(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:"\uD83D\uDCA1 Clique sur le chevron \xe0 gauche d'une ligne pour voir les requ\xeates exactes (CTR r\xe9el vs attendu, position, impressions)."})]})}),(0,s.jsx)(c.J,{dataSource:e8,rowKey:"slug",size:"small",pagination:e8.length>10&&{pageSize:10},expandable:{rowExpandable:e=>e1.some(t=>t.slug===e.slug&&t.gsc),expandedRowRender:e=>{let t=e1.find(t=>t.slug===e.slug);return t?tO(t):null}},columns:[{title:"Gain SEO",dataIndex:"seoOpportunityScore",key:"score",width:110,render:e=>(0,s.jsx)(x.A,{title:"Clics organiques estim\xe9s r\xe9cup\xe9rables si l'article est optimis\xe9",children:(0,s.jsxs)(y.A,{color:e>=50?"red":e>=15?"orange":"blue",children:["+",e," clics/",tt,"j"]})})},{title:"Article",dataIndex:"title",key:"title",render:(e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsx)(el,{strong:!0,children:e}),(0,s.jsx)("br",{}),(0,s.jsxs)(el,{type:"secondary",style:{fontSize:11},children:[t.slug," \xb7 ",t.impressions," impressions/",tt,"j"]})]})},{title:"Quadrant",dataIndex:"quadrant",key:"quadrant",width:140,render:e=>{let t=eo[e]||eo.low;return(0,s.jsx)(x.A,{title:t.hint,children:(0,s.jsx)(y.A,{color:t.color,children:t.label})})}},{title:"Actions",dataIndex:"topActions",key:"actions",render:e=>(0,s.jsx)(m.A,{direction:"vertical",size:1,children:(e||[]).map((e,t)=>(0,s.jsxs)(el,{style:{fontSize:12},children:["⢠",e]},t))})},{title:"",key:"go",width:80,render:(e,t)=>(0,s.jsx)(b.Ay,{type:"link",size:"small",onClick:()=>{W(t.slug),e$("edit")},children:"\xc9diter"})}]})]}),tD.length>0&&(0,s.jsxs)(j.A,{title:(0,s.jsxs)("span",{children:["\uD83D\uDCC9 Articles en baisse vs ",tt,"j pr\xe9c\xe9dents â ",tD.length," article(s)"]}),style:{marginBottom:16},size:"small",children:[(0,s.jsx)(w.A,{type:"info",showIcon:!0,style:{marginBottom:12},message:(0,s.jsxs)(el,{style:{fontSize:12},children:["D\xe9composition de la baisse de clics : ",(0,s.jsx)(el,{strong:!0,children:"\uD83D\uDD27 Perte de position"})," (rankings perdus â r\xe9opti le contenu) \xb7"," ",(0,s.jsx)(el,{strong:!0,children:"\uD83C\uDF19 Saisonnalit\xe9"})," (position stable, demande en baisse â ne pas toucher, \xe7a rebondira) \xb7"," ",(0,s.jsx)(el,{strong:!0,children:"â¡ Perte de CTR"})," (position + demande stables â SERP feature / titre)."]})}),(0,s.jsx)(c.J,{dataSource:tD,rowKey:"slug",size:"small",pagination:tD.length>10&&{pageSize:10},expandable:{rowExpandable:e=>!!e.gsc,expandedRowRender:e=>tO(e)},columns:[{title:"Diagnostic",key:"diag",width:230,filters:[{text:"\uD83D\uDD27 Perte de position",value:"position_loss"},{text:"\uD83C\uDF19 Saisonnalit\xe9",value:"seasonality"},{text:"â¡ Perte de CTR",value:"ctr_loss"}],onFilter:(e,t)=>{var l,s;return(null==(s=t.gsc)||null==(l=s.decay)?void 0:l.status)===e},render:(e,t)=>{var l,r;let n=ec[null==(r=t.gsc)||null==(l=r.decay)?void 0:l.status]||ec.stable;return(0,s.jsx)(y.A,{color:n.color,children:n.label})}},{title:"Article",dataIndex:"title",key:"title",render:(e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsx)(el,{strong:!0,children:e}),(0,s.jsx)("br",{}),(0,s.jsx)(el,{type:"secondary",style:{fontSize:11},children:t.slug})]})},{title:"Clics",key:"clicks",width:150,sorter:(e,t)=>e.clicksLost-t.clicksLost,defaultSortOrder:"descend",render:(e,t)=>(0,s.jsxs)("span",{children:[(0,s.jsx)(el,{children:t.gsc.clicks})," ",(0,s.jsxs)(el,{type:"secondary",style:{fontSize:11},children:["(pr\xe9c. ",t.gsc.prevClicks,")"]})," ",null!==t.gsc.clicksDeltaPct&&(0,s.jsxs)(y.A,{color:"red",style:{fontSize:10},children:[t.gsc.clicksDeltaPct,"%"]})]})},{title:"Position",key:"pos",width:130,render:(e,t)=>{var l,r;let n=null!=(r=null==(l=t.gsc.decay)?void 0:l.positionDelta)?r:0;return(0,s.jsxs)("span",{children:[(0,s.jsxs)(el,{children:["#",t.gsc.position]})," ",(0,s.jsxs)(el,{type:"secondary",style:{fontSize:11},children:["(pr\xe9c. #",t.gsc.prevPosition,")"]})," ",n>=.5&&(0,s.jsxs)(y.A,{color:"red",style:{fontSize:10},children:["+",n.toFixed(1)]}),n<=-.5&&(0,s.jsx)(y.A,{color:"green",style:{fontSize:10},children:n.toFixed(1)})]})}},{title:"",key:"go",width:80,render:(e,t)=>{var l,r;return(null==(r=t.gsc)||null==(l=r.decay)?void 0:l.status)==="seasonality"?(0,s.jsx)(x.A,{title:"Saisonnalit\xe9 : aucune action recommand\xe9e",children:(0,s.jsx)(el,{type:"secondary",style:{fontSize:11},children:"â"})}):(0,s.jsx)(b.Ay,{type:"link",size:"small",onClick:()=>{W(t.slug),e$("edit")},children:"\xc9diter"})}}]})]}),tC.length>0&&(0,s.jsx)(c.J,{dataSource:tC,rowKey:"slug",size:"small",pagination:{pageSize:20},expandable:{rowExpandable:e=>!!e.gsc,expandedRowRender:e=>tO(e)},columns:[{title:"Sant\xe9",dataIndex:"healthScore",key:"health",width:80,sorter:(e,t)=>e.healthScore-t.healthScore,defaultSortOrder:"ascend",render:e=>(0,s.jsxs)(y.A,{color:e>=80?"green":e>=50?"orange":"red",children:[e,"%"]})},{title:"Article",dataIndex:"title",key:"title",render:(e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsx)(el,{strong:!0,children:e}),(0,s.jsx)("br",{}),(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:t.slug})]})},{title:"Type",dataIndex:"articleType",key:"type",width:60,render:e=>(0,s.jsx)(y.A,{children:e})},{title:"Mod\xe8les",dataIndex:"modelCount",key:"models",width:70},{title:"Probl\xe8mes",dataIndex:"issues",key:"issues",render:e=>0===e.length?(0,s.jsx)(y.A,{color:"green",children:"OK"}):e.map((e,t)=>(0,s.jsx)(y.A,{color:"warning",children:e},t))},{title:"SEO",key:"seo",width:140,render:(e,t)=>{let l=t.seoKeywords||[];return 0===l.length?(0,s.jsx)(el,{type:"secondary",style:{fontSize:11},children:"Non track\xe9"}):(0,s.jsx)(m.A,{direction:"vertical",size:1,children:l.map(e=>(0,s.jsxs)("div",{style:{fontSize:11},children:[(0,s.jsx)(el,{style:{fontSize:11},children:e.keyword})," ",null!==e.position?(0,s.jsxs)(y.A,{color:e.position<=3?"green":e.position<=10?"blue":e.position<=20?"orange":"red",style:{fontSize:10},children:["#",e.position]}):(0,s.jsx)(y.A,{style:{fontSize:10},children:"N/A"}),null!==e.bestPosition&&e.bestPosition!==e.position&&(0,s.jsxs)(el,{type:"secondary",style:{fontSize:10},children:[" ATH #",e.bestPosition]})]},e.keyword))})}},{title:"GSC",key:"gsc",width:150,sorter:(e,t)=>{var l,s;return((null==(l=e.gsc)?void 0:l.seoOpportunityScore)||0)-((null==(s=t.gsc)?void 0:s.seoOpportunityScore)||0)},render:(e,t)=>{var l,r;let n=t.gsc;if(!n)return(0,s.jsx)(el,{type:"secondary",style:{fontSize:11},children:"â"});let i=t.quadrant?eo[t.quadrant]:null,a=ec[null==(l=n.decay)?void 0:l.status]||ec.stable;return(0,s.jsxs)(m.A,{direction:"vertical",size:1,children:[n.seoOpportunityScore>0&&(0,s.jsxs)(y.A,{color:n.seoOpportunityScore>=50?"red":n.seoOpportunityScore>=15?"orange":"blue",style:{fontSize:10},children:["+",n.seoOpportunityScore," clics/",tt,"j"]}),i&&(0,s.jsx)(x.A,{title:i.hint,children:(0,s.jsx)(y.A,{color:i.color,style:{fontSize:10},children:i.label})}),(null==(r=n.decay)?void 0:r.status)&&"stable"!==n.decay.status&&(0,s.jsx)(y.A,{color:a.color,style:{fontSize:10},children:a.label}),(0,s.jsxs)(el,{type:"secondary",style:{fontSize:10},children:[n.impressions," imp \xb7 #",n.position]})]})}},{title:"Mod\xe8les probl\xe9matiques",key:"detail",render:(e,t)=>{let l=t.models.filter(e=>e.issues.length>0);return 0===l.length?null:(0,s.jsx)(m.A,{direction:"vertical",size:2,children:l.map(e=>{var t;return(0,s.jsx)("div",{children:(0,s.jsxs)(el,{type:"secondary",style:{fontSize:12},children:[e.modelName,": ",null!=(t=e.nbOffers)?t:"?"," offres, ",e.clicks30d," clics, ",e.pageViews30d," visites"]})},e.modelName)})})}},{title:"",key:"action",width:90,render:(e,t)=>(0,s.jsx)(b.Ay,{type:"link",size:"small",onClick:()=>{W(t.slug),e$("edit")},children:"\xc9diter"})}]}),e4&&0===tC.length&&(0,s.jsx)(k.A,{description:"Aucun article de s\xe9lection trouv\xe9"}),e4&&tC.length>0&&(0,s.jsx)(w.A,{type:"info",message:"Audit termin\xe9 : ".concat(tC.filter(e=>
1e.healthScore<100).length," article(s) avec des mod\xe8les \xe0 revoir sur ").concat(tC.length),style:{marginTop:16}})]}),"edit"===eW&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.A,{style:{marginTop:16,marginBottom:16},children:(0,s.jsxs)(m.A,{direction:"vertical",style:{width:"100%"},children:[(0,s.jsx)(el,{strong:!0,children:"S\xe9lectionner un article"}),(0,s.jsxs)(m.A.Compact,{style:{width:"100%"},children:[(0,s.jsx)(u.A,{showSearch:!0,placeholder:"Rechercher un article par titre ou slug...",style:{width:"100%"},loading:d,value:K,onChange:e=>W(e),filterOption:(e,t)=>{var l,s;return null!=(s=null==t||null==(l=t.label)?void 0:l.toLowerCase().includes(e.toLowerCase()))&&s},optionFilterProp:"label",optionLabelProp:"selectedLabel",children:Object.entries(t_).map(e=>{let[t,l]=e;return l.length>0?(0,s.jsx)(er,{label:"".concat(t," (").concat(l.length,")"),children:l.map(e=>(0,s.jsx)(es,{value:e.slug,label:"".concat(e.title," ").concat(e.slug),selectedLabel:e.title,children:(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(el,{strong:!0,children:e.title}),(0,s.jsx)("br",{}),(0,s.jsx)(el,{type:"secondary",style:{fontSize:12},children:e.slug})]}),e.lastUpdated&&(0,s.jsx)(el,{type:"secondary",style:{fontSize:11},children:new Date(e.lastUpdated).toLocaleDateString("fr")})]})},e.slug))},t):null})}),K&&(0,s.jsx)(x.A,{title:"Voir l'article sur le blog",children:(0,s.jsx)(b.Ay,{icon:(0,s.jsx)(T.A,{}),href:"https://www.combak.co/blog/".concat(K),target:"_blank"})})]})]})}),Q&&(0,s.jsx)(j.A,{children:(0,s.jsx)(z.A,{tip:"Parsing de l'article et chargement des m\xe9triques..."})}),J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.A,{size:"small",style:{marginBottom:16},children:(0,s.jsxs)(m.A,{split:(0,s.jsx)(C.A,{type:"vertical"}),children:[(0,s.jsx)(el,{strong:!0,children:J.title}),(0,s.jsx)(y.A,{color:"blue",children:ei[J.articleType]||"Type ".concat(J.articleType)}),J.category&&(0,s.jsx)(y.A,{children:J.category}),J.brand&&(0,s.jsx)(y.A,{color:"purple",children:J.brand}),J.budget&&(0,s.jsxs)(y.A,{color:"gold",children:["< ",J.budget,"â¬"]}),(0,s.jsxs)(el,{type:"secondary",children:[J.models.length," mod\xe8les"]})]})}),(0,s.jsx)(p.A,{defaultActiveKey:J.seoKeywords.length>0?["seo"]:[],style:{marginBottom:16},children:(0,s.jsx)(en,{header:(0,s.jsxs)(m.A,{children:[(0,s.jsx)(N.A,{}),(0,s.jsxs)("span",{children:["Positions SEO (",J.seoKeywords.length," mot",1!==J.seoKeywords.length?"s":"","-cl\xe9",1!==J.seoKeywords.length?"s":"",")"]})]}),children:0===J.seoKeywords.length?(0,s.jsx)(k.A,{description:"Aucun mot-cl\xe9 track\xe9 pour cet article"}):(0,s.jsx)(c.J,{dataSource:J.seoKeywords,rowKey:"keyword",size:"small",pagination:!1,columns:[{title:"Mot-cl\xe9",dataIndex:"keyword",key:"keyword",render:e=>(0,s.jsx)(el,{strong:!0,children:e})},{title:"Position",dataIndex:"latestPosition",key:"position",width:90,render:e=>null===e?(0,s.jsx)(y.A,{children:"N/A"}):e<=3?(0,s.jsxs)(y.A,{color:"green",children:["#",e]}):e<=10?(0,s.jsxs)(y.A,{color:"blue",children:["#",e]}):e<=20?(0,s.jsxs)(y.A,{color:"orange",children:["#",e]}):(0,s.jsxs)(y.A,{color:"red",children:["#",e]})},{title:"ATH",dataIndex:"bestPosition",key:"ath",width:70,render:e=>null!==e?"#".concat(e):"-"},{title:"Tendance",key:"trend",width:100,render:(e,t)=>(0,s.jsx)(x.A,{title:"Voir l'historique d\xe9taill\xe9",children:(0,s.jsx)("span",{style:{cursor:"pointer"},onClick:()=>tr(t),children:(e=>{if(!e||e.length<2)return(0,s.jsx)(el,{type:"secondary",children:"-"});let t=[...e].reverse().map(e=>e.position).filter(e=>null!==e);if(t.length<2)return(0,s.jsx)(el,{type:"secondary",children:"-"});let l=t[t.length-1]-t[0],r=l<0?"var(--semantic-success)":l>0?"var(--semantic-error)":"var(--semantic-info)";if(t.every(e=>e===t[0]))return(0,s.jsxs)("svg",{width:80,height:24,className:X().sparkline,children:[(0,s.jsx)("line",{x1:3,y1:12,x2:77,y2:12,stroke:r,strokeWidth:"2"}),(0,s.jsxs)("text",{x:40,y:8,textAnchor:"middle",fontSize:9,fill:r,children:["#",t[0]]})]});let n=Math.max(...t),i=Math.min(...t),a=n-i,o=t.map((e,l)=>{let s=3+l/(t.length-1)*74;return"".concat(s,",").concat(3+(e-i)/a*18)}).join(" ");return(0,s.jsx)("svg",{width:80,height:24,className:X().sparkline,children:(0,s.jsx)("polyline",{points:o,fill:"none",stroke:r,strokeWidth:"2"})})})(t.history)})})},{title:"Actions",key:"actions",width:120,render:(e,t)=>(0,s.jsx)(x.A,{title:"Analyser la position (IA)",children:(0,s.jsx)(b.Ay,{type:"text",size:"small",icon:(0,s.jsx)(I.A,{}),loading:tn===t.keyword,onClick:()=>tk(t.keyword),children:"Analyser"})})}]})},"seo")}),(0,s.jsxs)(j.A,{title:"Mod\xe8les actuels (".concat(J.models.length,")"),style:{marginBottom:16},extra:(0,s.jsxs)(m.A,{children:[(0,s.jsx)(b.Ay,{icon:(0,s.jsx)(P.A,{}),onClick:tx,loading:tg,children:"Auto-suggest tout"}),(0,s.jsx)(b.Ay,{icon:(0,s.jsx)(L.A,{}),onClick:tf,children:"Ajouter un mod\xe8le"}),(eA.size>0||eS.length>0)&&(0,s.jsxs)(s.Fragment,{children:[eA.size>0&&(0,s.jsxs)(y.A,{color:"green",children:[eA.size," swap(s)"]}),eS.length>0&&(0,s.jsxs)(y.A,{color:"blue",children:[eS.length," ajout(s)"]}),(0,s.jsx)(b.Ay,{size:"small",icon:(0,s.jsx)(R.A,{}),onClick:()=>{eb(new Map),ew([]),eE(null)},children:"Annuler tout"})]})]}),children:[J.models.map(e=>{var t,l,r;let n=eA.get(e.modelName),i=e.warnings.length>0;return(0,s.jsxs)("div",{className:"".concat(X().modelCard," ").concat(n?X().modelCardSwapped:""," ").concat(i&&!n?X().modelCardWarning:""),children:[(0,s.jsx)("div",{className:X().modelHeader,children:(0,s.jsxs)(m.A,{children:[(0,s.jsxs)(y.A,{color:"default",children:["#",e.rank]}),e.tier&&(0,s.jsx)(y.A,{color:"geekblue",children:e.tier}),(0,s.jsx)(el,{strong:!0,style:{fontSize:16},children:n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:X().oldModelName,children:e.modelName}),(0,s.jsx)(B.A,{style:{margin:"0 8px",color:"var(--semantic-success)"}}),(0,s.jsx)("span",{className:X().newModelName,children:(0,G.xr)(n.newModel.brand,n.newModel.name)})]}):e.modelName}),e.warnings.map(e=>(0,s.jsx)(y.A,{color:"warning",icon:(0,s.jsx)(H.A,{}),children:e},e))]})}),(0,s.jsxs)("div",{className:X().modelMetrics,children:[(0,s.jsx)(g.A,{title:"Ann\xe9e",value:null!=(t=e.releaseYear)?t:"-",formatter:e=>String(e),valueStyle:{fontSize:14}}),(0,s.jsx)(g.A,{title:"Offres",value:null!=(l=e.nbOffers)?l:"-",valueStyle:{fontSize:14}}),(0,s.jsx)(x.A,{title:"Clics sortants vers les marchands (bouton 'Voir l'offre') â 30 derniers jours",children:(0,s.jsx)("div",{children:(0,s.jsx)(g.A,{title:"Clics marchands (30j)",value:e.clicks30d,valueStyle:{fontSize:14}})})}),(0,s.jsx)(x.A,{title:"Visites sur la page produit Combak de ce mod\xe8le â 30 derniers jours",children:(0,s.jsx)("div",{children:(0,s.jsx)(g.A,{title:"Visites page (30j)",value:e.pageViews30d,valueStyle:{fontSize:14}})})}),(0,s.jsx)(x.A,{title:"Ventes attribu\xe9es via affiliation â 30 derniers jours",children:(0,s.jsx)("div",{children:(0,s.jsx)(g.A,{title:"Conversions (30j)",value:e.conversions30d,valueStyle:{fontSize:14}})})}),(0,s.jsx)(g.A,{title:"Prix min",value:null!=(r=e.minPrice)?r:"-",suffix:e.minPrice?"â¬":"",valueStyle:{fontSize:14}})]}),(0,s.jsxs)("div",{className:X().modelActions,children:[(0,s.jsx)(b.Ay,{size:"small",icon:(0,s.jsx)(P.A,{}),onClick:()=>th(e.modelName,e.objectID),children:"Suggestions"}),n&&(0,s.jsx)(b.Ay,{size:"small",icon:(0,s.jsx)(R.A,{}),onClick:()=>{var t;return t=e.modelName,void eb(e=>{let l=new Map(e);return l.delete(t),l})},children:"Annuler swap"})]})]},e.modelName)}),eS.map((e,t)=>{var l,r;return(0,s.jsxs)("div",{className:"".concat(X().modelCard," ").concat(X().modelCardAdded),children:[(0,s.jsx)("div",{className:X().modelHeader,children:(0,s.jsxs)(m.A,{children:[(0,s.jsxs)(y.A,{color:"blue",children:["#",J.models.length+t+1," (nouveau)"]}),(0,s.jsxs)(el,{strong:!0,style:{fontSize:16},children:[(0,s.jsx)(L.A,{style:{marginRight:8,color:"var(--semantic-info, #1677ff)"}}),(0,G.xr)(e.brand,e.name)]})]})}),(0,s.jsxs)("div",{className:X().modelMetrics,children:[(0,s.jsx)(g.A,{title:"Ann\xe9e",value:null!=(l=e.releaseYear)?l:"-",formatter:e=>String(e),valueStyle:{fontSize:14}}),(0,s.jsx)(g.A,{title:"Offres",value:null!=(r=e.nbOffers)?r:0,valueStyle:{fontSize:14}}),(0,s.jsx)(g.A,{title:"Clics (30j)",value:e.clicks30d,valueStyle:{fontSize:14}}),e.minPrice&&(0,s.jsx)(g.A,{title:"Prix min",value:e.minPrice,suffix:"â¬",valueStyle:{fontSize:14}})]}),(0,s.jsx)("div",{className:X().modelActions,children:(0,s.jsx)(b.Ay,{size:"small",danger:!0,icon:(0,s.jsx)(F.A,{}),onClick:()=>{var t;return t=e.objectID,void ew(e=>e.filter(e=>e.objectID!==t))},children:"Retirer"})})]},e.objectID)})]}),(0,s.jsxs)("div",{className:X().actionBar,children:[(0,s.jsx)(u.A,{value:eL,onChange:eR,style:{width:200},size:"small",children:Z.map(e=>(0,s.jsx)(er,{label:e.label,children:(e.models||e.options||[]).map(e=>(0,s.jsx)(es,{value:e.value||e.id,children:e.label||e.baseLabel},e.value||e.id))},e.label))}),(0,s.jsx)(x.A,{title:"Activer la recherche web pour enrichir les sections avec des infos r\xe9centes",children:(0,s.jsx)(b.Ay,{size:"small",type:eB?"primary":"default",onClick:()=>eH(!eB),icon:(0,s.jsx)(q.A,{}),children:"Web"})}),(0,s.jsxs)(b.Ay,{type:"primary",icon:(0,s.jsx)(I.A,{}),onClick:tj,loading:eC,disabled:0===eA.size&&0===eS.length,children:["Reg\xe9n\xe9rer (",eA.size," swap",1!==eA.size?"s":"",eS.length>0?", ".concat(eS.length," ajout").concat(1!==eS.length?"s":""):"",")"]}),eM&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Ay,{icon:(0,s.jsx)(T.A,{}),onClick:()=>eq(!0),children:"Preview"}),(0,s.jsx)(x.A,{title:e,children:(0,s.jsx)(b.Ay,{type:"primary",icon:(0,s.jsx)($,{}),onClick:tw,loading:eV,disabled:!tb,children:tS})}),e&&(0,s.jsx)(el,{type:"secondary",children:e})]})]}),eM&&eI&&(eI.skippedSwaps.length>0||eI.warnings.length>0)&&(0,s.jsx)(w.A,{type:"warning",showIcon:!0,style:{marginTop:16},message:eI.skippedSwaps.length>0?"Non remplac\xe9".concat(eI.skippedSwaps.length>
11?"s":""," : ").concat(eI.skippedSwaps.join(", ")):"R\xe9g\xe9n\xe9ration avec avertissements",description:eI.warnings.length>0&&(0,s.jsx)("ul",{style:{margin:0,paddingLeft:20},children:eI.warnings.map(e=>(0,s.jsx)("li",{children:e},e))})}),eC&&eO&&(0,s.jsx)(j.A,{style:{marginTop:16},children:(0,s.jsx)(D.A,{current:eO.current-1,size:"small",items:Array.from({length:eO.total},(e,t)=>({title:t===eO.current-1?eO.step:"\xc9tape ".concat(t+1)}))})})]})]}),(0,s.jsx)(O.A,{title:"add"===ek?"Ajouter un mod\xe8le":"Suggestions pour remplacer : ".concat(eh||""),open:eu,onClose:()=>ep(!1),width:500,children:(0,s.jsxs)(m.A,{direction:"vertical",style:{width:"100%"},children:[(0,s.jsx)(_.A.Search,{placeholder:"Rechercher un mod\xe8le...",value:ej,onChange:e=>ev(e.target.value),onSearch:tm,enterButton:(0,s.jsx)(q.A,{})}),ex?(0,s.jsx)(z.A,{tip:"Chargement des suggestions..."}):0===eg.length?(0,s.jsx)(k.A,{description:"Aucune suggestion"}):eg.map(e=>{var t;let l="swap"===ek?null==J?void 0:J.models.find(e=>e.modelName===eh):null;return(0,s.jsxs)("div",{className:X().suggestionItem,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(el,{strong:!0,children:(0,G.xr)(e.brand,e.name)}),(0,s.jsxs)("div",{className:X().suggestionMeta,children:[(0,s.jsxs)("span",{children:[e.nbOffers," offres"]}),(0,s.jsxs)("span",{children:[e.clicks30d," clics"]}),(0,s.jsxs)("span",{children:[null!=(t=e.pageViews30d)?t:0," visites"]}),e.minPrice&&(0,s.jsxs)("span",{children:[e.minPrice,"â¬"]}),e.releaseYear&&(0,s.jsx)("span",{children:e.releaseYear})]})]}),(0,s.jsxs)(m.A,{children:[(0,s.jsx)("div",{className:X().scoreBar,children:(0,s.jsx)("div",{style:{width:"".concat(100*e.compositeScore,"%")}})}),(0,s.jsx)(el,{type:"secondary",children:Math.round(100*e.compositeScore)}),(0,s.jsx)(b.Ay,{type:"primary",size:"small",onClick:()=>{var t;"add"===ek?(ew(t=>t.some(t=>t.objectID===e.objectID)?t:[...t,e]),ep(!1),h.Ay.success("+ ".concat((0,G.xr)(e.brand,e.name)," ajout\xe9"))):eh&&l&&(t=l.objectID||"",eb(l=>{let s=new Map(l);return s.set(eh,{oldModelName:eh,oldObjectID:t,newModel:e}),s}),ep(!1),h.Ay.success("".concat(eh," â ").concat((0,G.xr)(e.brand,e.name))))},children:"add"===ek?"Ajouter":"S\xe9lectionner"})]})]},e.objectID)})]})}),(0,s.jsxs)(M.A,{title:"Preview de l'article",open:eF,onCancel:()=>eq(!1),footer:[(0,s.jsx)(b.Ay,{onClick:()=>eq(!1),children:"Fermer"},"close"),(0,s.jsx)(b.Ay,{type:"primary",icon:(0,s.jsx)($,{}),onClick:()=>{eq(!1),tw()},loading:eV,disabled:!tb,children:tS},"inject")],width:"90%",className:X().previewModal,children:[eM&&(0,s.jsx)("div",{className:"rich-text",dangerouslySetInnerHTML:{__html:(0,Y.LS)(eM)}}),eT&&(0,s.jsx)(w.A,{type:"info",message:"Meta description mise \xe0 jour",description:eT,style:{marginTop:16}})]}),(0,s.jsx)(O.A,{title:"Analyse SEO : ".concat(tn||""),open:tc,onClose:()=>td(!1),width:600,children:tn&&!ta?(0,s.jsx)(z.A,{tip:"Analyse IA en cours (peut prendre 30-60s)..."}):ta?(0,s.jsx)("div",{style:{fontSize:14,lineHeight:1.6},dangerouslySetInnerHTML:{__html:(0,Y.LS)(ta.replace(/^#### (.+)$/gm,"<h4>$1</h4>").replace(/^### (.+)$/gm,"<h3>$1</h3>").replace(/^## (.+)$/gm,'<h2 style="margin-top:24px;margin-bottom:8px;font-size:18px">$1</h2>').replace(/^---$/gm,'<hr style="margin:16px 0;border-color:var(--border-secondary)">').replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/^\|(.+)\|$/gm,e=>{let t=e.split("|").filter(Boolean).map(e=>e.trim());if(t.every(e=>/^[-:]+$/.test(e)))return"";let l=(e.includes("---"),"td");return"<tr>"+t.map(e=>"<".concat(l,' style="padding:4px 8px;border:1px solid var(--border-secondary)">').concat(e,"</").concat(l,">")).join("")+"</tr>"}).replace(/((?:<tr>.*<\/tr>\n?)+)/g,'<table style="border-collapse:collapse;margin:8px 0;font-size:13px">$1</table>').replace(/^- (.+)$/gm,"<li>$1</li>").replace(/((?:<li>.*<\/li>\n?)+)/g,'<ul style="margin:8px 0;padding-left:20px">$1</ul>').replace(/^(?!<[hultd/hr])(.+)$/gm,'<p style="margin:4px 0">$1</p>').replace(/<p style="margin:4px 0"><\/p>/g,""))}}):(0,s.jsx)(k.A,{description:"Aucune analyse"})}),(0,s.jsx)(M.A,{title:"Historique positions : ".concat((null==ts?void 0:ts.keyword)||""),open:!!ts,onCancel:()=>tr(null),footer:null,width:600,children:ts&&(()=>{var e,t;let l=[...ts.history].reverse().filter(e=>null!==e.position);if(0===l.length)return(0,s.jsx)(k.A,{description:"Aucune donn\xe9e"});let r=Math.max(...l.map(e=>e.position),20),n=Math.min(...l.map(e=>e.position),1),i=r-n||1;return(0,s.jsxs)("div",{children:[(0,s.jsxs)(m.A,{style:{marginBottom:16},children:[(0,s.jsx)(g.A,{title:"Position actuelle",value:null!=(e=ts.latestPosition)?e:"-",prefix:"#"}),(0,s.jsx)(g.A,{title:"ATH (meilleure)",value:null!=(t=ts.bestPosition)?t:"-",prefix:"#"}),(0,s.jsx)(g.A,{title:"Relev\xe9s",value:l.length})]}),(0,s.jsxs)("svg",{width:540,height:230,style:{display:"block"},children:[[n,Math.round((n+r)/2),r].map(e=>{let t=30+(e-n)/i*140;return(0,s.jsxs)("g",{children:[(0,s.jsx)("line",{x1:30,y1:t,x2:510,y2:t,stroke:"var(--border-secondary)",strokeDasharray:"4"}),(0,s.jsxs)("text",{x:25,y:t+4,textAnchor:"end",fontSize:11,fill:"var(--text-tertiary)",children:["#",e]})]},e)}),(0,s.jsx)("polyline",{points:l.map((e,t)=>{let s=30+t/(l.length-1)*480,r=30+(e.position-n)/i*140;return"".concat(s,",").concat(r)}).join(" "),fill:"none",stroke:"var(--semantic-info)",strokeWidth:"2"}),l.map((e,t)=>{let r=30+t/(l.length-1)*480,a=30+(e.position-n)/i*140,o=e.date?new Date(e.date).toLocaleDateString("fr",{day:"2-digit",month:"2-digit"}):"";return(0,s.jsxs)("g",{children:[(0,s.jsx)("circle",{cx:r,cy:a,r:4,fill:"var(--semantic-info)"}),(0,s.jsxs)("text",{x:r,y:a-8,textAnchor:"middle",fontSize:10,fill:"var(--text-secondary)",children:["#",e.position]}),(t%Math.max(1,Math.floor(l.length/5))==0||t===l.length-1)&&(0,s.jsx)("text",{x:r,y:215,textAnchor:"middle",fontSize:10,fill:"var(--text-tertiary)",children:o})]},t)})]})]})})()})]})]})}ed.getLayout=e=>e},57966:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658),n=l(66946),i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n.A}))})},61123:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658);let n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"};var i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n}))})},64573:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/backoffice/seo/edit-selection-article",function(){return l(57020)}])},64909:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658),n=l(76937),i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n.A}))})},66946:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});let s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},68766:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658);let n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24
1-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};var i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n}))})},70647:(e,t,l)=>{"use strict";l.d(t,{LS:()=>a});var s=l(28484);let r=new Set(["www.youtube.com","www.youtube-nocookie.com","youtube.com","player.vimeo.com","www.koreus.com","open.spotify.com","www.tiktok.com","www.instagram.com","platform.twitter.com"]),n={FORCE_BODY:!0,ALLOWED_TAGS:["#comment","p","h2","h3","h4","h5","li","ul","ol","td","tr","th","table","thead","tbody","caption","a","div","span","strong","em","img","figure","figcaption","br","style","code","iframe","h1","h6","tfoot","b","i","u","s","sub","sup","blockquote","hr","pre","small","mark","dl","dt","dd"],ALLOWED_ATTR:["id","href","class","src","alt","loading","width","height","target","rel","style","scope","frameborder","allowfullscreen","scrolling","title","allow","colspan","rowspan","name","lang","dir","start","type","headers","align","valign"],ALLOW_DATA_ATTR:!0,KEEP_CONTENT:!0},i=!1;function a(e){if("string"!=typeof e||0===e.length)return"";i=!0;try{return s.Ay.sanitize(e,n)}finally{i=!1}}s.Ay.addHook("uponSanitizeElement",(e,t)=>{if(i&&"iframe"===t.tagName&&!function(e){try{let t=new URL(e.trim());return"https:"===t.protocol&&r.has(t.hostname.toLowerCase())}catch{return!1}}("function"==typeof e.getAttribute&&e.getAttribute("src")||"")){var l;null==(l=e.parentNode)||l.removeChild(e)}}),s.Ay.addHook("uponSanitizeAttribute",(e,t)=>{if(!i)return;let l=(t.attrValue||"").trim().toLowerCase();l.startsWith("data:")&&("src"===t.attrName&&"img"===e.nodeName.toLowerCase()&&l.startsWith("data:image/")||(t.keepAttr=!1))})},79580:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658);let n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};var i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n}))})},79687:(e,t,l)=>{"use strict";l.d(t,{A:()=>b});var s=l(68658),r=l(27081),n=l(81646),i=l(46001),a=l.n(i),o=l(54735),c=l(35011),d=l(47220);let u=e=>{let t,{value:l,formatter:r,precision:n,decimalSeparator:i,groupSeparator:a="",prefixCls:o}=e;if("function"==typeof r)t=r(l);else{let e=String(l),r=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(r&&"-"!==e){let e=r[1],l=r[2]||"0",c=r[4]||"";l=l.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"==typeof n&&(c=c.padEnd(n,"0").slice(0,n>0?n:0)),c&&(c="".concat(i).concat(c)),t=[s.createElement("span",{key:"int",className:"".concat(o,"-content-value-int")},e,l),c&&s.createElement("span",{key:"decimal",className:"".concat(o,"-content-value-decimal")},c)]}else t=e}return s.createElement("span",{className:"".concat(o,"-content-value")},t)};var p=l(60101),h=l(15976),m=l(62316);let g=(0,h.OF)("Statistic",e=>[(e=>{let{componentCls:t,marginXXS:l,padding:s,colorTextDescription:r,titleFontSize:n,colorTextHeading:i,contentFontSize:a,fontFamily:o}=e;return{[t]:Object.assign(Object.assign({},(0,p.dF)(e)),{["".concat(t,"-title")]:{marginBottom:l,color:r,fontSize:n},["".concat(t,"-skeleton")]:{paddingTop:s},["".concat(t,"-content")]:{color:i,fontSize:a,fontFamily:o,["".concat(t,"-content-value")]:{display:"inline-block",direction:"ltr"},["".concat(t,"-content-prefix, ").concat(t,"-content-suffix")]:{display:"inline-block"},["".concat(t,"-content-prefix")]:{marginInlineEnd:l},["".concat(t,"-content-suffix")]:{marginInlineStart:l}}})}})((0,m.oX)(e,{}))],e=>{let{fontSizeHeading3:t,fontSize:l}=e;return{titleFontSize:l,contentFontSize:t}});var y=function(e,t){var l={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(l[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)0>t.indexOf(s[r])&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(l[s[r]]=e[s[r]]);return l};let x=e=>{let{prefixCls:t,className:l,rootClassName:r,style:n,valueStyle:i,value:p=0,title:h,valueRender:m,prefix:x,suffix:f,loading:j=!1,formatter:v,precision:A,decimalSeparator:b=".",groupSeparator:S=",",onMouseEnter:w,onMouseLeave:k}=e,z=y(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:C,direction:D,statistic:O}=s.useContext(c.QO),_=C("statistic",t),[M,E,T]=g(_),N=s.createElement(u,{decimalSeparator:b,groupSeparator:S,prefixCls:_,formatter:v,precision:A,value:p}),I=a()(_,{["".concat(_,"-rtl")]:"rtl"===D},null==O?void 0:O.className,l,r,E,T),P=(0,o.A)(z,{aria:!0,data:!0});return M(s.createElement("div",Object.assign({},P,{className:I,style:Object.assign(Object.assign({},null==O?void 0:O.style),n),onMouseEnter:w,onMouseLeave:k}),h&&s.createElement("div",{className:"".concat(_,"-title")},h),s.createElement(d.A,{paragraph:!1,loading:j,className:"".concat(_,"-skeleton")},s.createElement("div",{style:i,className:"".concat(_,"-content")},x&&s.createElement("span",{className:"".concat(_,"-content-prefix")},x),m?m(N):N,f&&s.createElement("span",{className:"".concat(_,"-content-suffix")},f)))))},f=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];var j=function(e,t){var l={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(l[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)0>t.indexOf(s[r])&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(l[s[r]]=e[s[r]]);return l};let v=1e3/30,A=s.memo(e=>{let{value:t,format:l="HH:mm:ss",onChange:i,onFinish:a}=e,o=j(e,["value","format","onChange","onFinish"]),c=(0,r.A)(),d=s.useRef(null);return s.useEffect(()=>((()=>{let e=new Date(t).getTime();e>=Date.now()&&(d.current=setInterval(()=>{c(),null==i||i(e-Date.now()),e<Date.now()&&(null==a||a(),d.current&&(clearInterval(d.current),d.current=null))},v))})(),()=>{d.current&&(clearInterval(d.current),d.current=null)}),[t]),s.createElement(x,Object.assign({},o,{value:t,valueRender:e=>(0,n.Ob)(e,{title:void 0}),formatter:(e,t)=>(function(e,t){let{format:l=""}=t;return function(e,t){let l=e,s=/\[[^\]]*]/g,r=(t.match(s)||[]).map(e=>e.slice(1,-1)),n=t.replace(s,"[]"),i=f.reduce((e,t)=>
1{let[s,r]=t;if(e.includes(s)){let t=Math.floor(l/r);return l-=t*r,e.replace(RegExp("".concat(s,"+"),"g"),e=>{let l=e.length;return t.toString().padStart(l,"0")})}return e},n),a=0;return i.replace(s,()=>{let e=r[a];return a+=1,e})}(Math.max(new Date(e).getTime()-Date.now(),0),l)})(e,Object.assign(Object.assign({},t),{format:l}))}))});x.Countdown=A;let b=x},80124:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});var s=l(52045),r=l(68658);let n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"};var i=l(94613);let a=r.forwardRef(function(e,t){return r.createElement(i.A,(0,s.A)({},e,{ref:t,icon:n}))})},90862:e=>{e.exports={container:"edit-selection-article_container__8OAWR",seoSection:"edit-selection-article_seoSection__PxhEE",sparkline:"edit-selection-article_sparkline__I6pRV",modelCard:"edit-selection-article_modelCard__iN3xX",modelCardSwapped:"edit-selection-article_modelCardSwapped__MitTb",modelCardWarning:"edit-selection-article_modelCardWarning__Mo2dC",modelCardAdded:"edit-selection-article_modelCardAdded__UbeSU",modelHeader:"edit-selection-article_modelHeader__sL2D3",modelMetrics:"edit-selection-article_modelMetrics__rkc_s",modelActions:"edit-selection-article_modelActions__1AY5Q",swapIndicator:"edit-selection-article_swapIndicator___mFrh",oldModelName:"edit-selection-article_oldModelName__ZFvpj",newModelName:"edit-selection-article_newModelName__NqlZo",suggestionItem:"edit-selection-article_suggestionItem__tbOAd",suggestionMeta:"edit-selection-article_suggestionMeta__aRVNF",scoreBar:"edit-selection-article_scoreBar__DHsIZ",previewModal:"edit-selection-article_previewModal__TYrox",modifiedSection:"edit-selection-article_modifiedSection__qdEgs",actionBar:"edit-selection-article_actionBar__QdZgb"}}},e=>{e.O(0,[7112,4584,2631,560,5471,1602,8925,4742,5140,3451,515,1672,8158,1601,2957,4032,6587,8079,1457,5793,636,6593,8792],()=>e(e.s=64573)),_N_E=e.O()}]);
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.