PageSourceSearch

https://artplatform.go.jp/_nuxt/DYgzXN9E.js

js artplatform.go.jp collected 2026-10-02 07:44:41 UTC 6,705 bytes, 1 lines download raw bytes

1import{d as we,u as ze,N as De,h as e,o as te,e as se,i as b,t as Y,y as Be,p as Te,I as Ne,G as Pe,Q as Ve,T as We,a5 as $,U as Ye,f as Se,g as xe,a7 as Ge,n as E,A as a,_ as Ke,B as ye,ab as je,j as Z,W as ee,L as Qe,S as W}from"./BCpiNzKX.js";import{q as Je}from"./OHWRKyxP.js";import{u as Xe}from"./hSNcnXIs.js";import{u as Ze}from"./acu_QU_e.js";const et={key:0,class:"page-sup"},tt={class:"item"},st=we({__name:"AppPageLastUpdatedAt",props:{fetchKey:{}},setup(oe){const l=oe,{t:T}=ze(),{data:n}=De(l.fetchKey,async()=>(await Je({key:l.fetchKey})).getOption?.value??"",{getCachedData:(r,C)=>C.payload.data[r],dedupe:"defer"});return(r,C)=>e(n)?(te(),se("div",et,[b("p",tt,[b("label",null,Y(e(T)("lastUpdateLabel"))+": ",1),b("span",null,Y(e(n)),1)])])):Be("",!0)}}),ht=Object.assign(Te(st,[["__scopeId","data-v-162b4757"]]),{__name:"AppPageLastUpdatedAt"}),ot=["aria-label"],at=["aria-label"],nt=["aria-hidden","inert"],it={class:"search-box__forms"},I=0,lt=we({__name:"AppSearchBox",setup(oe){const{mq:l}=Ze(),T=Ne(),[n,r]=Pe(),C=Qe("spSearchRef"),{activate:Ce,deactivate:Re}=Xe(C,{allowOutsideClick:!0});Ve(()=>n.value,()=>{n.value?Ce():Re()});const i=a(null),p=a(null),ae=a(null);let U=null,R=null;const g=a(!1),c=a(!1),_=a(!1),S=a(!1),u=a(!1),ne=a(!1),ie=a(!1),h=a(!1),le=a(!1),z=a(!1);let re=0,ce=!0,A=null;const v=a({}),x=a({}),m=()=>{if(!l.pc||!i.value||!p.value)return;const s=i.value,t=p.value,B=ae.value,O=document.querySelector("header")||document.querySelector(".l-header"),pe=O?O.offsetHeight:0,d=pe+20,D=s.closest(".main");if(!D)return;const Oe=D.querySelector(".search-results"),y=window.pageYOffset||document.documentElement.scrollTop,w=window.innerHeight;u.value=T.path.includes("/museums"),ne.value=T.path.includes("/galleries"),ie.value=T.path.includes("/bibliography"),h.value=u.value&&w>=670,le.value=u.value&&w<=669;const Fe=D.getBoundingClientRect(),f=s.getBoundingClientRect(),F=t.offsetHeight,he=D.offsetHeight,He=Oe?.offsetHeight??he,G=f.width,H=Fe.top+y+he,M=f.top+y,q=t.getBoundingClientRect(),K=q.top+y,ve=y+w,me=F+d+I>w,Me=!u.value&&!ne.value,qe=q.bottom+y,be=Me?qe>=H:ve-I>=H,ge=y-re,ke=ge>0,j=ge<0;re=y;const Le=j&&f.top<d&&q.top>=d;j&&(z.value=!1);const k=()=>{g.value=!1,c.value=!1,_.value=!1,v.value={width:"100%",left:"auto",top:"auto",bottom:"auto"}},$e=()=>{c.value||(k(),c.value=!0,h.value?v.value={width:G+"px",left:f.left+"px",top:pe+20+"px",bottom:"auto"}:v.value={width:G+"px",left:f.left+"px",top:"auto",bottom:"0px"})},N=()=>{g.value||(k(),g.value=!0,v.value={width:G+"px",left:f.left+"px",top:d+"px",bottom:"auto"})},Q=()=>{k(),_.value=!0;const o=Math.max(0,H-M-F);v.value={width:"100%",left:"0",top:o+"px",bottom:"auto"}},J=o=>{k(),_.value=!0;const L=H-M-F;o<0&&(o=0),o>L&&(o=L),v.value={width:"100%",left:"0",top:o+"px",bottom:"auto"}},X=()=>{k()};if(ce){A&&clearTimeout(A),A=setTimeout(()=>{if(ce=!1,(window.pageYOffset||document.documentElement.scrollTop)>0&&i.value&&p.value){const V=i.value.getBoundingClientRect(),_e=document.querySelector("header")||document.querySelector(".l-header"),Ie=(_e?_e.offsetHeight:0)+20,Ue=V.width;g.value=!0,c.value=!1,_.value=!1,v.value={width:Ue+"px",left:V.left+"px",top:Ie+"px",bottom:"auto"},$(()=>{m()})}else m(),$(()=>{m()})},500);return}if(F>=He){X(),P();return}const Ee=!u.value&&F+d+I<=w;if(Le){N(),P();return}if(Ee){f.top>=d?X():be?Q():N(),P();return}if(f.top>=d)X();else if(be)me&&!h.value&&(z.value=!0),h.value?J(K-M):Q();else{if(ke){const o=z.value&&me&&!h.value;o&&Q(),g.value&&J(K-M),!o&&q.bottom<=w-I&&$e()}else j&&(c.value&&J(K-M),q.top>=d&&N());!g.value&&!c.value&&!_.value&&f.top<d&&N()}P();function P(){if(!B)return;const o=t.getBoundingClientRect();if(h.value){S.value=!1,x.value={width:"auto",left:"0"};return}if(u.value&&(c.value||_.value)){S.value=!0,x.value={width:t.clientWidth+"px",left:o.left+"px"};return}const L=o.bottom>w,V=ve-I<H;L&&V?(S.value=!0,x.value={width:t.clientWidth+"px",left:o.left+"px"}):(S.value=!1,x.value={width:"auto",left:"0"})}},Ae=()=>{p.value&&(ae.value=p.value.querySelector(".search-btns"))},ue=()=>{if(!l.pc||!i.value||!p.value)return;const s=i.value.closest(".main");if(!s)return;const t=s.querySelector(".search-results");if(!t)return;const B=Math.ceil(i.value.offsetTop+p.value.offsetHeight);t.style.minHeight=`${B}px`},de=()=>{Ae(),ue(),m()},fe=()=>{R&&clearTimeout(R),R=setTimeout(()=>{z.value=!1;const t=i.value?.closest(".main")?.querySelector(".search-results");if(!l.pc){t&&(t.style.minHeight="");return}$(()=>{de(),requestAnimationFrame(()=>{m()})})},120)};return We(()=>{l.pc&&($(()=>{de();const t=i.value?.closest(".main")?.querySelector(".search-results");t&&typeof MutationObserver<"u"&&(U=new MutationObserver(()=>{$(()=>{ue(),requestAnimationFrame(()=>{m()})})}),U.observe(t,{childList:!0,subtree:!0,characterData:!0}
1))}),window.addEventListener("scroll",m),window.addEventListener("resize",fe))}),Ye(()=>{window.removeEventListener("scroll",m),window.removeEventListener("resize",fe),U?.disconnect(),U=null,A&&clearTimeout(A),R&&clearTimeout(R);const t=i.value?.closest(".main")?.querySelector(".search-results");t&&(t.style.minHeight="")}),W("isBtnFixed",S),W("btnStyle",x),W("isSearchFixedBottom",c),W("isMuseumsTall",h),(s,t)=>{const B=Ke;return e(l).pc?(te(),se("div",{key:0,ref_key:"searchBoxRef",ref:i,class:"search-box"},[Se(B,null,{default:xe(()=>[b("div",{ref_key:"searchBoxInnerRef",ref:p,class:E({"search-box__inner":!0,"is-fixed-top":e(g),"is-fixed-bottom":e(c),"is-absolute":e(_),"is-museums":e(u),"is-bibliography":e(ie),"is-museums-tall":e(h),"is-museums-very-short":e(le)}),style:je(e(v))},[ye(s.$slots,"default",{toggleSPSearchAdvanced:e(r),isBtnFixed:e(S),btnStyle:e(x),isMuseums:e(u)},void 0,!0)],6)]),_:3})],512)):e(l).sp||e(l).tb?(te(),se("div",{key:1,ref_key:"spSearchRef",ref:C,class:E({"search-box":!0,isSearchOpen:e(n)}),onClick:t[2]||(t[2]=Ge(O=>e(r)(!1),["self"]))},[Se(B,null,{default:xe(()=>[Z(b("button",{class:E({"search-box__open-btn":!0,isSearchOpen:e(n)}),type:"button","aria-label":s.$t("advancedSearch.searchOpen"),onClick:t[0]||(t[0]=O=>e(r)(!0))},Y(s.$t("advancedSearch.searchOpen")),11,ot),[[ee,!e(n)]]),Z(b("button",{class:E({"search-box__close-btn":!0,isSearchClose:e(n)}),type:"button","aria-label":s.$t("advancedSearch.searchClose"),onClick:t[1]||(t[1]=O=>e(r)(!1))},Y(s.$t("advancedSearch.searchClose")),11,at),[[ee,e(n)]]),Z(b("div",{class:E({"search-box__inner":!0,isSearchOpen:e(n)}),"aria-hidden":!e(n),inert:!e(n)},[b("div",it,[ye(s.$slots,"default",{toggleSPSearchAdvanced:e(r),isBtnFixed:e(S),btnStyle:e(x),isMuseums:e(u)},void 0,!0)])],10,nt),[[ee,e(n)]])]),_:3})],2)):Be("",!0)}}}),vt=Object.assign(Te(lt,[["__scopeId","data-v-4c67bc43"]]),{__name:"AppSearchBox"});export{vt as _,ht 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.