1import j from"./liQfjeYj.js";import{x as I,H as D,o as b,c as w,K as $,L as N,i as k,w as E,f as c,h,z as f,av as x,I as z,t as d,E as C,V as G,y as B,G as L}from"./D5KAL_CN.js";import R from"./CaELL57b.js";import{u as y}from"./CWV0IdGd.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"72c001f942a6f5935616493b43f640f1c8e31c6e"};var n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="2f83a833-7b9f-4bd5-9b85-f9bb66ac9d8b",s._sentryDebugIdIdentifier="sentry-dbid-2f83a833-7b9f-4bd5-9b85-f9bb66ac9d8b")}catch{}})();const T={class:"grid grid-rows-12 absolute z-button h-full w-full"},A={class:"bg-black/40 h-full px-2 py-1 row-span-2 rounded-b-lg"},F={class:"text-sm font-medium text-white line-clamp-2"},M=I({__name:"GridVirtualizerImages",props:{images:{},itemsPerPage:{}},emits:["footerVisible"],setup(s,{emit:n}){const r=s,u=n,g=d(null),l=d([]),_=G(()=>r.itemsPerPage||20),m=()=>{const t=r.images.slice(0,_.value);l.value=t},p=()=>{const t=l.value.length,o=r.images.slice(t,t+_.value);o.length!==0&&(l.value=[...l.value,...o])};return D(()=>{m();const t=a=>{a.forEach(e=>{e.isIntersecting&&(u("footerVisible"),p())})},o=new IntersectionObserver(t),i=document.getElementById("footer");i&&o.observe(i)}),(t,o)=>{const i=j,a=C;return b(),w("div",{ref_key:"containerRef",ref:g,class:"w-full min-h-[80dvh] grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-7"},[(b(!0),w($,null,N(f(l),e=>(b(),k(a,{key:e.title,to:{name:"gallery-slug",params:{slug:e.slug||""}},class:"relative group w-full h-80"},{default:E(()=>[o[0]||(o[0]=c("div",{class:"bg-black/70 absolute w-full h-full rounded-lg"},null,-1)),h(i,{src:`${f(x)}${e.image_url}`,alt:e.title,widths:[320,480,640,800],sizes:"(min-width: 1280px) 20vw, (min-width: 1024px) 25vw, (min-width: 640px) 33vw, 100vw","fallback-width":640,class:"absolute h-full w-full object-cover opacity-30 bg-black rounded-lg",loading:"lazy"},null,8,["src","alt"]),c("div",T,[h(i,{src:`${f(x)}${e.image_url}`,alt:e.title,widths:[240,320,480,640],sizes:"(min-width: 1280px) 20vw, (min-width: 1024px) 25vw, (min-width: 640px) 33vw, 100vw","fallback-width":480,class:"row-span-10 h-full mx-auto py-2 object-contain hover-zoom",loading:"lazy"},null,8,["src","alt"]),c("div",A,[c("h3",F,z(e.title),1)])])]),_:2},1032,["to"]))),128))],512)}}}),S=Object.assign(M,{__name:"GalleryGridVirtualizerImages"}),O={class:"mt-4"},v="/api/museum/project/slug/",q=I({__name:"index",async setup(s){let n,r;B({title:"éå»ã®ãµã¤ã³æ¬ç´¹ä»ä¸è¦§ | ã¾ããçå¶æ¥½é¨",meta:[{name:"description",content:"éå»ã«éå¬ããããµã¤ã³æ¬ç¹éã®ç´¹ä»ãã¼ã¸ãä¸è¦§ã§ã覧ããã ãã¾ããåç¹éã®è©³ç´°ãã¼ã¸ã§ã¯ãåå ãããä½å®¶ããã®ãµã¤ã³æ¬ãé¢é£ååãã確èªããã ãã¾ãããã²ãæ°ã«å
¥ãã®ãµã¤ã³æ¬ãè¦ã¤ãã¦ãã ããã"}]});const u=d([]),g=d(1),l=d(!0),_=d(0),[{data:m},{data:p}]=([n,r]=L(()=>Promise.all([y(v,{params:{page:1}}),y(v,{params:{page:2}})])),n=await n,r(),n),t=[];m.value&&m.value.paginator.current_page.object_list.length>0&&t.push(...m.value.paginator.current_page.object_list),p.value&&p.value.paginator.current_page.object_list.length>0&&t.push(...p.value.paginator.current_page.object_list),u.value=t,l.value=p.value?.paginator.current_page.has_next||!1,_.value=m.value?.paginator.total_count||0,g.value=3;const o=async()=>{if(l.value)try{const a=await $fetch(v,{params:{page:g.value}});a&&a.paginator.current_page.object_list.length>0&&(u.value=[...u.value,...a.paginator.current_page.object_list],g.value+=1,l.value=a.paginator.current_page.has_next)}catch{}},i=()=>{o()};return(a,e)=>{const P=S,V=R;return b(),k(V,{class:"min-h-screen px-2 md:px-4 mt-4 md:mt-6 mb-16"},{default:E(()=>[e[0]||(e[0]=c("h1",{class:"text-3xl"},"éå»ã®ãµã¤ã³æ¬ç´¹ä»",-1)),e[1]||(e[1]=c("p",{class:"text-gray-600 mt-4 text-xs sm:text-sm"}," ãã¡ãã§ã¯éå»ã«éå¬ããããµã¤ã³æ¬ç¹éã®ç´¹ä»ãã¼ã¸ãä¸è¦§ã§ã覧ããã ãã¾ããåç¹éã®è©³ç´°ãã¼ã¸ã§ã¯ãåå ãããä½å®¶ããã®ãµã¤ã³æ¬ãé¢é£ååãã確èªããã ãã¾ãããã²ãæ°ã«å
¥ãã®ãµã¤ã³æ¬ãè¦ã¤ãã¦ãã ããã ",-1)),c("p",O,"å
¨"+z(f(_))+"ä»¶",1),h(P,{class:"my-4",images:f(u),"items-per-page":40,onFooterVisible:i},null,8,["images"])]),_:1})}}});
1export{q 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.