1/**handles:dci-rating**/ 2let eventName="feedback-submit",submitRating=()=>{let t=document.querySelector("#rating-feedback"),e=(t.innerHTML="",[location.protocol,"//",location.host,location.pathname].join("")),a=document.querySelector("title").innerText;a?.includes("Risultati della ricerca per")&&(a="Risultati di ricerca");var n,r,r=((r=3<(n=document.querySelector('input[name="ratingA"]:checked')?.value||null)?document.querySelector('input[name="rating1"]:checked'):document.querySelector('input[name="rating2"]:checked'))?r.parentElement:null)?.querySelector("label")?.innerHTML||null,i=document.querySelector("#formGroupExampleInputWithHelp")?.value||"",n={title:escapeHTML(a),star:escapeHTML(n),radioResponse:escapeHTML(r),freeText:escapeHTML(i),page:escapeHTML(e)};fetch(data.ajaxurl,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:new URLSearchParams({action:"save_rating",...n})}).then(e=>{if(!e.ok)throw new Error("");t.innerHTML="Grazie, il tuo parere ci aiuterà a migliorare il servizio!"}).catch(e=>{t.innerHTML="Ops, qualcosa è andato storto."})};document.addEventListener(eventName,()=>submitRating());
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.