javascript:(async()=>{function c(o,e){return o.reduce((s,t,n)=>s+t+(e[n]??""),"").replace(/>\s+<").replace(/\s+/g," ").trim()}var d=(o,...e)=>c(o,e),p=(o,...e)=>c(o,e);var u="https://uber5.lightning.force.com/lightning/r/Report/00OUV00000BC0h32AD/view?queryScope=userFolders";(async function(){if(location.href!==u){location.href=u;return}let o=await x(),e=document.createElement("dialog");e.style.cssText=p` padding: 24px; border-radius: 12px; border: none; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); `,e.innerHTML=d`
${S(o)}
`;let s=e.querySelector("#viewToggle"),t=e.querySelector("#handoverView"),n=e.querySelector("#huddleView"),i=e.querySelector("#viewLabel"),l=e.querySelector("#copyBtn");l.addEventListener("click",()=>{let r=(s.checked?n:t).querySelector("table"),b=new Blob([r.outerHTML],{type:"text/html"});navigator.clipboard.write([new ClipboardItem({"text/html":b})]);let f=l.textContent;l.textContent="Copied!",l.disabled=!0,setTimeout(()=>{l.textContent=f,l.disabled=!1},1500)}),s.addEventListener("change",()=>{let r=s.checked;t.style.display=r?"none":"",n.style.display=r?"":"none",i.textContent=r?"Huddle":"Handover"}),document.body.appendChild(e),e.showModal()})();var m="1",w="4",R="8";async function x(){let o=document.querySelector("iframe")?.contentDocument?.querySelector("table[aria-rowcount]");if(o?.scrollIntoView(),!o)throw alert("uh oh - either you pressed the button too quickly or something is very broken");let e=new Map,s=1e4;for(;s--;){if(!s)throw alert("script got stuck :( - not sure how");let t=o.querySelector("tr:not(.data-grid-header-row):not(.row-counted)");if(!t)break;t.classList.add("row-counted"),await new Promise(r=>setTimeout(r));let n=t.querySelector(`[data-column-index='${m}']`)?.textContent;if(!n||e.has(n))continue;t.scrollIntoView();let i=t.querySelector(`[data-column-index='${R}']`)?.textContent,l=t.querySelector(`[data-column-index='${w}']`)?.textContent;!i||i==="Bolton Document Inbounds"||i==="Insurance Provision"||i==="Document Related (exceptions/renewals/validations)"||i==="Recurring Data Sends"||i==="Triage"||e.set(n,{_type:i,_status:l})}for(let t of o.querySelectorAll(".row-counted"))t.classList.remove("row-counted");return[...e.values()]}var y="border-collapse:collapse;border:1px solid black;font-family:sans-serif;",a="border:1px solid black;padding:6px 12px;",_=[{title:"Suspensions",path:"X1h_Suspensions_and_Triaging",types:["Suspension","Midnight Suspension Notice","Project Neon (TfL-only)"]},{title:"Unsuspensions",path:"X24h_Unsuspensions",types:["Unsuspension Notice"]},{title:"Standard Request",path:"X24h_Standard_Requests",types:["RoUK Recurring Send Follow-Up","General Data Requests / Status Enquiry","Event or CRM Request","FYI"]},{title:"Complex Requests",path:"RoUK_Complaint_Follow_Ups",types:["Ad-Hoc Request","TfL Recurring Send Follow-Up"]},{title:"CCP's",path:"CCP_PDRIP_Cases_with_status",types:["CCP / PDRIP"]},{title:"Rider Complaint Reviews",path:"X48h_Complaint_Reviews",types:["Rider Complaint Handling Request"]},{title:"Complaint Histories",path:"X72h_Complaints_History_Review",types:["Driver Complaints History Request"]},{title:"DPA",path:"X72h_DPAs",types:["DPA Request"]},{title:"Witness Statements",path:"X96h_Witness_Statements",types:["Witness Statement Request"]},{title:"Booking Records",path:"X24h_Booking_Requests",types:["Booking Records Request"]}];function h(o,e){let s=new Map;o.forEach((n,i)=>{for(let l of n.types)s.set(l,i)});let t=o.map(n=>({title:n.title,list:n.path,count:0,statuses:{}}));for(let n of e){let i=s.get(n._type);i!==void 0&&(t[i].count++,t[i].statuses[n._status]=(t[i].statuses[n._status]||0)+1)}return t}function S(o){let e=h(_,o);return d` ${e.map(s=>d` `).join("")}
Queue Total
${s.title} ${s.count}
TOTAL ${o.length}
`}var T=[{title:"Suspensions",path:"X1h_Suspensions_and_Triaging",types:["Suspension","Midnight Suspension Notice","Project Neon (TfL-only)"]},{title:"Unsuspensions",path:"X24h_Unsuspensions",types:["Unsuspension Notice"]},{title:"DPAs",path:"X72h_DPAs",types:["DPA Request"]},{title:"Standard Requests",path:"X24h_Standard_Requests",types:["RoUK Recurring Send Follow-Up","General Data Requests / Status Enquiry","Event or CRM Request","FYI","CCP / PDRIP"]},{title:"Complaints Histories",path:"X72h_Complaints_History_Review",types:["Driver Complaints History Request"]},{title:"Booking Records",path:"X24h_Booking_Requests",types:["Booking Records Request"]},{title:"Complex Requests",path:"RoUK_Complaint_Follow_Ups",types:["Ad-Hoc Request","TfL Recurring Send Follow-Up"]},{title:"Witness Statements",path:"X96h_Witness_Statements",types:["Witness Statement Request"]},{title:"Rider Complaints",path:"X48h_Complaint_Reviews",types:["Rider Complaint Handling Request"]}],g=[{name:"New",color:"#ffd966"},{name:"Open",color:"#93c47d"},{name:"In Review",color:"#f6b26b"},{name:"Pending",color:"#6fa8dc"},{name:"On Hold",color:"#8e7cc3"}];function C(o){let e=g.map(t=>`${t.name}`).join(""),s=h(T,o);return d` ${e} ${s.map(t=>d` ${g.map(n=>d``).join("")} `).join("")}
Queue Total
${t.title} ${t.count} ${t.statuses[n.name]?t.statuses[n.name]:""}
`}})()