PageSourceSearch

https://www.javaadalipoor.co.uk/_nuxt/nsEuuzR6.js

js javaadalipoor.co.uk collected 2026-10-02 07:51:46 UTC 3,211 bytes, 1 lines download raw bytes

1import{_ as E}from"./Bym3U90L.js";import{d as F,u as G,a as I,P as L,w as y,p as R,e as T,r as j,f as p,g as n,F as g,h as z,i as k,k as b,q as w,n as h,K as x,x as K,s as P,v as U,o as a,j as V,t as W,y as H,z as D}from"./frJpPpHC.js";import{_ as J}from"./2n2EeSp7.js";import{u as M,a as O}from"./CKalYNqi.js";import"./DQrIxMWI.js";const Q={key:1,class:"bloks relative z-10 bg-gray-dark text-white"},X={class:"mx-auto flex gap-2"},Y=["onClick"],re=F({__name:"index",async setup(Z){let o,r;const l=G(),{$preview:v}=I(),C=L(),i=([o,r]=y(()=>O("our-work",{version:v?"draft":"published",resolve_relations:"work.featured"})),o=await o,r(),o);M(i),R("story",i);const _=T(()=>{var t,s;const e=(s=(t=i.value)==null?void 0:t.content)==null?void 0:s.featured;return e?{id:e.id,on_sale:e.content.on_sale,title:e.name,images:[e.content.featured_image],label:e.content.label,type:e.content.type,location:e.content.location,link:{cached_url:`/${e.full_slug}`}}:null}),{data:q}=([o,r]=y(async()=>P("production-tags",async()=>{var t;const e=await C.get("cdn/stories",{content_type:"tag",by_slugs:"our-work/tags/*",filter_query:{show_as_filter:{is:!0}},version:"published"});return(t=e==null?void 0:e.data)==null?void 0:t.stories})),o=await o,r(),o),{data:$}=([o,r]=y(async()=>P("productions",async()=>{var s,m;let e={};if(l.query.tag){const c=(s=q.value.find(f=>f.slug===l.query.tag))==null?void 0:s.uuid;c&&(e={tags:{any_in_array:c}})}const t=await C.get("cdn/stories",{content_type:"production",excluding_fields:"blocks",version:v?"draft":"published",filter_query:e});return((m=t==null?void 0:t.data)==null?void 0:m.stories)||[]},{watch:[_,()=>l.query.tag],transform:e=>({items:e.map(t=>({_uid:t.uuid,on_sale:t.content.on_sale,title:t.name,image:t.content.featured_image,label:t.content.label,type:t.content.type,location:t.content.location,link:`/${t.full_slug}`,component:"linkGridItem"}))})})),o=await o,r(),o),S=e=>{e&&(e==="all"?D({query:{},replace:!0}):D({query:{tag:e},replace:!0}))};return(e,t)=>{var A,B;const s=j("StoryblokComponent"),m=E,c=U,f=J;return a(),p(g,null,[(B=(A=n(i))==null?void 0:A.content)!=null&&B.header?(a(!0),p(g,{key:0},z(n(i).content.header,u=>(a(),b(s,{key:u._uid,blok:u},null,8,["blok"]))),128)):k("",!0),n($)?(a(),p("div",Q,[n(_)?(a(),b(c,{key:0,class:"py-32"},{default:w(()=>[h(m,{work:n(_),index:0,label:""},null,8,["work"])]),_:1})):k("",!0),h(c,{class:x(["flex",n(_)?"":"pt-32"])},{default:w(()=>{var u;return[V("div",X,[V("button",{class:x(["text-button-small flex rounded-sm border px-3 pb-2 pt-1 lowercase",(u=n(l).query)!=null&&u.tag?"opacity-60 transition hover:opacity-100":"bg-white text-black"]),onClick:t[0]||(t[0]=d=>S("all"))}," Everything ",2),(a(!0),p(g,null,z(n(q),d=>{var N;return a(),p("button",{class:x(["text-button-small flex rounded-sm border border-white px-3 pb-2 pt-1 lowercase",((N=n(l).query)==null?void 0:N.tag)===d.slug?"bg-white text-black":"opacity-60 transition hover:opacity-100"]),key:d.uuid,onClick:ee=>S(d.slug)},W(d.name),11,Y)}),128))])]}),_:1},8,["class"]),h(K,{name:"fade",mode:"out-in"},{default:w(()=>[(a(),b(f,{blok:n($),"per-row":3,key:(e._.provides[H]||e.$route).query.tag},null,8,["blok"]))]),_:1})])):k("",!0)],64)}}});export{re 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.