1var K=Object.defineProperty;var N=(r,e,t)=>e in r?K(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var X=(r,e,t)=>N(r,typeof e!="symbol"?e+"":e,t);import{u as a,B as V,l as E,p as q,C as G}from"./T-gYMQkS.js";class Q{constructor(){X(this,"entity");X(this,"slug");this.entity="/portfolio"}getList(e={}){const{orderby:t="menu_order",order:o="asc",per_page:s="20",_fields:l="id, title, slug, works, acf, _links.wp:featuredmedia, _embedded",_embed:c="wp:featuredmedia, wp:term"}=e,i=a("portfolioSearch"),u=a("portfolioPage"),p=a("portfolioTotalPages"),n=a("portfolioSiteTypes"),m=a("portfolioYear"),y=a("portfolioWorks"),w=a("portfolioClients"),v=a("portfolioAreasOfActivity");return V(()=>{const f={orderby:t,order:o,per_page:s,_fields:l,_embed:c,page:u.value,search:i.value||void 0,site_types:n.value||void 0,portfolio_year:m.value||void 0,works:y.value||void 0,clients:w.value||void 0,areas_of_activity:v.value||void 0},{$api:_}=q();return _(this.entity,{onResponse(h){p.value=+h.response.headers.get("X-WP-TotalPages")},params:f})},{transform:(f=[])=>f.map((_={})=>{const{id:h,slug:A,title:C,acf:P={},_embedded:D={},works:b=[]}=_,{"wp:featuredmedia":g=[]}=D,{media_details:$={}}=g[0],{sizes:k={}}=$,{rendered:S}=C,{ÑоÑмаÑ_миниаÑÑÑÑ:T}=P,{large:x,medium_large:Y,medium:z,thumbnail:j}=k||{},{source_url:I}=x||Y||z||j||{};return{id:h,slug:A,title:S,thumb:I,thumb_format:T,works:b}}),watch:[i,n,m,y,w,v]},"$VXuCEqfrhH")}getCase(e){return E(this.entity,{$fetch:q().$api,query:{slug:e,_fields:"id, title, date, acf, _links, _embedded, content, yoast_head_json",_embed:"wp:featuredmedia, wp:term"},transform:(t=[])=>{const{id:o,title:s,date:l,content:c,acf:i,yoast_head_json:u,_embedded:p}=t[0]||{},{rendered:n}=s||{},{rendered:m}=c||{},y=G(l).format("DD.MM.YYYY"),{gallery:w=[],about_client:v,project_participants:f,year:_,site_url:h,site_platform:A,reviewer_fio:C,reviewer_position:P,reviewer_photo:D,review_text:b}=i||{},{"wp:term":g=[],"wp:featuredmedia":$=[]}=p||{},k=g.flat().filter(d=>d.taxonomy==="site_types"||d.taxonomy==="areas_of_activity"),{schema:S}=u||{},{"@graph":T=[]}=S||{},{itemListElement:x}=T[2]||{},{media_details:Y}=$[0]||{},{sizes:z}=Y||{},{thumbnail:j,full:I}=z||{},{source_url:L}=j||{},{source_url:M}=I||{},O=[f].flat().map(d=>d.ID).filter(d=>!!d),R=this.taxonomyAdapter(g),{clients:W}=R||{},{name:B}=W[0]||{},{sizes:F}=D||{},{thumbnail:H}=F||{},J=b&&{name:C,position:P,photo:H,text:b};return x.pop(),{id:o,title:n,date:y,content:m,tags:k,breadcrumbs:x,thumb:L,cover:M,description:v,gallery:w,teamListID:O,year:_,client:B,site_url:h,site_platform:A,review:J,term:g}},getCachedData(t,o){return o.payload.data[t]||o.static.data[t]}},"$vzhX8IiRXh")}getOtherCases(e=""){return E("/getSimilar",{$fetch:q().$api,query:{slug:e,per_page:99,_fields:"id, title, slug, works, images"},transform:(t=[])=>t.map(o=>{const{id:s,slug:l,title:c,images:i,works:u=[]}=o||{},{large:p,medium:n}=i||{};return{id:s,slug:l,title:c,thumb:p||n,works:u}}),getCachedData(t,o){return o.payload.data[t]||o.static.data[t]}},"$esEKJfl28x")}taxonomyAdapter(e){return e.flat().reduce((t,o)=>{const{taxonomy:s}=o;return s in t||(t[s]=[]),t[s].push(o),t},{})}}const tt=new Q;export{tt as A};
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.