1!function(){var e=null,t=!1,a=null,o=null;function r(e,t){if("function"==typeof showToast)return showToast(e,t||"");alert(e)}async function n(){if(t)return e;t=!0;var a=window.STATE&&STATE.user||null;if(!a&&"undefined"!=typeof firebase&&firebase.auth){var o=firebase.auth().currentUser;o&&(a={id:o.uid,email:o.email||""})}if(!a||"undefined"==typeof db||!db)return null;try{var r=a.id,n=(a.email||"").trim().toLowerCase(),l=await db.collection("contacts").where("userId","==",r).limit(1).get();if(l.empty&&n&&(l=await db.collection("contacts").where("email","==",n).limit(1).get()),l.empty)return null;var d=l.docs[0].id,i=await db.collection("coachingProfiles").where("contactId","==",d).limit(1).get();return i.empty?null:e={profileId:i.docs[0].id,contactId:d,profileData:i.docs[0].data()}}catch(e){return console.warn("athlete-report detect:",e),null}}window.arSelectType=function(e,t){a=e,o=null,document.querySelectorAll("#ar-type-options .ar-type-opt").forEach(function(e){e.classList.remove("ar-type-sel")}),t&&t.classList.add("ar-type-sel");var r=document.getElementById("ar-effort-row"),n=document.getElementById("ar-date-row");r&&(r.style.display="doplnek"===e?"":"none"),document.querySelectorAll(".ar-effort-opt").forEach(function(e){e.style.background="var(--card)",e.style.borderColor="var(--border)",e.style.color="var(--text)"}),n&&(n.style.display="doplnek"===e?"none":"");var l=document.getElementById("ar-date-hint");l&&(l.textContent="cesta"===e?"Odkdy dokdy bude\u0161 pry\u010d?":"rozvrh"===e?"Kter\xe9ho dne / obdob\xed se zm\u011bna t\xfdk\xe1?":"Voliteln\u011b \u2014 od kdy do kdy to plat\xed.");var d=document.getElementById("ar-text");d&&(d.placeholder="doplnek"===e?"nap\u0159. D\u0159epy 4\xd75 t\u011b\u017ece, bench press, z\xe1da. Nohy jsou z\xedtra asi mrtv\xe9.":"cesta"===e?"nap\u0159. Jedu na 10 dn\xed k mo\u0159i, jen lehk\xe9 v\xfdb\u011bhy.":"rozvrh"===e?"nap\u0159. V \xfater\xfd nestihnu, m\u016f\u017eu a\u017e ve st\u0159edu.":"Cokoliv, co by m\u011bl tren\xe9r v\u011bd\u011bt\u2026")},window.arSelectEffort=function(e,t){o=e;var a={lehky:"#16a34a",stredni:"#ca8a04",tezky:"#dc2626"};document.querySelectorAll(".ar-effort-opt").forEach(function(e){e.style.background="var(--card)",e.style.borderColor="var(--border)",e.style.color="var(--text)"}),t&&(t.style.background={lehky:"#f0fdf4",stredni:"#fefce8",tezky:"#fef2f2"}[e],t.style.borderColor=a[e],t.style.color=a[e])},window.arOpenModal=async function(){var r=document.getElementById("athlete-report-modal");if(r){t=!1,e=null,a=null,o=null,document.querySelectorAll("#ar-type-options .ar-type-opt").forEach(function(e){e.classList.remove("ar-type-sel")});var l=document.getElementById("ar-text");l&&(l.value="");var d=document.getElementById("ar-date-from");d&&(d.value="");var i=document.getElementById("ar-date-to");i&&(i.value="");var c=document.getElementById("ar-date-hint");c&&(c.textContent="Voliteln\u011b \u2014 od kdy do kdy to plat\xed.");var u=document.getElementById("ar-context-hint");u&&(u.textContent="\u23f3 Zji\u0161\u0165uji tv\u016fj kontext\u2026"),"function"==typeof openOverlay?openOverlay(r):r.style.display="flex";var s=await n();u&&(u.innerHTML=s?"\ud83d\udce8 Nahl\xe1\u0161en\xed doraz\xed <strong>Davidovi</strong> a uvid\xed ho u tebe v kou\u010dinku.":"\ud83d\udce8 Nahl\xe1\u0161en\xed doraz\xed tren\xe9rovi.")}},window.arCloseModal=function(){var e=document.getElementById("athlete-report-modal");e&&("function"==typeof closeOverlay?closeOverlay(e):e.style.display="none")},window.arSubmit=async function(){var e=null;try{e="undefined"!=typeof firebase&&firebase.auth?firebase.auth().currentUser:null}catch(e){}var t=e?{id:e.uid,email:e.email||"",name:e.displayName||""}:window.STATE&&STATE.user||null;if(t&&t.id)if(a)if("doplnek"!==a||o){var l=(document.getElementById("ar-text").value||"").trim();if(l){var d=document.getElementById("ar-date-from").value||null,i=document.getElementById("ar-date-to").value||null,c=await n(),u=t.name||((t.firstName||"")+" "+(t.lastName||"")).trim()||t.email||"",s={userId:t.id,profileId:c?c.profileId:null,contactId:c?c.contactId:null,athleteName:u,kind:"change",type:a,effort:o||null,text:l,dateFrom:d,dateTo:i,status:"new",source:"app",createdAt:firebase.firestore.FieldValue.serverTimestamp()},y=document.getElementById("ar-submit-btn");y&&(y.disabled=!0,y.textContent="Odes\xedl\xe1m\u2026");try{await db.collection("athlete_reports").add(s),arCloseModal(),r("Nahl\xe1\u0161en\xed odesl\xe1no Davidovi \u2713","success")}catch(e){r("Chyba odesl\xe1n\xed: "+e.message,"error")}finally{y&&(y.disabled=!1,y.textContent="\ud83d\udce8 Odeslat tren\xe9rovi")}}else r("Napi\u0161 kr\xe1tce, o co jde")}else r("Vyber n\xe1ro\u010dnost tr\xe9ninku");else r("Vyber typ");else r("Pro nahl\xe1\u0161en\xed mus\xed\u0161 b\xfdt p\u0159ihl\xe1\u0161en\xfd","error")}}();
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.