1var P=(H,g,v)=>new Promise((o,r)=>{var y=l=>{try{k(v.next(l))}catch(u){r(u)}},c=l=>{try{k(v.throw(l))}catch(u){r(u)}},k=l=>l.done?o(l.value):Promise.resolve(l.value).then(y,c);k((v=v.apply(H,g)).next())});import{e as E,h as S,B as z,x as U,c as s,a,i as h,y as M,u as i,t as $,p as D,O as V,m as O,o as n,_ as j}from"./Bof-CrE0.js";import{u as q}from"./I5vsAFHI.js";import"#entry";import"./IP-s4Jq9.js";const F={class:"senior-trainers-page"},G={class:"twocol-region twocol-region--third"},J={class:"inner-wrapper"},K={class:"panel-pane pane-content-tabs md-content-tabs"},Q={class:"item-tab",role:"tabpanel"},W={class:"nav nav-tabs",role:"tablist"},X={class:"tab-content tab-indented"},Y={key:0,class:"loading"},Z={key:1,class:"error"},N={key:2,class:"error"},ee=["innerHTML"],te={key:4,class:"empty"},se={key:0,class:"loading"},ne={key:1,class:"error"},ae={key:2,class:"error"},ie=["innerHTML"],oe={key:4,class:"empty"},re={key:0,class:"loading"},ce={key:1,class:"error"},le={key:2,class:"error"},de=["innerHTML"],pe={key:4,class:"empty"},ve=E({__name:"senior-trainers",setup(H){return P(this,null,function*(){let g,v;S({title:"ТÑенеÑам | ÐÑÑоÑиаÑÐ¸Ñ ÐолÑÑа РоÑÑии",meta:[{name:"description",content:"ÐнÑоÑмаÑÐ¸Ñ Ð´Ð»Ñ ÑÑенеÑов: ÑÑенеÑÑ, ÐÐРРоÑÑии, PRO-новоÑÑи"}]});const o=D("trainers"),{data:r,pending:y,error:c}=([g,v]=z(()=>q("senior-trainers-page",()=>$fetch("/api/page/pro/senior-trainers"),{server:!0,default:()=>null})),g=yield g,v(),g);U(r,e=>{e&&typeof e.content=="string"&&e.content.match(/id=["']?(tab-[^"'\s>]+)["']?/gi)},{immediate:!0}),U(c,e=>{},{immediate:!0});const k=(e,t)=>{const d=new RegExp(`<div[^>]*id=["']?${t}["']?[^>]*>`,"i"),f=e.match(d);if(!f||f.index===void 0)return null;const p=e.indexOf(">",f.index)+1;let _=1,b=p;for(;b<e.length&&_>0;){const T=e.indexOf("<div",b),C=e.indexOf("</div>",b);if(C===-1)break;if(T!==-1&&T<C)_++,b=T+4;else{if(_--,_===0)return e.substring(p,C).trim();b=C+6}}const m=/<div[^>]*id=["']?tab-[^"']+["']?[^>]*>/i,x=e.substring(p).search(m),A=x!==-1?p+x:e.length;return e.substring(p,A).trim()||null},u=V().public.apiBaseUrl||"https://rusgolf.ru",R=e=>e?e.replace(/src=["'](\/files\/[^"']+)["']/gi,`src="${u}$1"`).replace(/href=["'](\/files\/[^"']+)["']/gi,`href="${u}$1"`).replace(/url\(["']?(\/files\/[^"']+)["']?\)/gi,`url("${u}$1")`):null,w=e=>{var f,p,_;if(!r.value)return null;const t=r.value;if(typeof t.content=="string"){const m={trainers:"tab-1903",pga:"tab-100",news:"tab-942"}[e];if(!m)return null;const x=k(t.content,m);return R(x)}const d=t[e]||((f=t==null?void 0:t.content)==null?void 0:f[e])||((p=t==null?void 0:t.tabs)==null?void 0:p[e])||((_=t==null?void 0:t.data)==null?void 0:_[e])||null;return typeof d=="string"?R(d):d},B=O(()=>w("trainers")),L=O(()=>w("pga")),I=O(()=>w("news"));return(e,t)=>(n(),s("div",F,[a("div",G,[a("div",J,[a("div",K,[a("div",Q,[a("ul",W,[a("li",{class:h({active:o.value==="trainers"})},[a("a",{href:"#",role:"tab",onClick:t[0]||(t[0]=M(d=>o.value="trainers",["prevent"]))},"ТÑенеÑÑ")],2),a("li",{class:h({active:o.value==="pga"})},[a("a",{href:"#",role:"tab",onClick:t[1]||(t[1]=M(d=>o.value="pga",["prevent"]))},"ÐÐРРоÑÑии")],2),a("li",{class:h({active:o.value==="news"})},[a("a",{href:"#",role:"tab",onClick:t[2]||(t[2]=M(d=>o.value="news",["prevent"]))},"PRO-новоÑÑи")],2)]),a("div",X,[a("div",{class:h(["tab-pane",{active:o.value==="trainers"}]),id:"tab-1903",role:"tabpanel"},[i(y)?(n(),s("div",Y,"ÐагÑÑзка...")):i(c)?(n(),s("div",Z,"ÐÑибка загÑÑзки даннÑÑ
: "+$(i(c).message),1)):i(r)?B.value?(n(),s("div",{key:3,innerHTML:B.value},null,8,ee)):(n(),s("div",te,'ÐонÑÐµÐ½Ñ Ð´Ð»Ñ Ð²ÐºÐ»Ð°Ð´ÐºÐ¸ "ТÑенеÑÑ" оÑÑÑÑÑÑвÑеÑ')):(n(),s("div",N,"ÐаннÑе не загÑÑженÑ"))],2),a("div",{class:h(["tab-pane",{active:o.value==="pga"}]),id:"tab-100",role:"tabpanel"},[i(y)?(n(),s("div",se,"ÐагÑÑзка...")):i(c)?(n(),s("div",ne,"ÐÑибка загÑÑзки даннÑÑ
: "+$(i(c).message),1)):i(r)?L.value?(n(),s("div",{key:3,innerHTML:L.value},null,8,ie)):(n(),s("div",oe,'ÐонÑÐµÐ½Ñ Ð´Ð»Ñ Ð²ÐºÐ»Ð°Ð´ÐºÐ¸ "ÐÐРРоÑÑии" оÑÑÑÑÑÑвÑеÑ')):(n(),s("div",ae,"ÐаннÑе не загÑÑженÑ"))],2),a("div",{class:h(["tab-pane",{active:o.value==="news"}]),id:"tab-942",role:"tabpanel"},[i(y)?(n(),s("div",re,"ÐагÑÑзка...")):i(c)?(n(),s("div",ce,"ÐÑибка загÑÑзки даннÑÑ
: "+$(i(c).message),1)):i(r)?I.value?(n(),s("div",{key:3,innerHTML:I.value},null,8,de)):(n(),s("div",pe,'ÐонÑÐµÐ½Ñ Ð´Ð»Ñ Ð²ÐºÐ»Ð°Ð´ÐºÐ¸ "PRO-новоÑÑи" оÑÑÑÑÑÑвÑеÑ')):(n(),s("div",le,"ÐаннÑе не загÑÑженÑ"))],2)])])])])])]))})}}),ye=j(ve,[["__scopeId","data-v-8ce27bbd"]]);export{ye as default};
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.