1function f(){let a=document.getElementById("styleshift-select-wrapper");a?a.classList.toggle("visible"):fetch("/wp-json/woody/devtools/themes").then(function(n){n.ok&&n.json().then(s=>r(s))}).catch(function(n){console.log("Il y a eu un probl\xE8me avec l'op\xE9ration fetch: "+n.message)});function r(n){let s=document.getElementById("wp-admin-bar-woody-style-shift"),c=document.getElementById("main-stylesheet-css"),t=document.createElement("select");t.setAttribute("id","styleshift-select-wrapper"),s.appendChild(t),n.forEach(function(i){let o=document.createElement("option");o.setAttribute("value",i),o.innerHTML=i,t.appendChild(o)});let e=document.createElement("button");e.setAttribute("id","styleshift-reset-button"),e.setAttribute("value",c.getAttribute("href")),e.innerHTML="Reset",s.appendChild(e),d(t,e,c)}function d(n,s,c){n.addEventListener("change",t=>{fetch("/app/dist/"+t.target.value+"/rev-manifest.json").then(function(e){e.ok&&e.json().then(i=>u(i,t,c))}).catch(function(e){console.log("Il y a eu un probl\xE8me avec l'op\xE9ration fetch: "+e.message)})}),n.addEventListener("click",t=>{t.stopPropagation()}),s.addEventListener("click",t=>{t.stopPropagation(),c.setAttribute("href",t.target.value),document.body.classList.remove("styleshifted")})}function u(n,s,c){let t={};if(Object.entries(n).forEach(([e,i])=>{e.indexOf("css/main")!=-1&&(t[e]=i)}),Object.keys(t).length==1)Object.entries(t).forEach(([e,i])=>{c.setAttribute("href","/app/dist/"+s.target.value+"/"+i),document.body.classList.add("styleshifted")});else{let e=document.createElement("ul");e.setAttribute("id","css-choices-wrapper"),document.body.append(e);let i=document.createElement("p");i.innerHTML="S\xE9lectionner l'environnement voulu parmi les choix disponibles ci-dessous",e.appendChild(i),Object.entries(t).forEach(([o,p])=>{let l=document.createElement("li");l.setAttribute("data-css-href",p),l.setAttribute("class","css-choice-el"),l.innerHTML=o,e.appendChild(l),h(l,s,c,e)})}}function h(n,s,c,t){n.addEventListener("click",e=>{c.setAttribute("href","/app/dist/"+s.target.value+"/"+e.target.getAttribute("data-css-href")),document.body.classList.add("styleshifted"),t.remove()})}}export{f as init};
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.